CJB Imageboard Mk.II



Cycling H4X!

Posted on Sunday 4 May 2008

I’d just hit 3000 kilometers on the roadie bike’s odometer, and the LCD display started flashing… I thought it might have been an Easter Egg-type feature in the odometer, but no, I find out later the battery was going flat, and when I got home all the riding stats had been lost. :-/

I realized I could cheat the stats back on by wiring it up to the parallel port of a Linux machine and ‘bit banging’ a transistor to flick the odometer’s sensor, and it only took a few minutes to set it up. Writing the program to do the bit-banging wasn’t difficult either, with cut&pasting code I’d written before for the HD44780 LCD displays.

Unfortunately the odometer has a limit of 200 km/h. :-P



No comments have been added to this post yet.

Leave a comment

(required)

(required)


*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image

Information for comment users
Line and paragraph breaks are implemented automatically. Your e-mail address is never displayed. Please consider what you're posting.

Use the buttons below to customise your comment.


RSS feed for comments on this post |