Questions tagged [button]

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

37 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
53 views

status whether the switch is connected to arduino or not?

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 ...
2
votes
0answers
48 views

Arduino Uno - Stepper motor not working with button

I am completely new to Arduino, and all sorts of hardware and software. I have a stepper motor, which I want to rotate by a number of rotations when I press a button, and then go backwards by a number ...
2
votes
0answers
1k views

Stepper Motor button control with A4988 Driver

So I'm quite new to programming and have inevitably worked myself into a corner. What I am trying to accomplish is to allow for a stepper motor, (powered by an A4988 driver) to move with the push of a ...
2
votes
0answers
84 views

How can I call the variable **Servo::write** in Arduino for my 360 servo?

I'm trying to control a Servo with a push button and to help me watching if it is working I am using a LED but I'm not sure if I'm doing it well the Servo::write so I need you to tell me what am I ...
1
vote
0answers
26 views

I need help creating a code that moves a DC motor CW or CCW based off of 2 different buttons

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

Continuous push button detection in for Stepper control

Currently i've working code of controlling stepper motor with pushbuttons. So, basically i have to press two push button to run forward and backward. but the problem is , when i press 1st pushbutton ...
1
vote
0answers
32 views

How do I have this audio and LED activate ONLY when a button is held using an Arduino?

I have this code that I am using to play a sound effect where I used a program called wav2c to convert a .wav file to number values that I put into a header file that I use in the code to generate the ...
1
vote
0answers
82 views

LCD on top of SD datalogger flickers help!

I have a problem with my 16,2 with buttons lcd shield.(LCD Keypad Shield). It is connected on top of an SD dataloger. I came to the conclusion that every time the sd shield logs data and completes the ...
1
vote
0answers
79 views

Communication using two HC05 modules

I'm working on a project that consists of sending data from flex sensors from a master Arduino to a slave arduino that uses that data to control servo-motors. I am trying to start slow and just ...
1
vote
0answers
29 views

How to stop and repeat a melody using a button?

How can we make our melody stop when we press the button the first time and repeat the melody when we press the button the second time? // Noterna defineras #define NOTE_B0 31 #define NOTE_C1 33 #...
1
vote
0answers
267 views

ESP8266 /ESP12F use flash button as input without using loop()

I couldn't find a proper answer anywhere on internet. I want to use the FLASH button as input in the setup() function and do not use the loop() with deepsleep mode (this part comes later). I tried ...
1
vote
0answers
104 views

Creating a keypad matrix that will communicate wirelessly with an Arduino Uno

I have a 30 button matrix and I would like to use a keyboard encoder to decipher what button was pressed. I would like that information (what button was pressed) to be wirelessly sent to my arduino ...
1
vote
0answers
42 views

Connect push button to ArduiMU

I've got an ArduiMU V3+ and would like to connect an ordinary push button to it. How would I connect it to it.
0
votes
1answer
41 views

RGB LED using potentiometer and push button

I'm currently working on an assignment which has to turn on an RGB LED using a potentiometer and button. The problem I currently have is that the button is supposed to change the color I want the LED ...
0
votes
1answer
55 views

Problems with detecting button digital state

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 ...
0
votes
0answers
41 views

problem controlling rgb led with one button

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 ...
0
votes
0answers
38 views

Button example: resistor vs wire

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 ...
0
votes
0answers
57 views

Start / Stop Motor Run with Button State Change

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 ...
0
votes
0answers
260 views

Break a while loop with a push button (AccelStepper.h)

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 ...
0
votes
0answers
56 views

What is the best way to replace the buttons inside a car remote chip so that it can be controlled via Arduino?

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 ...
0
votes
1answer
138 views

DS3231 + button to trigger light

please can someone help me with code, i want to have automatic trigger on specific hour, also i want to have button switch if needed, in my code i can press the button to trigger light relay, but my ...
0
votes
0answers
36 views

Frequency Doesn't increase when Button Is Pressed

I’m trying to output a frequency that can be increased and decreased by using 2 buttons. I’m trying to first of all configure the first button (which increases the frequency). I’m trying to also add ...
0
votes
1answer
64 views

connecting a push button to a step Motor Problem

I can't get this code to work. The button code and the step motor code works separately. However, when I code using an if statement saying when the button is pressed the motor will move or else it won'...
0
votes
0answers
759 views

Nested “switch” statements menu

I know that menus were discussed perhaps a thousand times here and everywhere. But using a ready solution is not something that I'm looking for because I know I won't learn the concept if I use them. ...
0
votes
1answer
277 views

Button state issue

Let me preface this by saying I'm a beginner, and I know my code must have some logic errors. I need some fresh eyes on this, I have been messing with it a few days and am just running in circles at ...
0
votes
0answers
164 views

How to read resistive buttons with Arduino Pro Micro?

I am trying to read some resistive buttons presses on a PCB like this: This is the full sketch I am using: #include <Keyboard.h> byte ZbuttonPin = 3; void setup() { // initialize the ...
0
votes
0answers
80 views

my button won't work, why?

I have been trying to get the button to work properly for over a day, but it just won't, can you help me. The lcd display is for another part of this project, not important at the moment, but I can't ...
0
votes
0answers
89 views

Arduino: wrong digitalRead results from a pullup pin

A button connects GND to PIN where PIN is any digital pin. I want to catch the moment the button is pressed, so I wrote the following code: void setup () { pinMode (PIN, INPUT_PULLUP); Serial....
0
votes
0answers
52 views

Durable, thump resistant, buttons, at a cheap price

Not really an Arduino specific question, but I guess a lot of people on this board are also hobbyists, so they might have done something similar... For my project I need to connect buttons to the ...
0
votes
1answer
60 views

I'm trying to control a servo with a push of a button but its not working HELP

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 ...
0
votes
1answer
87 views

Standard Arduino kit button caps?

Are there any caps available for these buttons, or am I better off using other, more stylish buttons if I want to make a presentable arduino-based gadget? The circular hole drilled in their square-...
-1
votes
1answer
47 views

light leds from an array

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 ...
-1
votes
2answers
94 views

Button Switch arduino

I'm trying to use my button as a switch (the led goes on after I push the button and the led goes off when I push the button again). I know I have the right circuit, because I also used a code from ...
-1
votes
1answer
163 views

Concave button wiring with Arduino

I am new to working with Arduino and I have a basic question. I have an entire circuit set up and functioning, but I would like to add an arcade style button (Larger concave style) like this. So my ...
-1
votes
1answer
246 views

Arduino LiquidCrystal_I2C fast overwritting

I have an arduino board connected to 2 temperature sensors, 2 switch buttons and 1 lcd display. When the switch button changes to off, "off" is printed on the lcd display. When the button state is on,...
-1
votes
1answer
2k views

Controlling image display on LED matrix by buttons

Building a 9x9 LED matrix and facing following 2 problems in Arduino code, The current code displays 2 images (using byte arrays and then using bitRead) one by one, each for a certain duration of ...
-2
votes
1answer
132 views

Having issue with a redeclaration as a different kind of symbol

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 ...