Pages: [1]   Go Down
Author Topic: A/D conversion with Lilypad  (Read 456 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can any of the 6 analog input/outputs be used as Analog to Digital converters? I need to read 6 separate analog voltage sensors.
Logged

0
Offline Offline
Shannon Member
****
Karma: 214
Posts: 12406
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes.
Logged

[ I won't respond to messages, use the forum please ]

UK
Offline Offline
God Member
*****
Karma: 13
Posts: 903
Twitter: @simonmonk2
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

A0 to A5 are analog inputs

Code:
int value;
value = analogRead(0); // 0 to 1023 for 0 to 5V at A0 pin
Logged

--
My New Arduino Book: http://www.arduinobook.com

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Great! Thanks for the help!
Logged

Pages: [1]   Go Up
Jump to: