I have a couple questions about using analogReference on an Pro Mini 3.3volts.If I set the reference to 1.1volts with analogReference(INTERNAL), I assume it's till okay to have the actual voltage on the pins go up to 3.3 volts. Is that correct?Yes, electrically no problem, however all values above 1.1vdc will read as 1023 counts.Can I change the analogReference before I read an input, then change it back to read a different input. Any issues with doing this. For example:Code: [Select]analogReference(INTERNAL);analogRead(0);analogReference(DEFAULT);analogRead(1);Yes in theory it will work, but I've found that a analogRead() right after a change in analogReference() will usually return a 'faulty' value. I've usually do a couple of analogReads on the same pin after such a reference change and the last reading tends to be OK. You may have to play around with it to see what you get.Lefty
Please enter a valid email to subscribe
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