-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Describe the bug
When using the rotary potentiometer with an Arduino Nano board, the Analog Read value does not change based on if the potentiometer's VCC pin is connected to the 3.3V output of the Nano or the 5V output of the Nano board.
To Reproduce
https://wokwi.com/projects/445475207696708609
Move the VCC pin from the 3.3V pin to the 5V pin and observe the analogRead values stay the same.
Expected behavior
Expecting the Nano's analog voltage reference to stay at 5V and so the max value read from the potentiometer should change when VCC is connected to 3.3V vs the 5V pin. When connected to the 3.3V pin, expecting the max value read to be more like 675 (3.3/5 * 1024). (Though when I test it now with an actual Nano board I get 727 since the 5V is reading 4.64V?). When connected to the 5V pin, expecting the max value to be 1023.
Environment (please complete the following information):
- OS: Windows
- Browser: Edge
- Version: 141.0.3537.71