I can't seem to get this to work right. Anytime a button is pushed the orange light will turn off and it is supposed to only turn off when the top right button is pushed. It might be the way that it is wired, but I am not completely sure what I am doing wrong.
I moved your topic to an appropriate forum category @jgack88.
In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.
This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.
Thanks in advance for your cooperation.
Looking at your frizzy drawing I would suggest you purchase some more Arduinos as you are apparently driving the relay coil with the Arduino pin. No clue as to how this is powered or how the buttons are connected. A regular schematic would show all of this nicely and probably less work to generate.
Why do you use resistors to ground and INPUT_PULUP? Just wire the buttons between pin and ground and use INPUT_PULLUP.
Please do not post pictures of code; nobody will type it all to test. See How to get the best out of this forum how to ost code using code tags.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
