Questions tagged [button]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
879 views

Multiple buttons activating different methods for an LED strip

I am trying to use different buttons to activate different methods for an LED strip. However, when one button is pressed after another has been pressed, I want it to interrupt the first buttons method ...
0
votes
2answers
822 views

Delay workaround needed for RTC and LCD-shield buttons

Following configuration: Arduino UNO R3 Real Time Clock DS1307RTC LCD1602 Shield with buttons Photo resistor DHT11 (Temp & Humidity Sensor) I need the function delay(1000) to display the seconds ...
1
vote
3answers
827 views

Detect button on a ground line (reverse eng)

I've found a circuit board that has a couple of circuits (buttons, IR Receiver, LED, USB). The thing is that following the line for interfacing the buttons I came across what seems to be like buttons ...
0
votes
1answer
65 views

Finding connectors for push button component

What type of connectors would I use for these buttons?: http://www.adafruit.com/product/1477 They sell wires with the connectors already crimped on, but I only need the connectors. I found https://...
2
votes
1answer
2k views

How to detect if more than one button was pressed

I am designing a turn signal bicycle blinker using two pushbuttons as input, one for each side, with a corresponding light for each button. The idea is this: Pressing one side makes same side start ...
11
votes
4answers
5k views

Choosing wireless tech for lowest possible lag

I am drafting a pub quiz project, where the Referee gives a signal and multiple players push their buttons. The first to push wins the right to give an answer. I want all buttons (referee's + X ...
1
vote
1answer
1k views

Using shiftin() and shiftout() with the same circuit - what to consider?

I am designing a smart (or at least I hope so) onboard bicycle light system. The system will have an Arduino (currently prototyping with UNO) and a subsystem composed of a "panel" of buttons and leds. ...
14
votes
2answers
951 views

How to avoid that my arduino clicks eternally?

I have accidentally implemented a program that imitates the click of the mouse. The problem is that now I can´t delete the program because each time that I connect the USB, the computer starts ...
2
votes
0answers
43 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
503 views

Pressing button stops listening on nrf24l01

I have been tinkering for 2 days to manage send and receive between 2 arduinos. My code is bellow: Arduino 1: #include <SPI.h> #include <RF24.h> #include "printf.h" #define LED 2 #define ...
2
votes
4answers
11k views

My button control working in reverse

I built this circuit to learn button control. But my code (or button) is working in reverse. I want to initialize led flash effect when the button is pressed with this code buttonState = ...
7
votes
7answers
15k views

Good button debouncing/stateChange library

I need debouncing/stateChange for a push button configuration. Is there a good library for debouncing/stateChange buttons in Arduino (without delay)?
1
vote
2answers
625 views

Fog machine Arduino integration

I want to control my fog machine with an Arduino. Has a simple button that is used to activate the machine. I want to press this button using an Arduino digital output pin, but the fog machine is ...
1
vote
1answer
4k views

Hooking up 12v Push button to arduino uno/nano

I want to use one an push button with an led in middle, similar to this one on eBay. The push button has a 12v input I want to hook it up to an Aduino Uno or Nano. Is there a way to hook it up and ...
0
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 ...
0
votes
1answer
3k views

Why are pin 18 and 19 always HIGH?

I wired my switch just like in the default button program. I know it works because it works fine on other pins, just not pin 18 or 19. What am I doing wrong? const int buttonPin = 18; // the ...
1
vote
1answer
2k views

Simple Text input using 5 buttons

So I have to get this function done but I'm not so bright and got confused. (excuse me! I'm total noob) The function is basically inputing text using five buttons, directional buttons and an ok ...
0
votes
1answer
185 views

Button reading not going off

I made a circuit which in my intentions would allow me to toggle a LED dimming loop. Problem is that once I push the button the first time pushing it a second time doesn't toggle the LED loop off. ...
0
votes
1answer
382 views

Getting Push Button Logic To Stick?

I'm trying to get a sensor to activate if a push button is clicked. And deactivate when a certain condition is met and reactivate when the push button is pressed again. #include <SPI.h> // ...
0
votes
2answers
140 views

