So You Got an Arduino
codelord.net
codelord.net
Another great resource for hardware hacking is the SparkFun tutorials:
Cool, didn't know that. I've seen it used in code once, but I couldn't understand why someone would write to an input pin.
And this is very useful; this will definitely save some resistor wiring. Now if only there was some easy way to debounce a switch in software....
It'll take (worst case) 8 bits for the average and 1 for the current state. You could probably still get reasonable results with a 7-bit average so that the whole thing still fits in a byte of RAM.
The issue with the breathalyzer code wasn't that the algorithm was incorrect, but that the programmer used the wrong algorithm.
ATmega16U4 http://atmel.com/dyn/products/product_card.asp?part_id=4380
ATmega32U4 http://atmel.com/dyn/products/product_card.asp?part_id=4317
Or use an AT90USBxxx part like on:
I'm interested in Arduino but have yet to find a good project to begin with.
http://www.critterandguitari.com/home/store/arduino-piano.ph...
I built one for fun, and ended up using it in jam sessions as a serious synth. Great!