# Diet Raspberry Pi

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/020/673/medium800/raspberry_pi_B-.jpg?1414464210)

The Raspberry Pi finds itself&nbsp;in an ever-expanding gamut of project types…wearables, drones, internet of things and other embedded gizmos…and there are times when an extra-slim version of this already diminutive _wonderputer_ would be just the thing.

Here we’ll show how to trim some fat from the Raspberry Pi Model B+. You’ll lose the Ethernet port and at least two of the USB ports, so this is really suited only to projects where size or weight take priority over connectivity.

Danger: 

Danger: 

# Tools & Parts

In addition to a good&nbsp; **soldering iron** , you’ll need a&nbsp; **solder sucker** &nbsp;and some&nbsp; **solder wick** &nbsp;for cleanup. Flux (either the brush-on or the pen kind) makes wicking easier, but isn’t absolutely essential for success.&nbsp;Other tools include&nbsp; **flush diagonal cutters** ,&nbsp; **pliers** &nbsp;and&nbsp; **safety glasses**.

If you have access to a vacuum desoldering tool or a hot air solder rework tool, that might&nbsp;be helpful, but isn’t a necessity…those are big-ticket tools.

You will also need one or two replacement single **[USB Type A jacks](https://www.adafruit.com/product/2225)**, depending how many ports you want.

Small **pliers** &nbsp;and/or **tweezers** and a **Panavise** or a “ **helping hands** ” tool&nbsp;may also prove useful. **Anti-static mat** too, if you have one.

# Diet Raspberry Pi

## Steps

Before taking an iron to your Raspberry Pi, download and install an OS image on a microSD card and **confirm that the system boots successfully.** If it refuses to run in this state, we can troubleshoot and replace the board if needed. This is&nbsp;your last chance…once modified, there’s no telling if a failure was from the factory or a result of your board work.

Info: 

 **Dismantling the Raspberry Pi is extra challenging,** even if you have prior desoldering experience. Lead-free solder requires higher temperatures, and this&nbsp;board’s substantial&nbsp;ground plane draws away a lot of heat. But apply _too much_ heat and you’ll rip up traces or&nbsp;delaminate the board!

Lead-free desoldering is already tough, but a few points on the board are _particularly_ challenging. They’re connected to the ground plane, which becomes&nbsp;a big heat sink.

Be extra careful melting these…linger too long and the _whole board_ gets uncomfortably hot!

![raspberry_pi_hotspots.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/764/medium640/raspberry_pi_hotspots.jpg?1414711131)

The conversion process is made a little easier by&nbsp;just **not trying to salvage the parts** being removed! Don’t hesitate to clip leads, or completely dismantle the metal&nbsp;port&nbsp;housings. Anything to better access&nbsp;the area you’re trying to desolder. Let it go.

There&nbsp;is no One Right Way™ to do this. The process should&nbsp;be adapted&nbsp;to your own particular skills and tools on hand. Even with a wealth of tools, it’s still pretty time-consuming and may take a couple hours.

Info: 

# Remove Port Housings
Dismantling the metal housings around the Ethernet and USB ports can help reduce the overall thermal mass when desoldering, and makes some pins easier to access. But they’re destoyed in the process and can’t be salvaged.

&nbsp;

If you go this route, **watch out for capacitors C97, C99 and C100** when prying the backs off the USB ports. Don’t shear them off the board!

![raspberry_pi_dismantle1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/765/medium640/raspberry_pi_dismantle1.jpg?1414713425)

![raspberry_pi_dismantle2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/766/medium640/raspberry_pi_dismantle2.jpg?1414713439)

![raspberry_pi_dismantle3.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/767/medium640/raspberry_pi_dismantle3.jpg?1414713449)

![raspberry_pi_dismantle4.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/768/medium640/raspberry_pi_dismantle4.jpg?1414713457)

# Desoldering Ports
A vise is essential. This leaves both hands free…one for holding a soldering iron, the other for prying and desoldering tools. Also, the board’s ground plane can get quite hot and shouldn’t be handled.

![raspberry_pi_vise.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/769/medium640/raspberry_pi_vise.jpg?1414713971)

Removing parts often requires a rocking motion; heating one end while prying from the other, alternating sides. Cutting pins flush with the surface of the board reduces the amount of rocking needed…they’ll clear the vias sooner.

![raspberry_pi_flushcut.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/770/medium640/raspberry_pi_flushcut.jpg?1414714301)

Though I have a solder reflow tool that should, in theory, be able to heat all the pins for extracting the part…in practice I was having no luck, and went back to my trusty soldering iron, heating, prying and rocking. Use whatever you have and works well for you.

![raspberry_pi_reflow1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/771/medium640/raspberry_pi_reflow1.jpg?1414714660)

![raspberry_pi_reflow2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/772/medium640/raspberry_pi_reflow2.jpg?1414714666)

That thing about lead-free being hard to desolder? It&nbsp;was most troublesome&nbsp;with the&nbsp;Ethernet port LEDs, where the plastic housing would soften&nbsp;and deform before the solder would even melt. Fine then, let it deform, pry it up just enough to&nbsp;snip the legs of the LEDs. The remaining pins were desoldered with the heat-pry-rock technique.

&nbsp;

Eventually — boop! Freedom! Don’t worry about the remnants left on the board…we’ll clean that up later.

![raspberry_pi_etherleds.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/773/medium640/raspberry_pi_etherleds.jpg?1414714961)

![raspberry_pi_ethernet-boop.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/774/medium640/raspberry_pi_ethernet-boop.jpg?1414715443)

The USB ports similarly required a lot of grappling. Rather than trying to desolder the pins and pry the housing off the board, the housing was dismantled and the pins were clipped from the component side, and the schrapnel will be cleaned up later.

![raspberry_pi_usb-grapple.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/775/medium640/raspberry_pi_usb-grapple.jpg?1414715772)

The sad remains of the ports are then&nbsp;cleared. As each pin is heated from the underside, it’s plucked out with tweezers from the component side.

![raspberry_pi_pluck.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/776/medium640/raspberry_pi_pluck.jpg?1414715987)

# Cleaning Up
After all the pins are removed,&nbsp;most vias are still plugged with solder. Use the soldering iron and a vacuum desoldering tool to clear these out.

&nbsp;

A few holes will put up a struggle…mostly the ground pins. Sometimes it’s helpful to _add_ solder (preferably the leaded type) to a hole and heat it all the way through before using the vacuum tool.

![raspberry_pi_clean1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/777/medium640/raspberry_pi_clean1.jpg?1414716593)

![raspberry_pi_clean2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/778/medium640/raspberry_pi_clean2.jpg?1414716660)

The holes are clear, but there’s still a lot of solder debris on the board…this can bridge vias and cause mayhem, even if you’re not using the corresponding ports.

&nbsp;

Solder wick is heated under&nbsp;the tip of the soldering iron and rubbed across the areas to clean…this soaks up solder like a paper towel! **Do this on both sides of the board.** Applying liquid soldering flux first (either the brush-on or pen applicator type) makes this process a little smoother and cleaner.

&nbsp;

You may need to revisit some holes with the solder-sucker.

![raspberry_pi_clean3.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/779/medium640/raspberry_pi_clean3.jpg?1414716794)

![raspberry_pi_clean4.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/780/medium640/raspberry_pi_clean4.jpg?1414716839)

![raspberry_pi_clean5.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/781/medium640/raspberry_pi_clean5.jpg?1414716864)

# Installing Low-Profile USB Jacks

Before proceeding, you can optionally let the board cool off, insert a microSD card and test whether it still boots. Without USB ports you won’t be able to connect a keyboard and shut down cleanly, so don’t do this with a card containing irreplaceable data.

If the system won’t boot…or if it does boot, but the red power LED is flashing, disconnect power and look over your desoldering work for any bridged connections, or conductive detritus&nbsp;that may have been scattered on other parts of the board.

You can install one&nbsp;or two&nbsp;replacement USB ports, depending on your needs.&nbsp;Unlike the old stacked ports, these are single-height, so two is the maximum.

&nbsp;

These should pop right into the old spots. Use the outer row of holes, closer to the board edge. The other row will remain unpopulated.

&nbsp;

Flip the board over and solder&nbsp;the four pins and two metal housing support tabs. Once the solder’s cooled, you can trim these close to the board so it&nbsp;sits flat.

![raspberry_pi_newports1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/782/medium640/raspberry_pi_newports1.jpg?1414717647)

![raspberry_pi_newports2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/783/medium640/raspberry_pi_newports2.jpg?1414717743)

![raspberry_pi_newports3.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/784/medium640/raspberry_pi_newports3.jpg?1414717807)

Once it’s fully cooled, try attaching a monitor and booting the system from a microSD card. If the transplant was a success, you should be able to connect a USB keyboard and log in.

The red “PWR” LED should be on steady. If it’s flashing, there’s an electrical short or a damaged component somewhere.

# Diet Raspberry Pi

## Further Modifications

# Shortening the GPIO Header
With the single-height USB jack(s) installed, the GPIO header is now the highest-profile part on the board. This can be shortened slightly while retaining full functionality…

![raspberry_pi_profile.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/785/medium640/raspberry_pi_profile.jpg?1414720009)

The edge of the header’s plastic support&nbsp;can be lifted slightly using flush cutters. Be careful not to cut the pins!

&nbsp;

You can then work along the edge with a small screwdriver to pry off this piece.

&nbsp;

**Your mileage may vary.** With one Pi, the plastic support pried off cleanly. With another, this part need to be completely “nibbled” into dust!

![raspberry_pi_gpio1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/786/medium640/raspberry_pi_gpio1.jpg?1414720041)

![raspberry_pi_gpio2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/787/medium640/raspberry_pi_gpio2.jpg?1414720094)

![raspberry_pi_gpio3.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/788/medium640/raspberry_pi_gpio3.jpg?1414720133)

Use a spare piece of single-row pin header as a template for trimming the GPIO pins. Wedge this _pin side down_ between the GPIO rows, then trim&nbsp;along the plastic edge.

&nbsp;

When you’re done, the GPIO header will be a couple millimeters shorter, roughly in-line with the video connectors on the opposite edge. Anything plugged into this (ribbon cables, Pi HATs, etc.) will sit just a little bit lower now.

![raspberry_pi_gpio4.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/789/medium640/raspberry_pi_gpio4.jpg?1414720219)

![raspberry_pi_gpio5.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/790/medium640/raspberry_pi_gpio5.jpg?1414720344)

![raspberry_pi_gpio6.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/791/medium640/raspberry_pi_gpio6.jpg?1414720419)

Or, if you don’t anticipate using the GPIO header at all (or just need a few pins and can wire to them directly), it can be completely desoldered and removed.

![raspberry_pi_no-gpio.jpg](https://cdn-learn.adafruit.com/assets/assets/000/020/792/medium640/raspberry_pi_no-gpio.jpg?1414720635)

# Removing Additional Parts

If _extreeeme_ weight saving is needed (e.g. for drones), many of the ports and jacks can successfully be removed, as long&nbsp;the corresponding functionality is _never again needed_ for your application (there’s no going back with most of these surface-mount parts):

- GPIO header
- HDMI port
- Composite video/audio port
- FPC display connector
- Camera connector
- Micro USB power connector (if regulated +5V is instead fed to the appropriate pins on the GPIO header).

Most of these parts are about the same height, so there’s little&nbsp;point in removing a subset as a space-saving measure. But for aerial applications, every gram counts…go nuts.

If all of the display options are removed, then the system can only be administered remotely (e.g. ssh through WiFi). If all of the USB ports have also been removed,&nbsp;then the only way to&nbsp;log directly into the system is with a serial console cable connected to the appropriate pins on the GPIO header.

**Sometimes it’s easiest just to have a second, unmodified Raspberry Pi for administration tasks.** Move the microSD card to this system, boot and perform whatever configuration is necessary, then shut down and move the card back to the pared-down board.


## Featured Products

### Raspberry Pi Model B+ 512MB RAM

[Raspberry Pi Model B+ 512MB RAM](https://www.adafruit.com/product/1914)
OMG OMG OMG, did you hear? There's a Raspberry Pi&nbsp;called the Model B+ and check it out...more USB ports, more GPIO, better power supply, four mounting holes, less sticky-out SD card! Yep, that's right, the fantastic engineers at Raspberry Pi HQ have blessed us with a new design....

In Stock
[Buy Now](https://www.adafruit.com/product/1914)
[Related Guides to the Product](https://learn.adafruit.com/products/1914/guides)
### USB Type-A Jack

[USB Type-A Jack](https://www.adafruit.com/product/2225)
This is just a standard USB-A jack. &nbsp;It's a sturdy metal with 4 pins in the back and 2 small mounting tabs that make it easy to use in your next USB project  
  
We use this USB-A jack for everything, really. With a little effort you can bend the side mounting tabs and solder...

In Stock
[Buy Now](https://www.adafruit.com/product/2225)
[Related Guides to the Product](https://learn.adafruit.com/products/2225/guides)
### Digital Genuine Hakko FX888DX-010SV (936 upgrade)

[Digital Genuine Hakko FX888DX-010SV (936 upgrade)](https://www.adafruit.com/product/1204)
Known by engineers for making excellent quality tools & soldering irons! This is a genuine Hakko FX-888D with **digital temperature control**! We worked hard to get the best and a great price, these are **not** &nbsp;knock-offs. This iron is an upgrade to the...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1204)
[Related Guides to the Product](https://learn.adafruit.com/products/1204/guides)
### Engineer Professional Silicone-Tip Solder Sucker

[Engineer Professional Silicone-Tip Solder Sucker](https://www.adafruit.com/product/1597)
Ever go to a diner and they give you a bottle of ketchup and it says "Extra Fancy" and you're thinking to yourself "what makes this ketchup 'extra fancy' anyhow?" Well, this professional-grade solder sucker is "Extra Fancy" and there's no question...

In Stock
[Buy Now](https://www.adafruit.com/product/1597)
[Related Guides to the Product](https://learn.adafruit.com/products/1597/guides)
### Solder wick - 1.5mm wide and 1.5m / 5 feet long

[Solder wick - 1.5mm wide and 1.5m / 5 feet long](https://www.adafruit.com/product/149)
Used along with the solder sucker to clean up soldering messes. Wick really comes in handy when soldering or desoldering surface-mount parts. Even if you don't have the best iron for SMT work, a bit of wick will fix it up.

1.5mm wick, and 1.5m long, so you have plenty to work...

Out of Stock
[Buy Now](https://www.adafruit.com/product/149)
[Related Guides to the Product](https://learn.adafruit.com/products/149/guides)
### Flush diagonal cutters

[Flush diagonal cutters](https://www.adafruit.com/product/152)
These are the best diagonal cutters, large super-comfortable grip to use and have strong nippers for perfect trimming of wires and leads. I've used my pair every day for years.

In Stock
[Buy Now](https://www.adafruit.com/product/152)
[Related Guides to the Product](https://learn.adafruit.com/products/152/guides)
### Simple pliers

[Simple pliers](https://www.adafruit.com/product/146)
Simple needlenose pliers for twisting, pulling and pliering your project.

In Stock
[Buy Now](https://www.adafruit.com/product/146)
[Related Guides to the Product](https://learn.adafruit.com/products/146/guides)
### Hot Air Soldering Rework Station w/ Three Nozzles

[Hot Air Soldering Rework Station w/ Three Nozzles](https://www.adafruit.com/product/1869)
If you've ever made a mistake when surface-mount soldering, you'll know how much of a pain it can be to fix it without the right tools. It can add critical time to a project and can seriously dampen your soldering momentum if you run into a bad component or a faulty reflow. With the...

Out of Stock
[Buy Now](https://www.adafruit.com/product/1869)
[Related Guides to the Product](https://learn.adafruit.com/products/1869/guides)

## Related Guides

- [3D Printed Raspberry Pi B+ Enclosure](https://learn.adafruit.com/3d-printed-raspberry-pi-b-plus-enclosure.md)
- [Matrix 2 Mod](https://learn.adafruit.com/matrix-2-mod.md)
- [DIY USB Cable Aviation Connector Retro-Fit](https://learn.adafruit.com/aviation-connector-diy-usb-cables.md)
- [Running Minecraft on a Raspberry Pi](https://learn.adafruit.com/running-minecraft-on-a-raspberry-pi.md)
- [Apple Newton - A Personal Digital Assistant from 25 years ago](https://learn.adafruit.com/apple-newton-personal-digital-assistant.md)
- [Processing on the Raspberry Pi & PiTFT](https://learn.adafruit.com/processing-on-the-raspberry-pi-and-pitft.md)
- [1,500 NeoPixel LED Curtain with Raspberry Pi and Fadecandy](https://learn.adafruit.com/1500-neopixel-led-curtain-with-raspberry-pi-fadecandy.md)
- [Raspberry Pi LED Matrix Display](https://learn.adafruit.com/raspberry-pi-led-matrix-display.md)
- [Fruit Jam Chyron](https://learn.adafruit.com/fruit-jam-chyron.md)
- [Animated Snake Eyes Bonnet for Raspberry Pi](https://learn.adafruit.com/animated-snake-eyes-bonnet-for-raspberry-pi.md)
- [Convert your Model M Keyboard to Bluetooth with Bluefruit EZ-Key HID](https://learn.adafruit.com/convert-your-model-m-keyboard-to-bluetooth-with-bluefruit-ez-key-hid.md)
- [3D Printed Action Figure Selfie](https://learn.adafruit.com/3d-printed-action-figure-selfie.md)
- [FONA Tethering to Raspberry Pi or BeagleBone Black](https://learn.adafruit.com/fona-tethering-to-raspberry-pi-or-beaglebone-black.md)
- [TMP006 Temperature Sensor Python Library](https://learn.adafruit.com/tmp006-temperature-sensor-python-library.md)
- [DOOM Keeb](https://learn.adafruit.com/doom-keeb.md)
