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

Filter by
Sorted by
Tagged with
2
votes
2answers
712 views

Problem using an array inside a switch statement

I am having a problem when using a switch statement to check for something inside an array. I am using an int as my switch, then I compare the character arrays using strstr. So it reads like this: ...
0
votes
2answers
825 views

switch pump on with transistor, mosfet, or relay

I would like to control a pump. The pump rating is 12 volt 60watts. The pump mfg says to use a 12 volt power supply of 5 - 12 amps but AT LEAST 5 amps. This pump has a pressure turn off at 116 psi and ...
1
vote
1answer
2k views

Constantly read analog in in SWITCH/CASE setup

I'm writing a program with three different cases. Case one an LED is off, in another it is on and in the last case the brightness is controlled by a potentiometer. Each case works as I press the ...
0
votes
1answer
683 views

Do I need resistors or capacitors on this relay?

I'm using my Arduino to control a relay switch, which has an extension cord attached to it (see photo). The relay is connected to the Arduino via pin 9, which is set to pinMode(9, OUTPUT); Do I need ...
0
votes
1answer
315 views

USB connector between Arduino and a lever (switch)

I am not sure an Arduino forum is the right place to ask this question, but since I'm using Arduino here I thought it would be a good starting point. I am trying to connect a lever (you can think of ...
1
vote
2answers
463 views

Switch statements with Bluetooth serial input not working

I am trying to control the brightness of an LED using PWM. I am also trying to make it so that when I click a button on my bluetooth app, I can get it to change the frequency of the PWM pin. For ...
0
votes
1answer
760 views

Arduino as switch for external circuit

I am trying to use the Arduino as a switch for an external circuit. I first thought about using a shift register, but this wont allow me to switch the external circuit. Here is a little sketch of ...
0
votes
2answers
559 views

How to switch on an AC bulb using arduino as well as regular switch?

I'm trying to build a GSM based AC Power ON/OFF switch using Arduino. I've successfully completed the ON/OFF mechanism using SMS with the help of 240v 100amps relay to control the circuit. Apparently ...
1
vote
1answer
139 views

Capacitive sensor switch

I am trying to get relays to switch on or off based on if I touch a capacitive sensor, basically a light switch. For some reason, I get two readings that are high capacitive readings when I do a ...
3
votes
1answer
150 views

Switching Many Switches with one Input

I have a situation where I need to select between two signals, lets say 1A or 2B and route it to output 3C. I need to do this six times (2A or 2B to output 2C, 3A or 3B to output 3C, etc.). These all ...
0
votes
1answer
242 views

How to connect an LED to Arduino LilyPad Mp3

can anyone help me with connecting LED to Arduino LilyPad Mp3 in a way, that each switch (1 of 5) light up a different LED? I tried connecting an LED between the switch and the board, then the LED ...
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 ...