Pages: [1]   Go Down
Author Topic: extend the 5v range of the analog pins  (Read 617 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 87
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi, is it possible to extend the range of the analog pins to check a higher amount of voltage? lets say 10, and it will show '1023' on the serial screen when it got the 10v.
Logged

Indiana
Offline Offline
Full Member
***
Karma: 1
Posts: 234
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The Voltage Divider is your friend.
Logged

0
Offline Offline
Edison Member
*
Karma: 8
Posts: 1411
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1234714469/1#1
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 87
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks very much, i drawed a little schematic with Vin, Vout and 2 resistors, the Vout is 5v and the Vin is 12v, i was still missing one variable on the equation 5/12=R2/(R2+R1) i decided that R2=1000ohms, considering that resistors have a limitted wattage they can handle, and the higher the ohms are, the lower the wattage is.
which means that R1 needs to be 1400 ohms.

i checked just to make sure the values are ok. I = 12/2400 = 0.005,

Vr2 = 0.005*1000 = 5

thanks smiley
Logged

SF Bay Area
Offline Offline
Edison Member
*
Karma: 11
Posts: 1244
Arduino Ninja
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

This article has some additional useful interface tips: http://www.cq.cx/interface.pl
Logged

Unique RGB LED Modules and Arduino shields: http://www.macetech.com/store

Pages: [1]   Go Up
Jump to: