Skip to content

Setting a Resistors are not effecting Voltage #791

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
faizan-ali-mlk opened this issue May 21, 2024 · 1 comment
Closed

Setting a Resistors are not effecting Voltage #791

faizan-ali-mlk opened this issue May 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@faizan-ali-mlk
Copy link

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):

  • OS: Mac OS M1
  • Browser: Chrome 124.0.6367.209
  • Version 124.0.6367.209

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
@faizan-ali-mlk faizan-ali-mlk added the bug Something isn't working label May 21, 2024
@urish
Copy link
Contributor

urish commented May 26, 2024

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

@urish urish closed this as completed May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants