Skip to main content

Questions tagged [button]

A button is a simple input component which responds to being pushed by a user.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
64 views

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 ...
modelralph's user avatar
-1 votes
1 answer
88 views

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 ...
Burritodeltodo's user avatar
-1 votes
1 answer
48 views

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 ...
Michał Darowski's user avatar
0 votes
1 answer
109 views

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 ...
ggamalero05's user avatar
0 votes
1 answer
68 views

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, ...
Boyfinn's user avatar
  • 245
2 votes
2 answers
852 views

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 ...
jmarywien's user avatar
1 vote
1 answer
722 views

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 ...
Lachlan Etherton's user avatar
0 votes
1 answer
83 views

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 ...
Lachlan Etherton's user avatar
0 votes
1 answer
1k views

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 ...
EndyVelvet's user avatar
-1 votes
2 answers
789 views

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 (...
szilard1996's user avatar
2 votes
1 answer
92 views

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 ...
chandler's user avatar
2 votes
2 answers
1k views

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 ...
wgm's user avatar
  • 21
0 votes
1 answer
471 views

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 ...
tatu101's user avatar
  • 73
2 votes
1 answer
522 views

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'...
tatu101's user avatar
  • 73
1 vote
2 answers
1k views

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 (...
Mars's user avatar
  • 39
2 votes
0 answers
117 views

my results are here. 0 press--"a" 1st press--"b" 2nd press--"c" 3rd press-- still showing "c" When button pressed 3rd time, It must be repeated to show "a&...
hfsrg's user avatar
  • 39
2 votes
2 answers
313 views

I have a simple circuit that makes use of the tone() function to produce some sounds. I also have a button, hooked with an interrupt function, that whenever is pressed, a variable changes. Sometimes, ...
user1584421's user avatar
  • 1,435
3 votes
1 answer
5k views

I am just beginning my journey into the Arduino world - plenty of development experience, but basically nothing with electronics outside of building computers. The question I have involves wiring ...
Scott Salyer's user avatar
1 vote
0 answers
93 views

I am trying to control a servo motor with the following code: #include <Servo.h> Servo servo; int const inputPin = 3; void setup() { Serial.begin(9600); servo.attach(9); pinMode(...
A P's user avatar
  • 11
0 votes
3 answers
3k views

I want to have an interrupt function executed whenever a button is pressed. The button is connected to pin 2 and the GND. Therefore, the pin is turned to LOW whenever the button is pressed. In ...
user1584421's user avatar
  • 1,435
1 vote
0 answers
130 views

I'm trying to build a simple device to monitor my heart rate. The components are the following: A TFT 2.8" LCD screen to display relevant information for the user. 3 buttons for the user to ...
Arnau's user avatar
  • 113
0 votes
2 answers
4k views

i hope to get some help with my code. I am trying to distinguish between a single press and a quick double press of the button with debouncing. I am making some silly mistake in my code and i can't ...
Carlos Costa's user avatar
0 votes
1 answer
214 views

On day to day basis I'm more of a high level programmer, with little electronics knowledge, apologies in advance if I lack some nomenclature or basics. I communicate with my Arduino Mega via firmata, ...
wopolow's user avatar
  • 103
2 votes
1 answer
3k views

I want to turn on my motor and count how many total rounds it has until my limit switch is switched on. After that, I want to count rounds counterclockwise until another limit switch is pushed. For ...
Korte Alma's user avatar
-1 votes
2 answers
135 views

I am ok as a developer but have very little experience if it comes to electronics/hardware. I am always too cautious and have the fear that I could wreck something with the wrong wiring. This question ...
Mister Woyng's user avatar
0 votes
1 answer
305 views

I have connected my LCD with arduino uno. I am controlling contrast with the library and not the potentiometer. I am trying to read input from the button, it is connected to pin 9 of arduino. The ...
Rice's user avatar
  • 111
0 votes
3 answers
1k views

I am using the EasyButton library to detect button presses on an arduino. I want do execute a function when the user Presses a button Presses and holds a button Releases a button Detecting when a ...
spuder's user avatar
  • 111
-2 votes
2 answers
419 views

I am making a project where if the push button is pressed, the LCD screen will show a message. But with many trial and errors, it doesn't give the right result. Here is the circuit: Here is the code: ...
James's user avatar
  • 9
1 vote
0 answers
188 views

I am trying to convert this project https://maker.pro/arduino/projects/simple-fm-radio-receiver-with-arduino-uno-and-rda5807m to 3 touch sensors TTP223. But so far my new code don't work. Please can ...
massimo's user avatar
  • 11
1 vote
1 answer
185 views

DISCLAIMER : I have just started Arduino, like 2 days ago, I've been following some tutorials on YouTube, and I tried to do this myself, but I can't figure out why it isn't working, can't find what I'...
salfysox's user avatar
3 votes
1 answer
270 views

I'm kind of new to Arduino and C, and I was having trouble with this sketch. I'm working on a project to control 6 servos using virtual buttons. When I hold down the button, the servo moves forward ...
rayank97's user avatar
2 votes
2 answers
1k views

The overview of my code is that I want a toggle button to be pushed and each button push will move the code to the next case statement. In each case statement, there will be different LED functions. I ...
Myles's user avatar
  • 73
0 votes
3 answers
2k views

I am new to arduino and I want to make a project where I have a motor spinning clockwise then when a button is pressed it spins anti-clockwise and if it is pressed again it goes back to clockwise etc.....
bstplyr2401's user avatar
-1 votes
1 answer
113 views

I am a beginner to Arduino, and I'm having a problem in a project that I am currently working on. I was just beginning to write the code, after preparing the components and the wiring, and suddenly ...
lolflexgameplays's user avatar
7 votes
5 answers
5k views

I will be controlling a robot with more than 10 motors which means I'll need 2 buttons each to control moving forward and backward. My controller is an Arduino mega. Is 1 pin = 1 button the best ...
Julius's user avatar
  • 91
5 votes
3 answers
2k views

So, I've just started programming Arduino (and also in general), so I'm doing basic things, like switching on and off LED's. I've made them light in a sequence and then turning them off (in the same ...
AndreFro's user avatar
0 votes
2 answers
418 views

I've got a circuit with Arduino UNO Rev3, DC motor, button to switch direction of rotation and potentiometer to regulate revs. The problem is that usually when I increase voltage using potentiometer, ...
Maciaz99's user avatar
1 vote
1 answer
921 views

I am designing simple "Simon Says game" using Arduino. Simon says is a game in which a LED pattern is played and user has to mimic the pattern. There are 10 Rounds. First Round = 1 led, ...
Snoke's user avatar
  • 23
1 vote
2 answers
428 views

I'm running into issue properly reading a button connected to a digital I/O pin on my Adafruit Feather HUZZAH ESP8266 device. I've implemented the debouncing script exactly as the Arduino provided ...
Marc's user avatar
  • 31
1 vote
1 answer
1k views

:tldr; Could problems occur if one connects a HIGH Output of one arduino to a PULLUP_INPUT of another while using differed power sources? Hi I'm building some devices for a LARP Dungeon (think Escape ...
Karl Sanathos's user avatar
2 votes
3 answers
192 views

I am new to Arduino and I am trying to create a Morse code based "chat". I can submit a message in Morse code using the send button (the one on the right,) and when I press the button on the ...
MarryPoppins's user avatar
1 vote
1 answer
263 views

So I have the following connected and the programming works fine when connect by USB The Parts 1 Arduino UNO 1 Laser Module (KEYS) 1 Rocker Switch Module (Standard 3 PIN) 2 Variation Motors (KEYS) 1 ...
Davinco's user avatar
  • 21
2 votes
3 answers
902 views

I have a problem with getting my buzzer to only do the tones I programmed in once. I know I have to add some sort of code but I'm relatively new to this so I don't really know. I want it to start ...
Éemia's user avatar
  • 33
0 votes
2 answers
358 views

The following code operates in a way that LED starts to flash only if the pushbutton is pushed for one second. I want to change this and make the LED flash for 5 times, immediately on push, regardless ...
Varonne's user avatar
  • 89
1 vote
1 answer
336 views

I'm measuring voltage between button's ground and input pole on the following sketch. When button is on off state, there's 5V there, when it's switched on and led turs on, there's 0. Is this a correct ...
Varonne's user avatar
  • 89
2 votes
1 answer
2k views

I'm using ezbutton to make a pushbutton act like a toggle switch, first press doing permanent on, second press doing permanent off. I'm just trying to understand the basic coding. This project is just ...
Varonne's user avatar
  • 89
3 votes
1 answer
373 views

I'm kind of new in the Arduino world. I decided to make a self learning project with an Arduino where it controls a conveyor that simply moves from right to left and back again. There is a start and ...
Carlos Costa's user avatar
2 votes
0 answers
195 views

Trying to control this LED with those 2 pushbuttons - one button that starts a short flashing sequence, another pushbutton acts like a toggle switch, one press bulb is on, another press bulb is off. ...
Varonne's user avatar
  • 89
1 vote
0 answers
121 views

I'm trying to making a traffic light for my school project but my button for the traffic light doesn't work. The traffic lights should light up normally but when the button is pressed all LEDs should ...
fatihakan21's user avatar
0 votes
1 answer
2k views

How do I write a program to wait (delay) until one out of two buttons pressed? I have written a program to wait until a single button is pressed. It's working fine. However, if I extend it to second ...
Ak Rikas's user avatar

1
2 3 4 5
7