Thursday, June 4, 2009

Arduino Igoe Monski Pong Prequel

Code for the book Making Things Talk is available online :

http://www.makershed.com/ProductDetails.asp?ProductCode=0596510519

Now, code for the example on Pg 59 is in the file called sensor_reader.

Set Realterm to ASCII to see a presentable display. I used just resistors (no flex) and moved the probe (analog Pin 0 or 1) around VDD and GND to see that max code is 1023 and min is 0. Tells you it's a 10 bit ADC - neat. The last character appears weird it must be said.

With a 1k to 5V and 10k to GND divider, I see codes ranging from 931 to 929 - 2 LSB's of p2p noise. About 10 mV of noise there p2p. That's within the ADC bandwidth. And what is that? Need to check the datasheet there. Gives an idea of the KT/C noise and the active device noise of the ADC? p2p noise is about 6x the rms noise?

No comments:

Post a Comment