I am very new to the Arduino Uno and was wondering if this was feasible for a beginner. I am trying to have 4 pushbuttons operate 4 different LED's so that when an LED lights up, the button for that LED is pushed and that light goes off, and another (random) LED lights up until that corresponding button is pushed. (I was planning on using normally closed pushbuttons). Hopefully this sounds simple to someone with much more experience.
I am trying to have 4 pushbuttons operate 4 different LED's so that when an LED lights up, the button for that LED is pushed and that light goes off, and another (random) LED lights up until that corresponding button is pushed. (I was planning on using normally closed pushbuttons). Hopefully this sounds simple to someone with much more experience.
Why would you use normally CLOSED push buttons? Most circuits using push buttons use normally OPEN.
Do you know the difference ? If so , define both types. Then explain why you want normally CLOSED.
was wondering if this was feasible for a beginner
I would think so. We'll see.
Thanks for the reply Raschemmel,
I was using a normally closed switch because I wanted a LED to be on, and then when the button was pushed, I wanted that light to go off (the switch being opened) and a different LED to come on. I figured that they had to be normally closed, because a different light would not be able to light up if the switches were open. I am using the button to turn a light off, instead of turning one on. it is being used as a reaction-time type of project for physical therapy. I have wired my 4 buttons to the 4 LEDs and got the code so that I can operate them all, but they are currently all on, until I press any of the switches. I am now looking into the "pseudo-randomizing portion of the code". Again, I have only known what an Arduino is for 3 days now, so any advice is helpful!!!
Apparently you are new to electronics and computers. If you are using a micro-controller (as you are, ) the way things are done is you define an input state for an input by connecting a pullup resistor (like 10k) to that pin and connecting to one side of a normally OPEN switch. You connect the OTHER side of the switch to GND. You read the switch with a digitalRead and when you push the button the uC will see a LOW. You still have not posted your code. Please do so now. (using the CODE TAGS "#" tool button just to the left of the QUOTE button. Please do not post anything further until you have done this. In addition, please draw a schematic with pen & paper and take a photo of it with your cell phone and attach it to your post using the "Addition Options" button in the lower left of the window. (because based on what you have posted so far, there is no telling what you will do next)