Adafruit: Engineer Question

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Adafruit: Engineer Question

Postby davidh » Fri Jun 15, 2012 12:33 pm

HI,

I bought 'Beginning Ardunio Programming and had a question regarding digital and analog signals. It says that,
"The Arduino ADC has a 10-bit resolution, meaning that it will return a linear value from 0 to 1023 corresponding to 0v and +5v respectively. With this resolution, the Arduino ADC can read levels of voltage down to 4.88 millivolts per level."

I am not sure how the first sentence (in blue) relates to the second sentence (in red).

Thanks
David
davidh
 
Posts: 155
Joined: Fri Feb 24, 2012 11:32 pm

Re: Adafruit: Engineer Question

Postby john444 » Fri Jun 15, 2012 12:48 pm

Hi David H,

It means that each binary step represents 4.88-mV.
When you ask the Arduino what value is on a analog pin it reports back a number between 0 and 1023.
To determine the actual voltage on the analog pin, you need to multiply it by .00488.
It is just the Full-scale value (5.0-V) divided by 1023.
If you used the 3.3-V voltage reference then each step would be 3.23-mV (3.3 / 1023).

John
john444
 
Posts: 411
Joined: Sun Mar 04, 2012 1:42 pm
Location: Claremore, Ok

Re: Adafruit: Engineer Question

Postby davidh » Fri Jun 15, 2012 11:10 pm

Thanks John,

So each step for 3.3v is .00322? Appreciate the help


Cheers
David
davidh
 
Posts: 155
Joined: Fri Feb 24, 2012 11:32 pm


Re: Adafruit: Engineer Question

Postby davidh » Sat Jun 16, 2012 9:50 pm

Thanks.

I guess this works the same way with pulse width modulation. It
says the resolution is 8 bit giving values between 0 and 255. So I guess
the read level for 5v would be 5/255?

Cheers
David
davidh
 
Posts: 155
Joined: Fri Feb 24, 2012 11:32 pm

Re: Adafruit: Engineer Question

Postby thefatmoop » Sat Jun 16, 2012 10:08 pm

pwm makes a signal which will average to analog levels. Not sure what you mean by "the read level for 5v would be 5/255"
thefatmoop
 
Posts: 222
Joined: Tue Aug 19, 2008 3:36 pm

Re: Adafruit: Engineer Question

Postby pburgess » Sat Jun 16, 2012 10:24 pm

0V = 0
5V = 1023

Everything in-between scales roughly linearly; e.g. a reading of 512 equals about 2.5V.
User avatar
pburgess
 
Posts: 1343
Joined: Sun Oct 26, 2008 1:29 am


Return to Arduino

Who is online

Users browsing this forum: john444 and 13 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [108]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[31]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[34]
LCDs & Displays[48]
Components & Parts[70]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[111]
 
Wireless[14]
Cables[62]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]