By Hans Näsström StockholmThis is a Virtual Cycling VIDEO-CONTROLER connected to reedswith on training/spinning -bike.The program can control video playback speed on a VLC media player byemulating Hot-key´s for the player, works only on ARDUINO LEONARDO systems.It controlls speed from 40% to 200% speed and stops and pause if you stop pedaling.For this to work properly ---1: Start the video and set it in pause mode (Key U).2: Start (connect) the ARDUINO LEONARDI and wait 10sec for it to setup.3: And away you go, start pedaling!

Set VLC-Hotkeys as follows,---- Tools--Preferences--Hotkeys-----[Pause/Play]: Dubble click, set and save both Hotkey and Global, set to: the letter u[Slower (fine)]: Dubble click, set and save both Hotkey and Global, set to: numpad 4[Faster (fine)]: Dubble click, set and save both Hotkey and Global, set to: numpad 6Save these settings and close the player for it to take effect.A large number of virtuel cycling videos can be downloaded from YouTube, this is my favorit;http://www.youtube.com/watch?v=FTmPk8qpxQA&playnext=1&list=PLoV-bLQ4xWjLKiiecjbmvODo8Uwu0vmKr&feature=results_mainLadda ner den från denna adress, (notera dubbel ss före youtube).[http://www.ssyoutube.com/watch?v=FTmPk8qpxQA&playnext=1&list=PLoV-bLQ4xWjLKiiecjbmvODo8Uwu0vmKr&feature=results_main]

You will need this hardware fixes:Set a magnet on and a magnetic reed-switch by the trainer-bike´s wheel,closing ONES every wheelturn, (Magnet north pole facing the reed switch).Attached the reed-switch cables to Digital pin3 and Ground.Set a pull up resistor 100kOhm between +5V and Digital pin3This software is free to use but on your one risk.Beware it will send keystrokes u,4,6 now and then.*/