Skip to main content

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
1 vote
0 answers
64 views

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 ...
ghwnsrla's user avatar
0 votes
1 answer
145 views

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 ...
oligofren's user avatar
  • 111
4 votes
2 answers
543 views

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 ...
young marx's user avatar
1 vote
0 answers
41 views

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 ...
gon weigang's user avatar
3 votes
1 answer
714 views

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 ...
WillM's user avatar
  • 39
6 votes
2 answers
284 views

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 ...
Bitbang3r's user avatar
  • 561
1 vote
1 answer
2k views

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 ...
user3347814's user avatar
4 votes
2 answers
5k views

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 ...
Noobie's user avatar
  • 43
3 votes
1 answer
136 views

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 ...
Investigator's user avatar
0 votes
2 answers
900 views

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 ...
rohithrathod banoth's user avatar
0 votes
1 answer
175 views

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 ...
rfii's user avatar
  • 170
1 vote
1 answer
180 views

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 ...
princessbubbles15's user avatar
2 votes
1 answer
95 views

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 ...
krystof18's user avatar
  • 315
0 votes
2 answers
81 views

I basically have two switches Both switches will be pressed simultaneously in different order I want to know which switch was pressed first
Obed's user avatar
  • 9
0 votes
1 answer
119 views

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 ...
Terrel Ross's user avatar
3 votes
3 answers
7k views

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-...
Boonswaddle's user avatar
0 votes
1 answer
156 views

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. ...
farzadb's user avatar
3 votes
3 answers
37k views

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 ...
Saqib Ali's user avatar
0 votes
1 answer
53 views

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 ...
Marvin's user avatar
  • 3
-1 votes
1 answer
83 views

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 ...
LainaS's user avatar
  • 3
0 votes
1 answer
178 views

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 ...
can's user avatar
  • 11
1 vote
2 answers
544 views

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 ...
Iulia Popescu's user avatar
-1 votes
1 answer
83 views

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 ...
pfra's user avatar
  • 1
1 vote
2 answers
1k views

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 ...
zRockafellow's user avatar
2 votes
0 answers
143 views

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 ...
Rian Simpson's user avatar