Skip to content

Potentiometer Analog Read not dependent on input voltage #1050

@leannapancoast

Description

@leannapancoast

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions