Questions tagged [switch]

In electrical engineering, a switch is an electrical component that can break an electrical circuit, interrupting the current or diverting it from one conductor to another

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

Digital Input using a button doesn't work properly when using it to control a relay

I'm trying to control a relay both via Bluetooth and using a switch. The problem is that, when the LED is off, I can turn it on with the switch but then if I turn off the switch the relay will stay on....
1
vote
0answers
30 views

default in switch doesn't appear to execute

I have a situation where the default case in my switch statement doesn't appear to execute as expected. I wonder if there is some subtlety I'm missing here? Given the following enum: enum ...
1
vote
0answers
36 views

Turning on controller with button and turning off with a timeout

I am making a device controlled by an ESP 8266 and am wanting to save power by having it power down when not in use. The desired behavior is for a momentary button press or vibration sensor activation ...
1
vote
0answers
31 views

How can I get the count of pulses of two encoders on the serial monitor?

I have two encoders; I connected them to pin 2 and 3 and I want to count the pulses of them to make two DC motors to work until it reaches a specified number of pulses, than stop working. I have ...
1
vote
0answers
672 views

Switch on/off LED 24V using a MOSFET

I try to switch on/off IKEA Ledberg LEDs which are powered with 24 V using the setup from this tutorial video: https://www.youtube.com/watch?v=sVyi7yWuXxs I use a IRLB8721PBF MOSFET. When I switch ...
1
vote
0answers
479 views

Difficulty connecting arduino ethernet with PC using a switch

Facing difficulty connecting arduino ethernet(w5100) with PC using a switch (Dlink). When both are connected directly(p2p) using ethernet cable, arduino device can be pinged. However, when connected ...
1
vote
0answers
255 views

How to recreate this basic ALPS switch board in Arduino?

I want to recreate this existing ALPS switch board (the board on the left) in Arduino, so I can control the switches (and 3 memory + 1 menu buttons) from my laptop. The ALPS switch board connects to a ...
1
vote
0answers
226 views

Adding a kill switch for servos with states - blink without delay code

I have many LEDs and two servos connected to one Arduino Uno, and the servos are programmed to move randomly indefinitely. However, I would like to install a kill switch for the servos by reading a ...
0
votes
2answers
59 views

How to toggle LED and motor on button press?

we want to have a LED turn on with the press of a button, and become brigther and brighter as times go by (whithin a defined time frame), and when it reaches maximum brightness to turn off for a ...
0
votes
0answers
18 views

ESP8266 connected to a HIGH pin and DPDT only works sometimes. Works everytime if connected to 3V3 pin

I have a Wemos D1 Mini hooked up to a DS2Y-S-DC3V DPDT switch. When I have the coil ends are hooked up to a pin (D2) and ground, it will click when I set the pin HIGH. It should click again when it ...
0
votes
0answers
27 views

Made a light controller for the holidays

I am a new the world of Arduino. I found on YouTube, how to build a light controller (https://www.youtube.com/watch?v=WvG9c84ApFA&t=39s). I follow every step but it doesn't work. Here are some ...
0
votes
2answers
51 views

LCD screen won't stop printing the same characters twice

I'm hoping that someone might be able to help me figure out how to prevent my LCD from giving me double digits (i.e. 55, 66, 77 - instead of 5,6,7); I have 2 functions that are printing, so I'm ...
0
votes
0answers
45 views

How can I make a fingerprint scanner to work as a toggle for a servo motor using Arduino Uno?

Arduino Fingerprint Project Help Please!! I am a beginner and using Arduino Uno, a fingerprint sensor and a servo motor to build a door lock (school science project). I followed many videos and ...
0
votes
0answers
35 views

How to measure multiple voltages (Thermocoupes)

How would one measure many (20-100) small voltages in the 0-80mV range with an Arduino? I will need to amplify them and put them into the ADC. But i also need to switch between them. I want to ...
0
votes
1answer
112 views

Switch Statement stuck in loop

I am writing a code for a user to enter a 4 digit pin, then use this pin later to unlock a box. The loop is stuck between the "ready to unlock box" and "enter pin" it just keeps flipping between ...
0
votes
0answers
369 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
70 views

Sketch starts and keeps counting on external power supply but not usb

Thank you for the add, total newbie here (electronics and arduino) on his first project. Trying to make a counter for a hay baler with two HAL effect sensors, (pin 5 & 6) and outputting to an I2C ...
0
votes
0answers
349 views

limit switch and external interrupt

The INT0 pin of a custom Arduino-like board based on Atmega16 is configured in INPUT_PULLUP mode and connected to a N.O contact of a limit switch, the other end of the switch is connected to GND. in ...
0
votes
1answer
160 views

How to control RC power switch with Arduino-/Adafruit-Board?

I want to control (switch on/off) a solenoid valve via an RC power switch and an Adafruit M0 Feather Bluefruit LE. The RC power switch is this one, and this is the Adafruit Board Pinout. My ...
0
votes
0answers
77 views

Term for Two-Channel Analog Switch Module/Digital MUX

I'm looking for this 16-channel item: ...But just 2 channels. Basically one lead tells if the singal lead should travel down path A or path B. The advantage it has over the 16-channel is that it only ...
0
votes
0answers
19 views

two-in-one switch to operate both #0 and RST on ESP8266?

I assume everyone who has ever used an ESP8266 hates having to press two switches to put it in bootloading mode. The Adafruit Huzzah board, in particular, has them just far apart that you can't press ...
0
votes
1answer
331 views

TinkerCAD switch seems to be not working (always closed)

I am using TinkerCAD to simulate the functionality of a slide switch. Please comment if you think this question is off-topic. /* LiquidCrystal Library - Hello World Demonstrates the use a 16x2 ...
-1
votes
1answer
130 views

Using an NPN transistor as a switch to turn on/off a DC Motor

I am trying to control a 3V DC motor (FA-130) with my Arduino Uno, and am trying to do that using an NPN transistor (2N3904) as a switch, as shown in this diagram. I used the Blink example and ...
-1
votes
2answers
83 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
2answers
806 views

Using Arduino or ESP8266 as a switch to turn on a 12V DC Fan

I am new to the community and this is my first question. Hope it turns out to be a nice question :) Me and my friend are preparing a senior design project on home automation. I have several things in ...