Connect a toggle switch to arduino

Hi
i have an Arduino Uno r3 and i was wondering how to connect a toggle switch so i could turn it on and off without
unplugging the arduino

hmehta6974:
Hi
i have an Arduino Uno r3 and i was wondering how to connect a toggle switch so i could turn it on and off without
unplugging the arduino

If you mean to turn power on and off to the arduino, there is no provision to be able to do that with an external switch. If the board is plugged into the PC USB it will be powered on always. If you have only external DC plugged into the arduino's DC power connector then a added switch would have to be wired into the external wires feeding the arduino's DC power connector.

Lefty

if I connect a servo to the arduino, can I turn it off without unplugging the microcontoller?

hmehta6974:
if I connect a servo to the arduino, can I turn it off without unplugging the microcontoller?

Depends on how you are powering the servo and how you are removing power to the servo. A schematic drawing is the best way to show what your are doing or trying, and it is the universal language of electronics.

Lefty