Would it be possible to open up a micro-usb cable and add an on/off switch on the 5volt line? I have only soldered once in my life and it was about 2 years ago. I was hoping this would be a do-able project.
http://en.wikipedia.org/wiki/Universal_Serial_Bus#Physical_appearance
According to wikipedia, It should be a red cable.
On/Off Switch
9 posts
Get a switch with screw terminals and you won't need to solder.
Joan, can you explain a bit more? Not sure what you mean
My Raspberry Pi blog with all my latest projects and links to articles
http://raspberrypipod.blogspot.com. +++ Current project: PiPodTricorder - lots of sensors, lots of mini-displays, breadboarding, bit of programming.
http://raspberrypipod.blogspot.com. +++ Current project: PiPodTricorder - lots of sensors, lots of mini-displays, breadboarding, bit of programming.
- Posts: 209
- Joined: Mon Jun 25, 2012 10:41 am
I already have a switch that I'd really like to use. I'm sure soldering one wire wont be too bad. So this will work for sure? If I accidentally cut the other wires are they necessary for powering the pi?
It would be easier to take a phone charger, like the one RS supplies, which only has two wires in the cable, and one of those is marked, so you can easily check you've reconnected the right one. Personally I'll probably use a 2-pole switch when I do mine, to be sure, to be sure.
- Posts: 95
- Joined: Wed Jan 25, 2012 10:31 am
recantha wrote:Joan, can you explain a bit more? Not sure what you mean
Nothing sinister. A lot of switches have screw connections to hold the wires in place. No soldering required.
You'll need the ground wire as well as the 5V wire to form a circuit. i.e.
PSU 5V -------------------------------------- Switch -------------------------- Raspberry
PSU GND ------------------------------------------------------------------------ Pi
joan wrote:recantha wrote:Joan, can you explain a bit more? Not sure what you mean
Nothing sinister. A lot of switches have screw connections to hold the wires in place. No soldering required.
You'll need the ground wire as well as the 5V wire to form a circuit. i.e.
PSU 5V -------------------------------------- Switch -------------------------- Raspberry
PSU GND ------------------------------------------------------------------------ Pi
Thanks a TON for this. When my switch and solder arrives I'll post my results.
Hi, I used a phone charger on my PI in my project, I found that white was +ive [ please check youself!]
It certainly feels better to have a real switch to the Pi.
I would consider extending the wire while you are at it, as adding a switch will restrict the reach of the lead, or you may discover that the switch is always just off the desk of something like that.
I also added a plug and socket.

It certainly feels better to have a real switch to the Pi.
I would consider extending the wire while you are at it, as adding a switch will restrict the reach of the lead, or you may discover that the switch is always just off the desk of something like that.
I also added a plug and socket.

great to know that it works. I'm going to be putting my Pi in an NES Case, using the NES power switch. =) I'm waiting for a few things in the mail and then ill post my results also.