wokwi / wokwi-features

Wokwi Feature requests & Bug Reports
https://wokwi.com
69 stars 10 forks source link

Setting a Resistors are not effecting Voltage #791

Closed faizan-ali-mlk closed 1 month ago

faizan-ali-mlk commented 1 month ago

Describe the bug I created a circuit diagram with multiple buttons on a single input. I used some resistors for this, but somehow the resistor concept is not working in the simulation. Only the last two buttons on the right show any analogRead values when pressed, but both have the same value, 1023. I tested the same circuit on another simulation platform, and it worked fine there. So, the issue seems to be with Wokwi.

To Reproduce Here are the diagram.json and sketch.ino of my project to test.

diagram.json sketch.txt

Expected behavior Each button should work separately, and the lights should turn on accordingly based on the button pressed.

Environment (please complete the following information):

Additional context I want to make the following circuit diagram to test it.

Screenshot 2024-05-20 at 14 23 15

This is my circuit diagram if no one want to look in json.

Screenshot 2024-05-20 at 17 20 32
urish commented 1 month ago

Thanks for the very detailed report! This is actually covered by #203