How to plug on-on switch to arduino

Assuming you have a Single Pole Double Throw toggle switch, connect the center terminal to ground, connect one of the remaining two terminals to an Arduino input pin.

Middle pin to GND and one pin to the controller. Use "input_pullupā€, in setup(), for the input.

DUDDEE THANKS YOU JUST SAVED MY LIFE AROUND STUPIDS. really thank you mate

That's nice. Words often mix up, are misunderstood, felt unclear etc.

@the_class1cone Where does the Arduino come into this ? I hope that you are not powering teh ESC from an arduino IO pin, or are you ?

no no, i use another power suply for the esc, (12.6V 3s30A li-ion) and nrf module, and voltage regulator 5a5V for arduino and servo

Then who were you thanking in post #23 ?

Please post a diagram of how you intend to wire the Arduino, ESC, the switch and power because I am not convinced that you have understood how to do it

1 Like

railroader ofc?

As you have not labelled any of the connections on either of the boards or the batteries it is impossible to fully understand your drawing

One thing that is clear is that you do not have an ESC in your circuits but you do have devices labelled NRF 24 so I suspect that we have a language problem

dude why you questioning me like why do you care what im gonna use it on?

I care because what seems like a small detail can sometimes make a difference

like what? does asking where is the esc related with my question "how to plug an on-on switch to arduino" ??

Asking where the ESC is in your project matters because using an ESC implies that you are powering a motor.

Motors need a large amount of current which leads to the question as to where the current is coming from