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 vote
1 answer
850 views

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 ...
Epsicro N's user avatar
1 vote
1 answer
64 views

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, ...
Zhelyazko Grudov's user avatar
1 vote
1 answer
597 views

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?
S.E.K.'s user avatar
  • 53
1 vote
0 answers
92 views

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 ...
SkilleX's user avatar
  • 11
1 vote
0 answers
812 views

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 ...
clint's user avatar
  • 11
-2 votes
1 answer
406 views

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?
Siddharth Agrawal's user avatar
1 vote
1 answer
314 views

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

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 image ...
GrayR's user avatar
  • 113
2 votes
2 answers
134 views

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

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 ...
Eyee's user avatar
  • 13
2 votes
1 answer
153 views

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 ...
none none's user avatar
  • 233
2 votes
2 answers
220 views

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:...
Matt's user avatar
  • 31
-1 votes
1 answer
276 views

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, ...
john papp's user avatar
2 votes
1 answer
84 views

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 ...
Snyper's user avatar
  • 41
0 votes
2 answers
1k views

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

I have a code here, from DFmini player. I have a tactile switch. when I press it on and release it will play a sound. My question is that when I press the tactile but not release it so I want it still ...
Habib Anwari's user avatar
0 votes
1 answer
87 views

#include <Servo.h> Servo myServo; const int piezo = A0; const int button = 2; const int yellow = 3; const int green = 4; const int red = 5; int knockVal; int buttonVal; const ...
Gavin McLeod's user avatar
1 vote
2 answers
774 views

I know I can make the motor move backwards and forwards with buttons but I don't want it to move at full speed. I want it to increment in very small amounts to where it can be adjusted very small ...
Thunder Dornhofer's user avatar
2 votes
1 answer
184 views

I'm trying to implement a stopwatch with an LCD display, and I'm supposed to be using the attachInterrupt command to catch the button press. The clock runs perfectly, but the button input isn't caught ...
Raighley's user avatar
2 votes
1 answer
144 views

I made a small circuit in which a push-button is connected to Arduino via a pulldown resistor. So, whenever it is pressed it connects to 5V otherwise pulled down to the ground. this is working fine ...
N L's user avatar
  • 21
1 vote
1 answer
128 views

I have a rotary encoder and 2 buttons to a. Store the encoder value b. Reset the encoder value to 0. The reset buttons work fine the issue is with the set/store button. Where the value changes without ...
Kashish Sharma's user avatar
2 votes
2 answers
1k views

In my project, I am trying to create a timer display with LEDs base on how long a button was pressed and hold. There are 8 LED lights in total, when the toggle button was pressed, 1st LED lights up; ...
Kelvin Ng's user avatar
1 vote
1 answer
2k views

Currently, I've worked on code for controlling stepper motor with pushbuttons. So, basically, I have to press two push button to run forward and backwards. but the problem is when I press the 1st ...
Ihsan Ahmad Siddiquee's user avatar
0 votes
2 answers
2k views

Here's what I want my code to do: This is part of a tea infusing project that would automate the steeping of tea, part of this is initially having a selection of either Black/Herbal tea or White/Green ...
thatgenericguy's user avatar
1 vote
3 answers
2k views

I'm trying to get started on developing a menu system for my LCD1602. I have a Parallax 5-position switch (up,down,left,right,center) and I would like to interface the two. I've been trying to get ...
Au42's user avatar
  • 19
2 votes
1 answer
126 views

I am trying to start an event after pressing and holding the FLASH built-in Nodemcu button for a specific time, I wrote two functions, one for debouncing and detecting the state, the other is to ...
alasa995's user avatar
0 votes
0 answers
297 views

I'm trying to make a lamp which quality to change color by pressing a button, pressing once turns on red, pressing again turns on blue and so on, but I also want it to have a light effect in which it ...
jhon flores's user avatar
1 vote
0 answers
79 views

I am playing with this basic example: Arduino: Button There're a lot of existing questions about why to connect button to the ground. I get the idea more or less. Is done to avoid "noise" during ...
Dmitry Papka's user avatar
0 votes
1 answer
1k views

I am having some difficulties in trying to make my servo motor move to a specific angle based on the button pressed. For example, having the motor start at 0 degrees and then having it move to 180 ...
JYKiryu's user avatar
1 vote
0 answers
552 views

I'm trying to understand Arduino with push buttons. But I can't get the test project I'm working on to work as how I want it to do. Basically what I'm trying to do with the codes below is to make ...
crispywisp's user avatar
0 votes
1 answer
122 views

