WGSpacetime
Member
I measured it with my meter and the voltage between analog input pin and GND / analogGND (I have them connected) is 2.36V, but the analogRead() funcion always returns 65535. I used jumper cable to connect pin to GND and readings went to 0, so something works, but it doesn't work as it should or as I expected it.
The voltage source is this voltage divider, BATT_LVL goes to pin 22 on Teensy 3.5.
Edit: I've found the culprit - getting CPU temperature using <InternalTemperature.h> library. Do you have any idea, why this library made analogRead() useless?
The voltage source is this voltage divider, BATT_LVL goes to pin 22 on Teensy 3.5.
Edit: I've found the culprit - getting CPU temperature using <InternalTemperature.h> library. Do you have any idea, why this library made analogRead() useless?
Last edited: