map analogRead to voltage value


if there way/method/formula convert analogread value voltage value?

think use 'map' function conversion.
so guess i'm wondering if analog digital converter accurate enough this? i'm assuming value of 1023 5v? 511 2.5v? ect...

i want know input voltage value of piezo element when 'tap' or 'knock' on it.

thanks


yes map function say. if mapped 0-1023 counts 0-5 each count represent 4.9 millivolts.

there couple of methods better (higher) resolution if attempting measure low in voltage obtain decent readings. first wire stable lower voltage analog reference pin on avr chip , set software activate external reference voltage. other method utilize op amps amplify lower voltage ranges 5vdc maximum input voltage.

measuring pizo's output voltage may challenge generates small ac voltage , without rectification , amplification not useful measurement.

lefty


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > map analogRead to voltage value


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums