As exercise #2 let's assemble the AVR32 board called bronze. See attached files below for detailed information on the bronze board.
For background information and an overview, see smd.
Parts are kept in the ring folder in transparent envelopes. Each envelope is labeled with the bronze board part designator, e.g. R5, D1, etc. Please put the parts back immediately after taking them out. And please please please make sure that parts go back inside the labeled bag for each part!!!!!!!
Your setup for assembling SMD prototypes consists of
' and'rosin-core solder wire. Both are useful.
Before starting with this step, watch this video: http://youtu.be/4_XqoapZ5Qk to see in general how to solder small 2 pin parts.
In this video you the assembly and testing of some components on the bronze board which are simple to solder is shown.
On the bronze board, start with soldering the following
Your soldering should end up shiny and bright and should clearly flow up from the pad onto the pin of the part.
When you solder the USB connector, bend the pins sticking through the board outwards before you solder the USB connector. To avoid possible stress on the SMD joins, solder these holding pins first, the the SMD pads.
After all these components are soldered, the blue LED should go on once you connect your board to a computer.
The orientation of the LED is shown here:
The power LED should light up when you plug in the board to a computer.
Measure the voltage across C2
'. It must be within '5V +/- 5%.
Next we'll solder the voltage regulator that makes 3.3V from the USB 5V VBUS and some power supply bypass capacitors.
Measure the 3.3V rail voltage over C3 or C4. The voltage must be within 3.3V +/- 5%.
Before soldering the next components, watch this video: http://youtu.be/uPbjyeJypcg
Important: Before attaching the AVR32, you need to cut a trace on the PCB for one of the pins that is incorrectly connected. Cut the trace from pad 36 to the via just inside the frame, as shown below by the short blue line inside the black circle. Use a razor knife, and make the cut towards the inside of the frame, from northwest to southeast in the image. This direction will help avoid cutting the trace above and to the left. You don't need to cut very deeply, just enough that you don't see the metal anymore. Watch out for cutting other traces! Gently does it.
Do you see the problem on the schematic? Hint: look at the VDDIO connections on pins 36 and 48 on the schematic:
When soldering the AVR32, in case you create bridges between the microcontroller pins: * make sure that they don't have to be there: Check with a blank PCB whether the two pins are connected by a trace directly in between. On the bronze board, no pins are shorted by direct traces between the pins. * Remove extra solder to clear the bridge:
Here's what it looks like:
Now it is time to solder:
When handling U1, be careful not to bend any of the pins. If you drop U1 on a hard surface the pins will almost always be bent on the corner and it is very difficult to straighten them. Be careful bending the pins in any case; they are brittle and will break off easily.
When you solder U1, make absolutely certain that the part is lined up properly on all four sides after you solder only one corner pin.
' If the alignment is not correct, fix it before soldering any other pins. Once you solder one corner correctly, solder the opposite corner. If everything is lined up properly, the solder one of the sides that has no solder. Now the rest should be easy. 'Do not mash the pins, a gentle touch of the soldering iron is all that is needed. If you bend the pin while soldering it is very hard to get it back on top of the pad.
You can use either a very thin line of solder paste or apply a bit of thin wire solder to the iron tip and get it to flow onto the pins and pads. A bit of liquid flux applied to the line of pads helps in this case quite a bit.
If you are confident that U1 and Q1 have been soldered correctly, you can solder the remaining (easy) components. Refer to the schematic for values. All parts are in the folder of parts labeled by part number.
There is one component on the back side of the board, L2, which should just be a shorting jumper. Solder a zero ohm resistor (a jumper). This connection isolates the AVR analog supply voltage. If you forget it nothing will work!
Your board should now look like this (except you will not have the LDR or RGB LED):
Look at your board under the high power microscope. Look especially between the pins. You should not have leftover solder balls! If there are too many they will cause a short - maybe not today but later on. In any case, your solder joints should be shiny and clean and clearly weld the pins to the pads with nice wedges.
First, plug your board into the current-limited supply with the USB cable on it. If your board draws too much current the voltage will drop. A working board draws <40mA @5V. If your board draws too much power you must find the short(s) and fix it/them.
Next, after plugging in the board to a computer, check all rail voltages again:
| Measurement Site|
|C1 or C2||5.0V +/- 5%|
|C3 or C4||3.3V +/- 5%|
|C7 or C8||1.8V +/- 5%|
If any of the voltages are out of range disconnect the board immediately and start visual inspection, and have someone else look at the board.
If you have an oscilloscope, let's check the oscillator: * Attach a wire to some GND pin. * Connect the scope ground clamp to the wire * Check the signal on C5 or C6, on the signal side, not the ground side. * You should see a (more or less sinusoidal) 12MHz signal with about 1Vpp amplitude.
Connect your board to a Windows computer and in the Device Manager you should see the AVR32 USB DFU device show up (if you installed the driver earlier).
Or, connect your board to a Linux computer, then run the command lsusb in a shell.
Besides other devices you should see: bus_device}
To get further information on what Linux found out about the device, run sudo lsusb -d 03eb:2ff6 -v
You should get this: <nowiki> Bus ??? Device ???: ID 03eb:2ff6 Atmel Corp. Device Descriptor:
bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x03eb Atmel Corp. idProduct 0x2ff6 bcdDevice 10.00 iManufacturer 1 ATMEL iProduct 2 AT32UC3B DFU iSerial 3 1.0.2 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 27 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 0 bInterfaceClass 254 Application Specific Interface bInterfaceSubClass 1 Device Firmware Update bInterfaceProtocol 2 iInterface 0 Device Firmware Upgrade Interface Descriptor: bLength 9 bDescriptorType 33 bmAttributes 15 Will Detach Manifestation Tolerant Upload Supported Download Supported wDetachTimeout 0 milliseconds wTransferSize 65535 bytes bcdDFUVersion 1.01
Device Status: 0x0001
Now solder the 2×16 pin round pin gold plated headers into the bottom of the board to allow you to plug the bronze board into a solderless breadboard, as shown below. Solder the thin pins from the bottom into the board so that the thick tough part sticks out. You will need to cut apart some pieces. Make sure the pins are nicely vertical and properly aligned so that you can plug the bronze board into the solderless breadboard later.
Finally, you can solder the LDR and RGB LED if you want to run this test. The RGB LED has one ground cathode pin and 3 positive anode pins, one for each color. It is oriented as shown below:
You made it till down here? Congratulations! Your board passed all tests that do not require a test-firmware to be flashed…