Wireless Altoids Cycle Computer

Wireless Altoids Cycle Computer
This instructable will show you the how to build your own remote cycle computer for your bike!
A word of warning though... this one's a monster!!

Background
So a few weeks ago, my usual speedometer for my bike gave up and eventually stopped working completely. I have had it for a good number of years now and it has served me well, but it was obviously time for a replacement. This got me thinking and inspired me to create this Arduino based project. A while ago, I published an instructable documenting how to build a 'Wireless Altoids Display'. It consisted of an 16x2 LCD controlled by an Arduino and a pair of maxsteam Xbee modules. Simple enough, ASCII text sent over serial from the computer would be displayed on the remote LCD. Through this project, I will hopefully be able to show you how you can integrate that setup in a useful application.

What does it do exactly?
The 16x2 display is mounted on the bike's handle bars and provides the user with feedback in terms of how fast they are currently traveling. There is also a nice little bar graph on the top row to provide a visual representation. As well as being able to view your speed in realtime on the bike, the data is also sent wirelessly 'back to base' where the results can be logged and visualised on an moving graph using 'Processing'. The arduino sends the current Speed, Average and Distance covered whilst riding.

Components & Configuration
>> On the bike: (Arduino + Magnetic Reed Switch + Xbee Pro Module + 16x2 LCD)
>> At home: (Xbee Pro Module + FTDI USB Cable)

Let's get to it!
 
Remove these adsRemove these ads by Signing Up
 

Step 1Tools & Components

Tools & Components
Here's a list of what you're going to need for this project:

Components:
  • (2x) ALTOIDS Tins
  • Arduino ATMega 328
  • 16x2 LCD HD44780
  • A form of sheet insulation (Card / Foam etc.)
  • 5mm Clear PVC Tubing
  • (2x) Xbee Pro Modules (U.FL antenna connector)
  • (2x) U.FL to RP-SMA pigtails
  • (2x) Adafruit Industries Xbee Adapter Kit
  • (2x) RP-SMA 2.4Ghz Duck Antenna
  • USB type A to type B
  • USB to Serial FTDI
  • Cat5 Cable
  • 1k Resistor
Tools Needed:
  • Soldering Iron & Solder
  • Needle-nose Pliers
  • Scissors
  • Marker Pen
  • Wire Strippers
  • Fine Grade Sandpaper
  • Power Drill (5mm bit) / Bodkin Skewer
« Previous StepDownload PDFView All StepsNext Step »
47 comments
1-40 of 47next »
Jan 12, 2012. 8:59 AMhaizul26 says:
hello, is this the correct type (Arduino ATMega 328) ? :

http://www.sgbotic.com/index.php?dispatch=products.view&product_id=1080

one more thing,is it possible of i left out part where the antenna has to be installed?is it necessary to have antenna?

thank you. :)
Jan 8, 2012. 6:36 PMtlynch1 says:
This with another color display would be so awesome to work out for a motorcycle
Dec 31, 2011. 3:28 PMyaly says:
hi i need only to make the cycle computer without the wireless thingy can you upload a sketch for me with that please and if applicable the use of nokia 3310 lcd which is available to me at the moment instead of the 16x2 charecter lcd thank you
Nov 27, 2011. 8:53 PMjrhinoferos says:
hey!

Great job.

I can't seem to link to the sketch, I am trying a similar project and am a bit lost...

