Questions tagged [button]
A button is a simple input component which responds to being pushed by a user.
331
questions
0
votes
0
answers
59
views
How to fix pushbutton pushes no longer recording after 10-15 button pushes?
I have an Arduino Uno with 5 pushbuttons (with LEDs) in parallel with one another. My goal is to have them light up when they are pushed, as well as record and time stamp which button is pushed as ...
1
vote
1
answer
69
views
Button Matrix / Wiring Schematics
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 ...
1
vote
0
answers
64
views
Unable to use RF M4 Receiver with servo motor
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(...
-1
votes
3
answers
282
views
Interrupt on button press + debouncing
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 ...
1
vote
0
answers
33
views
When a button is pressed, it interferes with TFT screen
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 ...
1
vote
2
answers
397
views
The same button with one click and double click [closed]
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 ...
0
votes
1
answer
48
views
Arduino Mega, 6 push buttons for each analog input (A0-A9) - closing one results in reading by other
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, ...
2
votes
1
answer
376
views
How to count steps of a stepper motor with AccelStepper?
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 ...
-1
votes
2
answers
73
views
Question about Buttons and INPUT_PULLUP
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 ...
0
votes
1
answer
94
views
Arduino alternating between high and low signal without button press
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 ...
0
votes
3
answers
193
views
Trigger event onRelease of button
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 ...
-1
votes
1
answer
80
views
LED button press for particular LED In LED pattern not working in Arduino
what I expect is as below.
If I press the button of pattern one. then pattern one has running. If I not pressing any of the particular LED button like "LED_Button_two", "LED_Button_one&...
-2
votes
2
answers
113
views
Problem with push button
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:
...
1
vote
0
answers
62
views
HOW convert momentary button to touch sensor TTP223?
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 ...
1
vote
1
answer
137
views
Can't figure out why what I'm trying to do isn't working. Trying to light up a RGB with buttons with AnalogWrite
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'...
2
votes
1
answer
63
views
Simulating a button press using the Serial Monitor to run a Servo
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 ...
2
votes
2
answers
211
views
Toggle button switches through case statements with button debouncing
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 ...
0
votes
3
answers
260
views
How do I modify the value of a variable when I press a switch
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.....
-1
votes
1
answer
79
views
Pressed Buttons are permanently low and one of them is not working [closed]
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 ...
6
votes
5
answers
3k
views
What is the best technique to design a 20 push button circuit
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 ...
5
votes
3
answers
1k
views
How do I make another action repeat inside a loop?
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 ...
0
votes
2
answers
133
views
Problem with DC motor
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, ...
1
vote
1
answer
429
views
Detect button press in a loop
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, ...
1
vote
2
answers
119
views
Serial.print() Inferferes with my digitalRead()
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 ...
1
vote
1
answer
323
views
How to connect an Output to a Pullup Input of another arduino
: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 ...
2
votes
3
answers
110
views
Send button only works when pressed immediately after
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 ...
1
vote
1
answer
125
views
Arduino UNO With On / Off Module Switch + Battery Advice
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 ...
2
votes
3
answers
279
views
How do I make my piezo buzzer only hum once without repetition?
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 ...
0
votes
2
answers
173
views
Pushbutton to initiate a 5 time flash
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 ...
1
vote
0
answers
90
views
Arduino button voltage versus HIGH/LOW state
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 ...
2
votes
1
answer
949
views
Making pushbutton behave as a toggle switch with ezButton - do I have to use ledstate with =! operator
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 ...
3
votes
1
answer
272
views
Increase or decrease const byte value inside the code with a push button
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 ...
2
votes
0
answers
91
views
Single LED controlled by two pushbuttons - one of which acts like a toggle switch
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.
...
1
vote
0
answers
72
views
Why is my button not working?
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 ...
0
votes
1
answer
629
views
Arduino while loop with or condition
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 ...
1
vote
1
answer
334
views
Stepper motor won't change directions!
I am driving a bipolar stepper motor with an a4988 driver using the AccelStepper library. My goal is to press a button and the motor moves CW, then another button for CCW.
I have looked at another ...
1
vote
1
answer
45
views
Unable to make a really basic sketch work
I've been learning how to encapsulate my code within functions, and one of the examples I worked on is a simple INPUT_PULLUP button. When I upload the sketch from the arduino website everything works, ...
1
vote
1
answer
254
views
How to wire and control a 16mm button with 2 legs using arduino?
I can't find any tutorials online explaining how to wire and control a 16mm push button like the one in the picture:
Do you have any suggestions as to how use it with an arduino or a raspberry pi?
1
vote
0
answers
59
views
How to make my sensor reads when i pressed the button
Hi I'm making a digital fare meter, I have a problem in how my sensor reads when I'd pressed the button(single tap). I need the sensor to read once I pressed the button because when I press the button ...
1
vote
0
answers
353
views
Using AccelStepper to move a set distance while a button is held down
I'm working on a project and using a nema 23 stepper motor and driver.
Need to be able to move the stepper 1/32 rotation when I press a button.
I need a small delay so I have time to release the ...
-2
votes
1
answer
136
views
Push button restarts the arduino [closed]
I have linked an external push red colored button to my arduino but when I press it, instead of giving me HIGH or LOW, it resets the arduino. I am a beginner to this stuff so could someone help?
0
votes
1
answer
125
views
Timing push button code
I am trying to time how long button is held for. The code seems to work but with two problems:
the millis values are being read wrongly. If you hold the button for 1 second, it returns holdTime of ...
1
vote
2
answers
1k
views
button connection without connection to 5V pin
There are two types of tutorials for buttons:
I don't understand how a button on the first image works. Do we just hope that there is some non zero voltage and hope its enough? I think the first ...
2
votes
2
answers
73
views
Rasberry Pi Controlling Arduino - Reads "Ghost" Input - Doesn't Complete Logic Loop
I am using an Arduino Atmega2560 clone, I have used it many times before with satisfactory results - although I haven't used it with my Rpi before.
My Raspberry Pi is model 4 (B I think?).
#define ...
1
vote
1
answer
53
views
Question about button circuit
I'm quite a beginner at electronics, but thought I would try venture into it.
Currently I'm working on a project where I need to reuse a button module salvaged from some old hardware, but I can't ...
2
votes
1
answer
73
views
Adding a common activation pin to a group of buttons
I'm working on an Uno, which has only two interrupt capable pins, but i need at least three buttons to wake it up from its power saving mode.
Is there a way to wire buttons such that, in addition to ...
2
votes
2
answers
124
views
Can anyone help be get readings off of my potentiometer with a push of a button?
Hi I'm trying to get my Arduino Uno code to work with a in a specific way where if I push a button, the Arduino will read the raw potentiometer value once and if I don't push it nothing happens.
https:...
-1
votes
1
answer
198
views
Arduino waits until button release to activate
I'm fairly new to arduino, and on my own I'm trying to move a servo to the left and right using 2 buttons. I've got it working for the most part, however when I hold the button down nothing happens, ...
2
votes
1
answer
40
views
Input state is stuck HIGH when function called using input also uses same input to call another function
I'm writing a choose-your-own-adventure style project for a class project. My Arduino Uno is set up with a 16-digit LCD display and two pushbuttons with pulldown resistors. I'm wanting each function ...
0
votes
2
answers
586
views
How can I add a potentiometer and more buttons to my custom game controller?
I'm new to using Arduino, and know next to nothing about programming. I'm currently trying to add a potentiometer, and possibly a few more button inputs to my 3D-printed guitar controller project
It ...