My Eagle PCB Walkthrough
Tags: robots, smd, pcb
Published: 2013-03-24 10:00:00

---
title: My Eagle PCB Walkthrough
published: true
tags: robots, smd, pcb
published_at: 20130324T10:00Z
series: Custom PCBs
canonical_url: https://ladvien.com/make-an-adxl345
main_image: https://ladvien.com/images/IMG_0543-Optimized.jpg
---

## Step 1:
**Get over to Analog Devices and sign-up for a** **[sample account.](http://www.analog.com/en/content/samples/fca.html)** They seem to be pretty nice and let you order several samples every month, I believe.

[](http://www.analog.com/en/content/samples/fca.html)

## Step 2:
**Order a few samples of the ADXL345 chip from** [Analog Devices.](http://www.analog.com/en/mems-sensors/mems-inertial-sensors/adxl345/products/product.html)

![](https://ladvien.com/images/samplerequest.jpg)

## Step 3:
**Download the Eagle files from Sparkfun:**  [ADXL345](http://www.sparkfun.com/datasheets/Sensors/Accelerometer/ADXL345-BreakoutBoard-v13.zip) (Note the price).

![](https://ladvien.com/images/adxl345sparkfun.jpg)

## Step 4:
Sign up for an [OSHPark](http://www.oshpark.com/) account.  Then, upload the .brd found in the Eagle files.

![](https://ladvien.com/images/OSHParksplash.jpg)

## Step 5:
**Order the capacitors.**

[2 x 0.1uF](http://www.ebay.com/itm/160318833833?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649)

[1 x 10uF](http://www.ebay.com/itm/281056801982?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649)

## Step 6:
**Try to learn Python while the mail peoples do their magics.**

![](https://ladvien.com/images/3236811556_e470493eef.jpg)

## Step 7:
Flip-off your Python code and get the mail.  

## Step 8:
Take everything out.  ADXL breakout board, ADXL345 chip, and caps.

## Step 9:
Populate your board.  At this point, a good iron will do you well.  But as a general rule, start with the largest chip when soldering SMDs.  In our case, it is the ADXL345. Paint some solder flux all over the exposed pads.  Now, take a very fine solder, such as .022 and put some on the tip of your iron.  Drag the droplet of solder across the exposed pads of where the ADXL will go.  Now, after the beads have cooled, paint your solder flux over the hardened beads.  The idea is to have the chip floating on this flux.

![](https://ladvien.com/images/IMG_0543-Optimized_1200x900.jpg)

## Step 10: 
**Place the ADXL345 on the invisible flux, hovering over the pads.  Make sure the small white dot on the the corner of the chip is in the same place the red is below.**

![](https://ladvien.com/images/IMG_0550_4000x3000_0.jpg)

## Step 11: 
Put the board on an over turned iron. This is the most important part: **Watch the chip.**  What you are hoping to see is the chip magically float in place as the solder flux flows out from under the chip, leading to the solder beads bonding with the exposed copper of the ADXL345. Seriously, don't look away :).  If for some reason you don't feel the chip has bonded at each pad, then very lightly press down in the middle of the chip.  I said lightly!

![](https://ladvien.com/images/IMG_0547_4000x3000.jpg)

## Step 12:
Cap that B.  Erm, populate the capacitors.**

![](https://ladvien.com/images/IMG_8697_1150x768.jpg)

![](https://ladvien.com/images/IMG_8705_1150x768.jpg)

## Step 13:
Plug and pray.

## Step 14:  
Realize it doesn't work because you suck at life.

## Step 15: 
Pull the ADXL back off, clean the pads with solder wick, and try again.

![](https://ladvien.com/images/IMG_0555_1024x768.jpg)

## Step 16: 
Repeat step 11, but this time, watch the chip, no seriously.**

## Step 17: 
Hook it up and check it out.  **The chip is both SPI/I2C ready, but I prefer I2C.  So, hook that sucker up to the Arduino and see if it works.  This fellow provided code and instructions on connecting are in the code's comments at the top.

[Arduino Code for ADXL345 I2C](https://github.com/jenschr/Arduino-libraries/blob/master/ADXL345/examples/ADXL345_no_library/BareBones_ADXL345.pde)

## Step 18:
Watch as your one dollar(ish) ADXL345 does witchery.

![](https://ladvien.com/images/ADXL345_Running.jpg)

## Step 19:
Ponder the ethics of sampling chips, borrowing board layouts from SparkFun, and buying underpriced capacitors from China; all leading to saving you around $12~25--**or have a beer.**

## Step 20:
Try not to abuse the sampling previlige.

If you have any questions, I'll do my ignorant best.