Recently, it has been demonstrated that bicycling ability remains surprisingly preserved in Parkinson's disease (PD) patients who suffer from freezing of gait. Cycling has been also proposed as a therapeutic means of treating PD symptoms, with some preliminary success. The neural mechanisms behind these phenomena are however not yet understood. One of the reasons is that the investigations of neuronal activity during pedaling have been up to now limited to PET and fMRI studies, which restrict the temporal resolution of analysis, and to scalp EEG focused on cortical activation. However, deeper brain structures like the basal ganglia are also associated with control of voluntary motor movements like cycling and are affected by PD. Deep brain stimulation (DBS) electrodes implanted for therapy in PD patients provide rare and unique access to directly record basal ganglia activity with a very high temporal resolution. In this paper we present an experimental setup allowing combined investigation of basal ganglia local field potentials (LFPs) and scalp EEG underlying bicycling in PD patients. The main part of the setup is a bike simulator consisting of a classic Dutch-style bicycle frame mounted on a commercially available ergometer. The pedal resistance is controllable in real-time by custom software and the pedal position is continuously tracked by custom Arduino-based electronics using optical and magnetic sensors. A portable bioamplifier records the pedal position signal, the angle of the knee, and the foot pressure together with EEG, EMG, and basal ganglia LFPs. A handlebar-mounted display provides additional information for patients riding the bike simulator, including the current and target pedaling rate. In order to demonstrate the utility of the setup, example data from pilot recordings are shown. The presented experimental setup provides means to directly record basal ganglia activity not only during cycling but also during other movement tasks in patients who have undergone DBS treatment. Thus, it can facilitate studies comparing bicycling and walking, to elucidate why PD patients often retain the ability to bicycle despite severe freezing of gait. Moreover it can help clarifying the mechanism through which cycling may have therapeutic benefits.