June 19BoB is Alive!I can't imagine why I thought this was simple. I reproduced the RBBB circuit on a Radio Shack proto-board and added the extra power protection and the voltage dividers and debounce circuits needed for the MC control panel. I'm not completely finished the wiring but it got to the point where I could try a sketch and it worked. The good news is that it does fit in the allowable space on the bike so that's something.

Next steps I have to finish wiring the LCD header and the serial hookup then I should be able to port the software. Way too much trouble though. If I do another prototype I'll try out something like the mpguino or some other proto-board as a base .

Ok, BoB took his seat yesterday.I was struggling with how to mount the new prototype in the motorcycle console. The hole where the tach fits is a good size but positioning and holding it seemed tricky. I hit on the idea of using a cupboard door knob as a seat for the circuit board. The door knob mounts to a support made for the tach and positions the display just about perfectly. The first pic below shows BoB and the display beside the tank console. The upper hole in the console is for the tachometer, the lower one is the gas filler. The second pic shows the cupboard door know mounted in the tach hole and the third pic shows BoB mounted on his new seat. The positioning is not perfectly centered but I can figure that out. I remain stonkered stymied though by mounting the thing in a weatherproof way - that panel could be subjected to hours or days of driving rain and high winds.

http://www.urbandictionary.com/define.php?term=stonkered1. To be severely affected by alcohol. Usually accompanied by loss of co-ordination, slurred speech and dishevelled appearance. 2. To feel bloatedly full, primarily with food. 3. To be stoned. Under the influence of Marijuana. THC poisoning, if you will.

BoB is fine, the "head" is in disgrace on my coffee table. I bought (another!) bike speedo and I'm going to try using that as a readout - presumably it's waterproof.

It's also kind of a neat idea if you think of it as a bike speedo circuit bending exercise. You're basically breaking into the speedo's sensor wire and installing an arduino that changes the readout depending on the tach input.

Here is the latest version of the BoB code. I may have to split it in multiple postings. The only tricky part of this in my mind is the way I handle interrupts. I have them split into stubs which catch the interrupts and store them in a table, and routines which run periodically out of "Loop" which scan the table and handle the events. I do it this way so sloppy/slow coding doesn't make me miss interrupts without knowing. In principal I could take that stuff out once it's working but I never seem to.

void updatedisplay(){ lcd.clear(); pbc(currentgear); //display what gear we're in lcd.setCursor(4,0); lcd.print(int((avgtachrpm+50)/100)*100); //tach lcd.setCursor(4,1); lcd.print(int((roadspeed/1.6)+.5)); //speed in Mph}void chkneutral(){ if (inneutral()){ currentgear=10; } //10 is code for neutral else{ //need to see if we've come out of neutral with no other info if (currentgear==10) {// if we used to be in neutral currentgear=0; // 0 is "don't know" } }}