arduino/ArduinoCore-megaavr

Nano Every: analogRead(...) gives only 1023

RudolfAtHome opened this issue · 2 comments

Symptoms with 2 boards:

  • analogRead(A0) or analogRead(A1) gives only 1023
  • used references: INTERNAL1V1 and INTERNAL2V5
  • Voltage at pin = 0.120V - controlled with a multimeter
    IDE 1.8.10 at Windows10 64 bit (runs well)
    Package megaavr\1.8.5
agdl commented

Tried with a voltage 1/2 divider on 3.3V (10k Resistors) INTERNAL2V5 returns 672 that is right (1.65V)

Sorry - my mistake, if works. My voltage control wars wrong (5V <> AIN, correct is GND <> AIN).