I'm new to Arduino and I'm following this tutorial: https://www.youtube.com/watch?v=T2HMJiy9b_I but the problem is the servo just keeps moving back and forwards on it own and the button is doing ...
SABLE MOTION's user avatar
0 votes
1 answer
56 views

I wrote a FSM with the help of some tutorials through out the world wide web and so far it does what I want to do with it. But one thing that is not the way I want to be, is to exit the state ...
Marvin's user avatar
  • 3
0 votes
2 answers
494 views

I am really happy with my new Arduino stuff and playing around with all those pixels :). I am new to programming and it's difficult to understand it, but with every success, I grow in knowledge. My ...
Marvin's user avatar
  • 3
0 votes
1 answer
1k views

I"m kinda new here and new to the arduino framework. I want to build a "menu" using LCD 20*4, so I want to detect "button clicked" event. I've connected button to pin 8 and to ground, like this(...
Itzik.B's user avatar
  • 131
3 votes
2 answers
199 views

For my school project im making an arduino speedometer for a bicycle. I will be using a reed switch sensor to get the speed. There will also be an clock and a termometer, it will be on a 16x2 lcd ...
Marin Filipovic's user avatar
0 votes
0 answers
1k views

Disclaimer: This is my first Arduino project. Background: I am building a "rapunzel tower" lantern for my daughter: the witch pays a visit to Rapunzel meanwhile my daughter can read a book (or still ...
Pxu80's user avatar
  • 1
-1 votes
1 answer
4k views

Been struggling with this for a few days and I suspect that i have several issues but I cannot find them. Project: Need a serial count that counts by 5-50 and a button interrupt should trigger a ...
pancho22448's user avatar
-1 votes
1 answer
85 views

I am trying to create a program where the main code starts on the press of a button. I am using an Arduino Esplora, and I want to have the built-in LED be blue when I plug in the power until I press ...
LainaS's user avatar
  • 3
0 votes
2 answers
151 views

I've just started using Arduino and I'm having trouble getting my code right. Here is the task I need to do. "Create a button read function Hint: the function header should be int checkbutton ( ...
Zèro 's user avatar
1 vote
2 answers
390 views

this is my first post here. For some time I have been struggling with a problem and would like to know if anyone has a solution to share. I am building a 4 tone sequencer, where I use 4 ...
Sushyoshi's user avatar
-3 votes
4 answers
351 views

The problem here is that I want to connect 5 input buttons to an Arduino but I do not want to utilize 5 input pins of Arduino, is there any matrix like connection using which I can reduce the number ...
Shakti Phartiyal's user avatar
1 vote
0 answers
110 views

I have a car remote that looks like the following I would like to replace the buttons with some sort of switch or relay that can be programmatically controlled via an arduino unit. Would a simple ...
user321627's user avatar
0 votes
2 answers
180 views

I am creating a 20x15 LED Matrix using and Arduino Nano. My goal is to switch between different "scenes," if you will, using 4 buttons (I just need to run different code to make it display something ...
Micah Wagoner's user avatar
1 vote
2 answers
2k views

Hi everyone I am hoping someone here can help me. I am trying to make an arduino turn my project on and off.Using a relay. I am looking for it to act like a computer power button. A short press to ...
David Boswell's user avatar
0 votes
1 answer
2k views

Is there a way I can have my arduino uno differentiate between pushbuttons that are wired through a shift register and detect when each are pressed or not? I found this tutorial for the 74HC165 but I'...
jaduuuui's user avatar
1 vote
1 answer
63 views

For my hardware, I need to check if the button was pressed, but I need to do things only once every half a second. if (digitalRead(pin) == HIGH) { doStuff(); delay(500); } The above does ...
MrWave's user avatar
  • 13
-1 votes
1 answer
301 views

I have the project to build a robot for my school. It will record button pushes then move according to this record. Before usig motors, i'm trying to do this using leds. Thanks from posts from this ...
Jerome's user avatar
  • 9
0 votes
1 answer
58 views

I am having trouble trying to make servomotor and button work together. The button code here below works fine when alone in a separate code but when it is transferred to the code with the servomotor ...
John's user avatar
  • 31
1 vote
2 answers
1k views

I have an Arduino and a microswitch that I want to use to know when the switch is initially being pressed (get "OnsetTime" on Serial) and when the switch is not being pressed anymore (get "OffsetTime" ...
John's user avatar
  • 31
0 votes
2 answers
112 views

I'm very new to Arduino, so please forgive me if I don't know the proper terms for things. Whenever I press the button on the board, the LEDs all shut off. I can't host the image files on imgur, and ...
TheCirclesSquared's user avatar

1
2
3 4 5
7