Wow. Why have the breadboard in the middle? Here's what my seeeduino looks like (sadly, its only a 168). The one-inch cat5 wires are pretty rigid, and keep the LCD standing upright. The 2-pin header (vss + injector) right next to the mini-usb port is a glue-on addition.
If you plan to use the instantrpm(), i think the only thing that's needed is a zero-division check at the top of the function. e.g.:
unsigned long instantrpm(){
if (instInjEnd == instInjStart) return 0ul;
. . . etc . . .
Div-by-0 might never happen anyway but 1 line of code is cheap insurance.
|