How to Make an On/off Switch

I saw that there were ways to wire a switch into your raspberry Pi that would create a reset, but I wanted to find a way to wire a switch that would turn the entire Pi on and off so that it wouldn't use power. I decided to add the switch to the power cable, and now I have a nice on and off switch so I don't have to unplug the whole raspberry Pi each time.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Materials

You will need...
-Your normal micro USB power chord
-A toggle switch
-Some wire cutters/strippers
-A screwdriver
-Some tape, electrical tape is the best, but any tape can work temporarily

Step 2: Strip the Cables

Take your wire cutters and cut the chord where you want to attach the switch. Now strip each end by about one inch. You should be left with two wires. Now you need to strip those two wires individually. Try to preserve as many of the strands inside as possible.

Step 3: Attaching the Switch

Now you should be left with two different color wires. Pick one of the colors and attach those two ends to each other. Secure the connection with some tape. Now you should be down to one color. Take your switch and connect it to both ends. You should now have a functioning on/off switch. Enjoy.

Be the First to Share


    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    4 Discussions


    4 years ago

    Not that I know of, I've been using it for weeks and haven't noticed anything


    4 years ago

    Would this create a higher risk of sd corruption?


    4 years ago on Introduction

    Many things plugged in may still consume some power, even if they are not "on". This is called vampire power consumption today. It is not a lot usually, but it is something. So the only way to really be sure something is not using any power is to completely disconnect it from mains wiring.

    You could plug your adapter into a power strip that has a power switch on it, and turn that switch off. That would be like unplugging the device, without actually having to unplug it.


    4 years ago

    thank you!