Project:Nanode/Building a Nanode

From London Hackspace Wiki
Jump to navigation Jump to search

Building a Nanode - in Words and Pictures

Here's how to build up a Nanode as a step by step guide. It should take you a couple of hours.

Then you can move on to testing and Nanode Applications

Step 1

First identify the kit contents

Version 5 Nanode - Component side of pcb

Here you see all the resistors, capacitors, connectors, crystals and ICs needed to make the standard build of Nanode 5.

Everything should be supplied in a pink antistatic plastic "zip" bag.

Step 2

Now orientate the board so that the writing is positioned like this. Note how the component value has been written underneath or close by the component location.

Version 5 Nanode - Component side of pcb

This is the basic starting point for the build sequence. The pcb is built in an orderly sequence starting with the resistors and small components that are low on the board and then working up to the bulkier parts like connectors.

Building a Nanode is just a case of replicating the steps shown in the following picture sequence - no real electronics experience needed - just basic soldering skills.

We start with the resistors that make up the central strip. Resistor leads should be bent close to the resistor body within about 1mm.

A tip for doing this without tools - Hold the resistor between thumb and first-finger, and use the other hand to bend the resistor lead over the thumb nail.

Step 3

First we add the five 10K resistors - the colour code is Brown Black Black Red (The last band on all resistors is Brown).

Work methodically, - it looks neater if the resistors are all inserted the same direction so that the colour code can be read easily from the left hand side.

Add the 5 10K resistors

Step 4

Now we add the four 51R resistors - the colour code is Green Brown Black Gold.

Adding the four 51R resistors

Step 5

Now we add the three 220R resistors - the colour code is Red Purple Black Black.

Adding the three 270R resistors - note the one on the extreme right

Step 6

The remaining 1R, 10R and 2K resistors are added.

1R has the colour code Brown Black Black Silver and is fitted in the position marked "ferrite".

The silver and gold colours look very similar in certain light conditions - if in doubt use a multimeter to check the value before you fit it.

10R is Brown Black Black Gold

2K is Red Black Black Brown

Note - we will not be fitting the two 68R resistors, the 1K5 and the 1M on the right hand side near the USB socket - these are a later virtual USB option - retain them in the kit to be fitted when the software for this option is released.

Adding the remaining 3 resistors

Step 7

Add the IC sockets making sure that the pin 1 "notch" lines up with the notch in the symbol on the pcb.

It's best to tack diagonally opposite corners to hold the socket in place whilst the rest of the pins are soldered. Make sure they are fitted flat on to the board.

IC Socket alignment
Flip the pcb over and tack diagonally opposite corner pins first
Then solder every pin

Step 8

Add the four 22pF capacitors marked 22 and with a flash of black paint, and the two 10nF capacitors marked 103

Add the brown ceramic capacitors

Step 9

Add the 25MHz crystal marked 25.00SCA. Crystals should be inserted so that the top lies flush with the top of the adjacent IC socket.

Add the 25MHz crystal so its flush with the nearby IC socket

Step 10

Add the 16MHz crystal marked 16.00SCA

Add the 16MHz crystal making it flush with the IC socket

Step 11

Add the seven 100nF capacitors, colour blue and marked 104. There is a spare location for a 100nF capacitor next to pin 1 of the ATmega328 IC. Do not fit any component in this location - just the seven in the picture.

Add the blue 100nF ceramic capacitors

Step 12

Here is the board so far - more than half way.

The board so far assembled

Step 13

Solder in the "shield" connectors. There are 2 x 6 way and 2 x 8 way SIL sockets. Make sure you get them in the inner lines of holes and that they are fitted straight and vertical. Best to tack one end pin whilst you hold them straight - check the alignment then solder the remaining pins in place.

Fitting the four Shield Connectors

Step 14

Add the three 10uF electrolytic capacitors - noting that the longer lead is the positive which lines up with the + label on the pcb. You can also confirm the orientation by looking at the position of the white strive (-ve) in the photograph.

Add the three 10uF electrolytic capacitors

Step 15

Add the FTDI header - a 6 way right angled header on the right hand side of the pcb. Make sure it is straight and level.

Fit the 6 way header for the FTDI cable

Step 16

Fit the right angled reset switch

Fit the Reset Switch

Step 17

Add the 5V regulator as shown and the 4 way screw terminal block. You may need to assemble the two 2 way terminal blocks to make a 4 way - BEFORE you solder to the pcb.

Fit the 5V Regulator and the Screw Terminal Block

Step 18

Fit the 1N4001 protection diode as shown - noting that the banded end is lined up with the band on the pcb legend

Fit the 1N4001 reverse polarity protection diode

Step 19

Now - the tricky part. The 3V3 regulator needs to be fitted in a certain way - but not like the pcb symbol. Copy the orientation as in the next 2 pictures.

Fit the 3V3 regulator - turned so it's exactly as shown
Fit the 3V3 regulator like this!

Step 20

Now we test the board to make sure that the 5V and 3V3 power supply rails are working OK. We do this before we insert any of the ICs (as more than 60% of the kit value is in the ICs and we don't want a premature fry-up).

Put the positive probe of the meter on pin 14 of the 14 way IC socket and the negative probe on pin 7 of the same socket.

Insert the FTDI cable with its black wire closest to the centre of the pcb. Look for a voltage close to 5.00V.

To measure the 3V3, keep the black meter lead on pin 7 of the 14 pin socket and put the red meter probe on pin 28 of the far 28 pin socket as shown. Look for a voltage close to 3.3V

Measure the 5V like this!
Measure the 5V like this!
Measure the 3V3 like this!
Measure the 3V3 like this!

Step 21

If the voltage tests check out - we can fit the remaining parts - the Mag-jack connector, the USB connector and the Red LED.

The Mag-jack has 12 pins, 2 lugs and 2 prongs to insert, and can be a bit tricky. Line it up carefilly and gently push it home. Make sure all the narrow pins have been correctly inserted through their holes.

Solder in place including the 2 metal prongs.

A similar process for the USB B socket.

The Red LED is fitted such that the long leg, the anode, is inserted in the hole closest to the edge of the pcb.

Very nearly finished

Step 22

Now we come to fit the ICs into their sockets.

Remove the power (FTDI or USB) from the pcb before inserting the ICs!

The ICs can be added - making sure you have the correct position and orientation.

Don't get the ATmega328 and the ENC28J60 in the wrong sockets - as that would be bad, quite bad.

The ATmega328 will be supplied pre-programmed with the bootloader.

Some ICs will have their pins slightly splayed. This can be fixed by pressing the side of the IC firmly against the bench top until the pins are straight and parallel.

Running the "Blinky" Test Code