Tuesday, December 11, 2012

MagSafe Connectors

I love Apple's MagSafe connectors. They are a great way to quickly connect and disconnect a power supply. The magnets guide the connector into place. It is a brilliant piece of engineering and design. And magnets!

My one complaint is that I don't own a MacBook. That means I don't get to have one.

Don't get me wrong; I tried. Getting half of the connector is easy. All you need is a broken MacBook power supply.

The other half is much more difficult. It turns out that they only existed built into MacBooks. A broken one of those is more difficult to come by.


But then, Apple came out with this:  the MagSafe to MagSafe 2 Converter.

And with that tiny $10 adapter, it became easy to get a matched set of connectors. Woo!



Now a side bar in which I describe a different complaint and an opportunity for putting these connectors to good use.

Garmin GPS units used to have really good car docks. There was a series of contacts on the bottom of the GPS. The car charger plugged into the dock, and these contacts created a connection whenever the GPS was clipped in. Whenever you were using your GPS, it was supplied with power.

When my old GPS broke after several years, I purchased a new one. The new dock was disappointing, to say the least. It was just a plastic clip. It worked for holding the GPS in place, but that is all it did.

Power is provided from a separate mini-USB connection on the back. So now, you must plug in power and then the fit the GPS into the dock. Not the end of the world, I admit, but still an annoyance.

To make this easier, I made two adapters which allowed me to use the MagSafe connectors with my new Garmin.




I used the MagSafe to MagSafe2 converter and the male end of a mini USB cable to construct the first adapter. This is the one that attaches to the Garmin's USB port.

Disassembling the converter was not difficult, but I failed to capture any pictures of it. Here is a less-than-adequate description of the process. I used a vice to hold the body of the adapter (cushioned by a towel to avoid scratches), grasped the MagSafe2 end with a pair of pliers, and pried the end off. The adhesive and solder connections came apart relatively easily. Luckily, I did not need to reuse the MagSafe2 connector, it got a little scratched up.

Here you can see the MagSafe side of the adapter. The wires are coming out of the hole in the MagSafe2 side. The USB connector was bent at an angle to allow the wires to sit flat against the Garmin. 

These are the soldering connections:
  • I did not use the center-most pin of the MagSafe connector. Only two wires come from the MacBook power adapter. The center pin is connected within the end of that cable, and is used for the LED indicator. There is potential for it to be a useful third connection to supply something other than just power. (Like maybe the traffic antenna?)
  • The red wire is the positive side. It is connected to the positive USB pin and the remaining center two pins on the MagSafe connector. The connection is made to two pins so that the connector can be plugged in either direction. 
  • The black wire is the negative side. It is connected to the negative USB pin and the outer two pins on the MagSafe connector. 
  • There is one more connection that must be made within the USB connector so that the Garmin will recognize the power supply. Mini USB has 5 pins instead of four. That extra pin must be connected to the ground pin with a 17.3K ohm resistor. 

I found two sites that were incredibly helpful with figuring out the electrical connections. The first provided the following table with the pinout for the Garmin power connector.

PinPin
Name
Description
1+5V5 volts DC
2datanot connected / float
3datanot connected / float
XGNDconnected to pin 4 (GND) with 17.3K ohm resistor
4GNDground

The second site was the Wikipedia entry for USB. It had helpful diagrams of the standard USB connectors. 


Here you can see the adapter plugged into the Garmin. As you can see, I coated all the electrical connections with heat shrink tubing. I then used epoxy to further protect the wiring and connectors.




Next, I used a few scraps of wire so that the final shape would be mostly rectangular, and covered everything with a piece of larger heat shrink tubing. 

Here you can see the heat shrink tubing is shrunk and holding things together nicely.


Now for a bit more epoxy to keep things nice and rigid. Note that the epoxy was applied with the adapter removed from the Garmin. the objective was to make the adapter more robust, not to adhere it forever in place.

And finally, a bit of double-sided tape to hold it in place. This allows it to be removed if necessary. I have the other end wired permanently behind my dash board. If I want to use the Garmin in a different car, I need to remove the adapter so that my normal USB power supply can be used.


With the first adapter completed, it is now time to discuss the other end. The second adapter that I built goes from the Garmin charging cable to the MagSafe connector. This one was made from the female end of a mini USB to micro USB cable and the MagSafe cable cut off of the MacBook power supply.

The solder connections here were similar, but only two were required.

  • Positive pin of the USB connector to the inner two MagSafe pins. 
  • Negative pin of the USB connector to the outer two MagSafe pins. 


Here you can see the right-angle Garmin power connector on the left plugged into the female mini USB connector on the adapter.

Here are the two adapters joined together through the power of magnets! (Not by the force.. Vader is not actively involved in the process; he just hangs out on my dashboard.)

And finally, a picture of what it looks like with the Garmin connected to power and clipped into the car mount.

When I am done using the Garmin, I simply unclip it from the mount and pull it away. The MagSafe connector pulls apart smoothly and the end stays behind, resting on the dashboard.

The semi-dangerous part of this is that if someone tried to charge your device with a normal MacBook power adapter, the voltage would be too high (18v) and your device would most likely be destroyed... So, avoid that.

One other limitation is that there are only two wires on the MagSafe connector from the MacBook power adapter. So, if you have a Garmin power adapter with the traffic antenna, the traffic part will not work any more. Only power can be provided through the MagSafe connector.












5 comments:

  1. How do I find out how to solder the wires to the MagSafe 3 connector?
    Thanks!

    ReplyDelete
  2. I think you mean MagSafe 2? If so, I believe it has the same pinout as the original MagSafe.

    ReplyDelete
  3. Hello Andrew, can I use this whole 'invention' to power my MacBook Air laptop?. Let me explain. I have aMacBook Air 11", with all cables, chargers, etc..since I travel a lot, sometimes I forget my wall adapter and there ir nothing I can do to recharge my laptop. so, I was thinking, it would be great to have some cable with a magsafe2 connector at the end, and a microUSB connector at the other end. With the last one, I can easily plug the cable to any USB charger at any office since lots of coworker have phones with usb charger.
    That's the idea.
    Sorry about my English and hope it is clear.
    Thank you
    Regards

    ReplyDelete
  4. It's a good idea, but it won't work. The typical USB charger doesn't provide enough current to charge your MacBook. At best, the charger will fail when asked to provide more current than it can. At worst, it could damage your MacBook. I don't recommend it.

    ReplyDelete
  5. Hi there. Is there a way you would be able to make one of those that converts to the USB-c ? I'll buy one off of you. Let me know. Cheers!

    ReplyDelete