wokwi/wokwi-features

No output at Potentiometer signal terminal

Closed this issue · 1 comments

Describe the bug
A clear and concise description of what the bug is.
The potentiometer and the slide potentiometer have no output at its signal terminal

To Reproduce
Steps to reproduce the behavior, including link to a simulation project where we can see the problem. https://wokwi.com/projects/406366298445936641

Expected behavior
A clear and concise description of what you expected to happen.
The Vcc and Gnd terminal when connected to Vcc(3.3V) and Gnd of the the ESP32 should provide a varying voltage at the signal terminal of the potentiometer when the pot dial is rotated but there is no output. To confirm I tried connecting a 1k resistor from 3.3v pin of esp32 to the anode of a LED and the cathode to Gnd terminal to the ESP32. The led lights up. Then I connected the Vcc of the pot to 3.3v pin and Gnd terminal of the pot to the Gnd pin of esp32. The signal pin of the pot was connected to the anode of led and cathode to the gnd pin of ESP32. Ran the simulation. Rotated the pot dial from min to maximum. But the led does not light

Environment (please complete the following information):

  • OS: [e.g. iOS/Android/Windows] Windows 11
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Thanks for the detailed report!

Wokwi uses a digital simulation engine, with limited analog support. LEDs, for instance, only work with the digital signals.

However, you should be able to read the voltage from the potentiometer SIG pin using a microcontroller or a custom chip. Here's an example of such setup with an Arduino uno: https://wokwi.com/projects/299392610996322826