Go Down

Topic: A/D conversion with Lilypad (Read 668 times) previous topic - next topic


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


[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]


A0 to A5 are analog inputs

Code: [Select]

int value;
value = analogRead(0); // 0 to 1023 for 0 to 5V at A0 pin
I write books about Arduino and Electronics: http://simonmonk.org


Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131