Bicycle Simulator

I would like to develop a bicycle simulator use unity as a visualization engine. This game will connect to the hardware that is a circuit which will control the movement of bicycles. Input from the hardware in the form of the speed pedal, brake and control to the left and right. while the output from the PC to the hardware in the form of a wheel rotation speed is adjusted by a state gaming terrain.
Are there examples of projects like this? especially how to connect a PC to the hardware, is there a plugin that can share?

The Australian Institute of Sport has already done this. They use it to train their elite cyclists. You could probably use an Arduino board for the input.