Google Bike

Google Bike
Has the winter weather got you down? Is the snow preventing you from training for the next Tour De France? Or are you afraid to ride outside with all those cellphone weilding drivers? Google bike is the answer for you! Now you can ride anywhere in the world in the climate controlled safety of your home.

Google bike is a virtual bike riding program. Using a few simple electronic components and some software hackery you too can ride in virtual style!

Here is the bike in action!
 
Remove these adsRemove these ads by Signing Up
 

Step 1Overview and Parts

Overview and Parts
Here's the gist. A sensor from a bike computer is used to detect the rotation of a bike tire. The output of this sensor and the turning angle (controlled by the thumb joystick) is read by an Arduino and relayed to a computer over a usb cable. The computer reads the number of rotations and angle of the joystick and uses these values to control a virtual bike within google earth!

Stuff you will need:

  • Indoor bike stand (or suitable stationary bike)

  • Bike cadence sensor (or reed switch and magnet)

  • Arduino

  • Small thumb joystick or harvest this from a PS2 controller

  • Computer with windows or osx (sorry linux :( blame google for not releasing the google earth browser plugin for linux)
« Previous StepDownload PDFView All StepsNext Step »
22 comments
Dec 22, 2011. 4:28 AMgreatgoogamooga says:
I've been working on this for about a week now with limited success. The bike on the screen goes backwards and counterclockwise. It does not appear that it is responding to the joystick input. The output from the python server look good, showing a range of 0-1023 for the x/y inputs and 0/1 for the push button. The cadence output increases incrementally with each input.

Problem with the python server, maybe?
Sep 8, 2011. 8:09 AMvince_rmf says:
This is the coolest idea. 

Unfortunately I do not have the skill to build my own.  For some reason there is not too many ready-made controllers out there.  I only found a couple:
Cyber ExerCycle http://www.cyberbiking.com
XR Kit http://www.xrgame kit.com

I am not sure how well they would work with Google Earth. Has anyone tried them?

Feb 10, 2011. 11:59 AMnicky23 says:
Interesting, I'll try it.
Jan 27, 2011. 2:51 PMwillrandship says:
Umm, Google earth is out for linux....
Jan 19, 2011. 5:00 AMbazzargh says:
Might be interesting to hook this up to opensprints. They use an open http-based protocol to serve up the data from their arduino sensors, so multiple software frontends exist. With preset steering info, eg from a GPS trace, you could have a circuit race (up the Champs Elysee?)

Another option that I keep meaning to try (when I find my ANT+ stick...lost in a box somewhere) is to use libusb to get the cadence or speed events from Garmin sensors - again, getting the steering from a GPS trace. There's code for reading those events floating around t'internet.
Jan 9, 2011. 6:36 AMCraig8 says:
Great Idea...! Some suggestions for your consideration:

- Hook it up to a projector and have the streetview projected large-scale in front of the rider.
- Designing a mechanism to adjust the resistance of the magnetic flywheel to match the gradient of the road - getting data from google earth height info.
- Design the joysick to mount to the headset with a link to the stem/handlebars so small movements in the steering to control direction - removing the need to let go of the handlebars.
- Put a desktop fan in front of the cyclist - the speed of the fan could be controlled by the riders speed - to mimic wind/air resistance whilst keeping the cyclist cool.

Good work.!! Really like it.!
Jan 7, 2011. 2:31 PMltnemo2000 says:
LINUX USERS!!!!
you can run google earth through wine and do great!
runs really well.
(also, as a cyclist i would pay for this setup in a sleeker case attached to my rear wheel.
patent it.
???
profit.)
thanks for the tips
-hack life
>G
Jan 7, 2011. 8:37 AMpecospearl says:
Put a patent on it and make your fortune! I think you have a winner!
Jan 6, 2011. 5:33 PMmagic1969 says:
very cool. i'll try it.......
Jan 6, 2011. 3:57 PMearlye says:
I once worked at a company that provided its employees with a gym. It included several bikes that were networked together. You would play Azteca, a game based on an Aztec progenitor of soccer - you could steal the ball by riding into your opponent, and you would shoot the ball by pressing a button on the handle. Stearing was accomplished by leaning the recumbent bike like you would if it were a real bike. It was *very* fun. It'd be cool to take what you've done and basically turn your controller into a joystick controller.
Jan 6, 2011. 10:13 AMmerijnvw says:
this is GREAT!!! I have to have this for the winters here. I can't train outside but cycling inside is too boring, this is the best solution
Jan 6, 2011. 7:37 AMmessyworkbench says:
Wonderful idea, I may use your idea and modify it for a treadmill.

Paul
Jan 6, 2011. 8:35 AMDr_Stupid says:
Google Earth is available in Linux. (don't know why you'd mention "sorry Linux") in reference to Google Earth.
Jan 4, 2011. 12:56 AMjennnnnnn says:
Sweet!!!!
Jan 2, 2011. 4:59 PMskidawg says:
I just looked at Google Earth's site, and there is a Google Earth 6 version that can be downloaded for Linux, at least for Debian/Ubuntu and Fedora/openSUSE. It also looks like the pySerial package can also be installed from source on Linux.

Is there anything else that causes this to not be able to run on Linux? I am not seeing anything.
Jan 2, 2011. 4:06 PMrimar2000 says:
GENIUS!

I envy your brains!
Jan 2, 2011. 1:39 PMDr. Pepper says:
cool!
Jan 2, 2011. 4:23 AMRanie-K says:
Cool! Here's how some guys ride the Bergensbanen railroad with a bike: http://www.rullesykling.com/Bergensbanen.html

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
4
Followers
1
Author:braingram