Led on when not supposed to be

So I made a program that controls two LED's when two buttons are pressed, but one of the LED's comes on when the button isn't pressed. And what's weird is that if I literally move around the ...
0
votes
3answers
246 views

Debouncing results in no reaction at all

Update: I changed the code to this, but it does not work either. `if ((millis() - lastDebounceTime) > debounceDelay) { if (button) { //DEBOUNCING if (!button_prev && button) { ...
1
vote
3answers
1k views

Unintended reaction: Sketch makes LEDs turn on and of randomly/LEDs don't react

Update: This piece of code does not do the same as the one in the right answer, it also reacts when one lets go of the button. int button_prev = 0; int button = 0; void loop(){ button_prev = ...
8
votes
2answers
2k views

Performance of internal vs external resistors

Is there any significant performance trade-off between buttons wired with the internal vs external pull-up/down resistors? I see a lot of tutorials demonstrating the use of external resistors when ...
1
vote
1answer
2k views

Resistance in Switch (negative vs positive logic)

I tried in my Arduino the negative logic to get a digital input from a switch (with 10 KΩ resistance). If I want to use the positive logic what kind of resitance I have to use? For me seems that ...
1
vote
1answer
750 views

Turn Arduino on only by double tapping switch?

I don't have much experience with electronics. I was wondering if it is possible to create a push button switch, which will turn on the device only if it is tapped twice in quick succession? If it is ...
3
votes
3answers
4k views

Multiple Buttons on Single Analog Pin and Trigger Pin Arduino Uno

I've researched how to attach multiple buttons to a single analog input using a resistor network. Instructables has a good lesson on this: http://www.instructables.com/id/How-to-access-5-buttons-...
5
votes
3answers
6k views

Why does this button have a connection to ground?

I am testing this basic button example from the Arduino tutorial page. This circuit lets power flow to pin 2 when the button is pressed. When the button is not pressed, the power goes through the ...
2
votes
2answers
660 views

Simply Button Problem (Teensy 2.0)

I am getting back into doing some hardware stuff after a fairly long time away and am having a hard time getting back into it. I have a Teensy 2.0 and am trying to run a basic sketch that when a ...
2
votes
10answers
65k views

How to toggle LED on button press?

I want to have a LED turn on when I push a button and go off when I push the button a second time. This code doesn't work: const int buttonPin = 4; const int motorPin = 10; const int ledPin = ...
5
votes
1answer
1k views

Reading button presses with the 74HC4067E multiplexer

My project is progressing quite well, but I am having some issues reading button presses through my MUX. The Goal Cycle through twelve buttons and twelve LEDs. When a button is pressed, light up the ...
3
votes
1answer
191 views

Button to optocoupler to fire camera 4 times

Ok, this is my first project where I've not had @forsvunnet close by to help. I've got a camera connected to an optocoupler, that just fires HIGH then LOW. I can't get a button working with it, so ...
0
votes
3answers
4k views

Why does my wired button always read HIGH?

I have made a simple Arduino program that uses a potentiometer to dim a LED. This program also makes a second LED blink. Finally, I have added a button that controls a third LED; this part of my ...
8
votes
2answers
626 views

How frequently do you need to poll UI buttons before they are perceived as laggy?

Whilst it is possible, and sometimes desirable, to use pin change interrupts to read the state of buttons, it is simpler to poll the state of buttons in loop(). This is a commonly used technique. If ...
7
votes
4answers
1k views

What design patterns can I use to handle user input and display updating?

I've used enough products with embedded microcontrollers and unresponsive UIs to know that it can make or break a product. Even a slight delay or lag between the button presses and the display ...
6
votes
3answers
2k views

Why does my sketch report too many button presses?

I've been using a button to interact with a sketch (on my Uno), and it's mostly working fine. However, sometimes it seems to be detecting multiple presses when it's only pressed once. It's a small ...
14
votes
1answer
7k views

Button state changing randomly

I have a push button wired to my Arduino but it seems to be triggering randomly. I have one pin of the button connected to pin 2 on the arduino and the other connected to ground. void setup() { ...

1
3 4 5 6
7