I trying to read analog values from pin2 (A2) from my AtTiny85 without any result. Im struggling the whole day with this issue. Changed pins etc, but the result stays 0.
It's powered by my Uno.
My code & configuration: Attiny85 @ 8 Mhz (BOD disabled)
int value1 = analogRead(A2);
Serial.println(value1);
I tried to set the analogReference to 0, but also without any result.
KiwiFreaK:
When I have an unconnected jumper wire to Pin2 (A1), I get some random value (~400) and the next reading ~1023. And then again ~400 and ~1023 again...
Any idea?
Sounds perfectly normal to me. Try attaching something to the wire (1.5V battery...)