Thanks
Oct 7, 2011. 1:57 PMSimpson21 says:
Looks very well made. I would love to try this out but it looks as if your link to the arduino code has 404'd. Hope to see it back up soon.
Aug 7, 2011. 2:21 AMfjohn says:
can i use an ir led????with receiver as the reed switch????
Jun 24, 2011. 2:00 AMjimsims says:
Alex, This is , a great project. I am modifying it to display speed, distance, and time ridden on the LCD without XBee. One question is: why use analog input to sense reed switch instead of a digital input? thanks
Jul 11, 2011. 11:12 AMjimsims says:
Alex and fjohn, I am using a burglar alarm type magnetic reed switch that is NO (normally open). FYI most burglar alarm switches are NC. I lashed it to the bike with "zip ties". Also, I am using arduino mini-pro so I can fit it all in the altoids tin. I am wired up with 5V to the switch, the mini pro has no 3V pin. I am guessing that there is a resistor in series inside of your reed switch. Can you measure and post the ohms value of your switch with magnet near and far away from switch? Since I am already hard wired with solder to the analog input I would like like to continue with the analog input by adding a resistor. I fried a mini pro with my switch hooked to 5V without a resistor. Thanks.
Jun 26, 2011. 2:41 AMfjohn says:
hey can any other sensor be used instead of the reed switch??????
Jun 17, 2011. 4:14 AMfjohn says:
wen i compiled the stuff the ide showed a few errors like lcd bargraph lbg(&lcd......
Jun 17, 2011. 4:21 AMfjohn says:
could ya check the code again there are a lot of errors wen i compiled it!!!
Jun 11, 2011. 1:38 AMfjohn says:
could u give the full code????
May 30, 2011. 5:37 PMjohnpoole says:
clean build, great documentation.. another for the to do list for my wheel chair, because that's just how i roll..
Apr 26, 2011. 8:45 AMJedrokivich says:
I think this is the nicest thing I could ever do for my Trek 820.
May 2, 2011. 1:28 PMespdp2 says:
I'VE got the same bike. :)
Apr 30, 2011. 7:03 PMTheRevJester says:
I keep hoping someone will make an LED display bike light/turn signal/message board. Most of the time it'd function as a flashing light for visibility. Flip your front turn signals and it shows what direction you're turning. You could also have pre-programmed messages "Thanks!" "Slow down!" "Move over!" or such. Unfortunately I don't have the electronic knowledge to do so myself.
Apr 28, 2011. 10:17 AMNate Ocean says:
Schematic diagram? Block diagram? Anything?
Apr 28, 2011. 11:06 AMdrgonzoishere says:
You ever take it off any sweet jumps?
Apr 29, 2011. 7:26 AMcrispernakisan says:
... we both know I'm training to become a cage fighter.
Apr 28, 2011. 6:36 PMbill2009 says:
great instructions.

How does the unprotected display stand up to the elements?
Apr 28, 2011. 9:08 AMdiskincluded says:
Could this be altered to work with an exercise bike?
Apr 28, 2011. 4:40 PMdiskincluded says:
Oh very nice, thankyou
Apr 28, 2011. 11:27 AMuberwald says:
Have you considered using an sd card to log the info instead of sending it over xigbee? I've been considering a similar project, but I'd rather not have to stay w/in range of a laptop to get the data... also eliminating xigbee would drop the cost a bit...
Apr 28, 2011. 9:34 AMjamwaffles says:
This is a great instructable, as well as an awesome idea! At first I thought you were using WiFi (wut. 100m range?), but then I saw ZigBee. 1 mile from that little module is really good, but if you wanted to go a bit further (15 miles) and don't mind spending some extra cash, take a look here: http://www.sparkfun.com/products/9086. Could be a tad much for some readers though. Personally, I think it's borderline, but the 15 mile range makes it rather appealing. For two of them though... $132 (or whatever that is in quids for us Brits) is pretty darn expensive!
Apr 28, 2011. 6:44 AMiamuke says:
You can also put a block of wood behind the metal, inside the Altoids tin. That way you have a backing surface which keeps the metal from deforming and also helps make neat holes.
Apr 25, 2011. 4:05 PMsmartrobot says:
when i ever try to get the arduino code it says 404 not found
Apr 26, 2011. 1:45 AMmischka says:
You are absolutely right, This thing is a big monster, but it's DIY -Cool!
Apr 25, 2011. 11:58 PMshrajan says:
Cooool Man!!!!
1-40 of 47next »

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!
44
Followers
8
Author:Alexdlp