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
149 questions
1
vote
0
answers
64
views
Stepper Motor Direction Not Changing with Toggle Switch - Need Help
I’m trying to control the direction of a stepper motor using a toggle switch with my Arduino. While the LED indicates that the switch is working correctly (i.e., it changes state as expected), the ...
0
votes
1
answer
145
views
How can I switch the power on/off to cut BIG currents (200A)? [closed]
Context: I have an off-grid cabin with PV powered 12V DC. I want to cut power to an inverter (12V DC ->220V AC) when I leave by pressing a button as it draws too much in standby.
Most relays I have ...
4
votes
2
answers
543
views
Arduino resets or stuck during run, only when DC motors are connected
I'm using an arduino connected to 2 DC motors through L298N. the arduino is powered by a 9V battery, and the L298N is powered by 4 AA batteries. there's also a switch that starts the movement.
I've ...
1
vote
0
answers
41
views
Poor Contact and Low Current Issues with Microswitches in Arduino USB Game Controller
I have made a USB game controller using the Arduino Micro and Omron microswitches (VX-01-1A3) for the buttons. The switch is wired with one end connected to a digital pin and the other end connected ...
3
votes
1
answer
714
views
Input Oscillating Wildly
I'm trying to read an input from a switch but instead of getting 0 and 1 for closed/open, I'm getting 0 and a rapid series of 1s and 0s. Originally I tried (and failed) to simply read a rotary encoder ...
6
votes
2
answers
284
views
Do you actually NEED external resistors for switch connecting IO pin to ground?
Years ago, I encountered a fairly long debate at AVRfreaks.net about whether or not it's OK to directly connect AVR pins that are configured as inputs with internal pullup enabled directly to ground ...
1
vote
1
answer
2k
views
Is it possible to use a slide switch without a resistor?
I understand how pullup and pulldown resistors work with push buttons and I also understand that an analogous idea can be applied to slide switches. Furthermore, I know that some versions of Arduino ...
4
votes
2
answers
5k
views
How to switch 12V with esp32?
Hello i want to switch electric door lock (12V, 170mA) with esp32(3.3V). If is it possible I want use tranzistor. I tried to use IRF520, but it only worked with 5V. My sugestion is use 2 tranzistors ...
3
votes
1
answer
136
views
Water level switches / reed switches and Arduino Uno
How could I estimate the max number of switches that I could connect to an Arduino Uno?
I am questioning if Arduino has enough power to simultaneously operate an X number of switches with no issues.
I ...
0
votes
2
answers
900
views
2 way switch with Arduino?
Hey I'm working on a home automation system where I can replace one of my 2 way switches to an Arduino Or node MCU controlled one but I want to avoid normal relays because as of what I know they can ...
0
votes
1
answer
175
views
Switching 4.2V circuit with 3.3V Arduino GPIO
I am trying to learn about MOSFETs and see this p channel MOSFET and this tutorial. I am trying to use a 3.3V arduino GPIO pin to control a load that is powered from a 4.2V battery in much the same ...
1
vote
1
answer
180
views
Float switch is not detected
Good day everyone, forgive me for the shabby drawing I am just panicking, why my float switches are suddenly undetected by my Arduino mega. I've tested all the float switches one by one to confirm if ...
2
votes
1
answer
95
views
Arduino changing output based on wire voltage
I’m new to arduino and I want to build myself smart switch that can be turned of both manualy and via wifi, is there any way to change position of relay based on if another wire is live or not? Im ...
0
votes
2
answers
81
views
Switching time of a multiple input switch
I basically have two switches
Both switches will be pressed simultaneously in different order
I want to know which switch was pressed first
0
votes
1
answer
119
views
Switch loops with SPDT switch
I have made a drone/car quadruped robot thing and I need help with the code. I have found two codes to use to control each aspect of it but I need help to connect them. I have made a radio controller ...
3
votes
3
answers
7k
views
How to wire a three-pin on-off-on switch for reading input?
I would like to read the output of an on-off-on switch with my Leonardo board, but I have very little knowledge of electronics and don't know how to wire it up.
This is the switch in question: E-...
0
votes
1
answer
156
views
Trying to switch a 5v fan with a LiPo and can't figure our what's wrong at full duty cycle
I have a simple project where I want to turn a 5v fan on/off and both the MCU and fan will powered by a LiPo battery.
I'm powering the ESP and fan directly from the battery in the attached circuit. ...
3
votes
3
answers
37k
views
How to use this 3-pin slide-switch?
I purchased these slide switches recently because I want to use them in my project:
But I don't know what to connect up the three pins to and I can't find any information about them online. Nor can I ...
0
votes
1
answer
53
views
Correct position for buttonState in my FSM
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 ...
-1
votes
1
answer
83
views
How can I make my Arduino Esplora program start on the press of a button and then continue to run without me having to hold the button down? [closed]
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 ...
0
votes
1
answer
178
views
Running in loop or once according to a slide switch position
I have a question.
I made a system which includes a servo, a stepper and a wiper motor :)
All these parts has one job to do and I can code it. But, I want to make 2 modes in this system Single ...
1
vote
2
answers
544
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 ...
-1
votes
1
answer
83
views
Control 4 digital outputs with one switch
I want to control 4 digital outputs (d0, d1, d2, d3) with one switch. When the Arduino starts, they should all be in state LOW.
Now, after pressing the button once, d0 should get HIGH. Another push ...
1
vote
2
answers
1k
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 ...
2
votes
0
answers
143
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 ...