Questions tagged [button]
A button is a simple input component which responds to being pushed by a user.
344 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
1
answer
60
views
Why is this simple sketch not working? I want step thru 3 variables on alternate button presses. Keeps getting stuck of 1st one. Here is the code
I know that I am missing something basic but cannot find the problem. The button works correctly. The board is Nano connect. Monitor readout is stuck on first line although obviously the whole thing ...
-1
votes
1
answer
83
views
Arduino Nano Keyboard. Keys keeps pressed
I'm new in coding with Arduino, and I am trying to make a one hand keyboard with joystick as personal project. I tried to make it print some ASCII characters, but I don't know why the button keeps ...
-1
votes
1
answer
44
views
Metal pushbutton voltage drops only to 3.15V when OFF
I'm trying to detect a press of a 5-terminal LED button using the tutorial here: https://newbiely.com/tutorials/esp8266/esp8266-button-long-press-short-press
Works with no issue with standard ...
0
votes
1
answer
108
views
How to read my three-button inputs?
I am creating a three-person reaction time game but I would like to be able to read all three buttons' proximity to the start time - currently only the winner is displayed on the serial read.
Here is ...
0
votes
1
answer
64
views
Software debouncing a button when released
I'm having some trouble with software debouncing on Arduino UNO. There is a condition in my code where an unwanted debounce registers as a button push.
I'm using an interrupt for my button press, ...
2
votes
2
answers
659
views
Arduino Digispark ATtiny85 conditional logic not working
Expected Behavior:
I am attempting to use && or nested if statements to achieve the effect of two switches being required to close prior to an LED light (i.e., flip both switches), the LED ...
1
vote
1
answer
671
views
strip.clear() is not clearing/turning off the NeoPixel strip after resetting the ESP8266
In the code below which is running on a WEMOS D1 (ESP8266), a NeoPixel strip turns on 1 LED in red which moves left to right and then right to left whilst the board attempts to connect to Wi-Fi in the ...
0
votes
1
answer
80
views
Sketch halts if button is pressed on boot
I have a KY-040 rotary encoder with a push button wired to an ESP8266. My objective is to be able to detect if the button is pressed or not on boot.
In the below code, if I hold the button down and ...
0
votes
1
answer
1k
views
Turn on by long press of a button?
In my project on Arduino, I want to implement turning on the whole circuit by long press of a button.
But at the same time, I want the Arduino to be turned off in standby or sleep mode, but I don't ...
-1
votes
2
answers
730
views
Arduino Pro Micro not recognizing INPUT or INPUT_PULLUP
I tried to make a controller box with multiple buttons. Sadly, when I tried to connect the buttons, the Arduino Pro Micro didn't recognize them being pressed. I even tried to connect a wire directly (...
2
votes
1
answer
90
views
Code not Executing Reliably on Push Button Activation
I have put together the following code to activate a motor using an Arduino Uno via push buttons.
Two push buttons should be pressed simultaneously to activate the motor for a specified number of ...
2
votes
2
answers
1k
views
Push button issues
I have been using https://wokwi.com/ to learn Arduino and I am having a problem that seems to be happening no matter what I do. I am trying to set up a push button and an LED. The end goal here is to ...
0
votes
1
answer
451
views
LED doesn't completely turn off with digitalWrite(led, LOW);
When I was testing out a program I found a strange behavior of ESP8266.
LEDs don't turn off completely in the first digitalWrite(led, LOW), just the brightness of the LED goes down, but it does turn ...
2
votes
1
answer
516
views
ESP8266 seems to be killing a while loop
When i was testing out a program I found a strange behavior of esp8266
It seems to get out of a while loop even when there's no option of getting out on code
I don't know if these are related but here'...
1
vote
2
answers
942
views
How do I turn on 3 LEDs in a repetitive sequence where all three LEDs would then turn OFF when the push button used is released?
Basically, how do I modify my code listed below to turn ON each of the three LEDs one at a time in a repetitive sequence while keeping the push-button pressed?
Red (3 sec),
Yellow (1 sec), and
Green (...