I am trying to use an arduino and a push button to turn it on and off.
Has anyone got any suggestions on how to do this considering I haven’t used arduino that much
So if you can help please do
I am trying to use an arduino and a push button to turn it on and off.
Has anyone got any suggestions on how to do this considering I haven’t used arduino that much
So if you can help please do
The button is probably the second tutorial after blinking a led…
Have you done any work ? Give it a try.
Then look at examples for driving a led strip with either adafruit’s neopixel library or fastled
If you want the button to just light a led strip, get those led strips that do not need an arduino and just install an on/off switch on the power line. No programming necessary
Welcome to the forum
Please describe exactly what you want to do. I hope that it goes without saying that you do not need to use an Arduino to turn an LED on and off with a pushbutton so there must be more to it than that
Perhaps, each time you press the button the LED changes state. Is that what you want to do ?
If so You need to detect when the button becomes pressed rather than when it is pressed
See the StateChangeDetection example in the IDE
led strip
which one ?
I’m trying to make a buzzer for a talent show and I want it in a x pattern
I think the best thing is to get a copy of the Arduino Cookbook and skim it cover to cover, then read the sections pertinent to your project, you will then know your answer and how to do it. This book will become a reference resource for many years.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.