Assemble posey hub

From Code Lab Wiki

Jump to: navigation, search

Contents

[edit] parts

you will need:

ABS plastic hub shell
socky board
socky battery board
socky xbee board with programmed xbee chip
ribbon cable
4 ir phototransistors and a 2x6 2mm male header for each socket of the hub

[edit] fix version 0.4 socky battery board

if you have a version 0.4 battery board there are several fixes that need to be made to the board

1) cut shorted traces and add green wire:

socky battery board v0.4 repair

In the picture above, the red lines in the image show where to cut the brown traces on the top of the board, and the green line shows where to run a green wire between the vias.

2) Remove battery header and solder battery and power connector directly to board. The battery connector is the white right-angle shrouded header. The people I bought the batteries from sent me the wrong connectors, so I have just been soldering the battery to the board instead. I remove the header, and solder some solid wire or the cut-off posts of an led into the holes the header was soldered to. I leave the wire sticking out on both sides, and solder the battery to one side and the power connector (with some ribbon cable) to the other. Make sure to get the polarity right!

[edit] assemble battery board

1) Prepare components to plug into battery board. Add ribbon cable and header to power connector (unless you already soldered it on), green led and power switch.

2) Plug battery, power connector (unless these are already soldered on), green led and power switch into battery board.

[edit] assemble xbee board

1) solder a ribbon cable and header onto yellow led

2) program xbee chip

3) Plug yellow led and xbee chip into xbee board.

[edit] assemble circuit boards

Plug socky xbee board and socky battery board into socky board.

[edit] build phototransistor cable assemblies

1) cut 150mm of ribbon cable with 8 wires.

2) cut the posts off of 4 phototransitors just below where the posts widen.

3) solder the 4 phototransistors to the ribbon cable. make sure that the flat edges are oriented in the same direction.

4) solder the other end of the ribbon cable to a 2x6 2mm male header as shown here:

5) for a four hub repeat for the other three sockets and insert the headers as shown:

[edit] stuff components into plastic shell

1) press phototransistors into appropriate sockets.

2) screw power connector into nut to attach it to shell.

3) carefully snap power switch into mounting bracket.

4) press power and network indicator leds into holes, with green led closer to power switch.

5) snap battery into battery mounting bracket.

6) use nylon standoffs and #4 round-head sheet metal screws to mount circuit board in plastic shell. if the four-hub doesn't have a mounting bracket for the circuit board, just use nylon screws and standoffs to hold the circuit boards together.

7) carefully close plastic shell and fasten with #4 flat head phillips wood screw.

[edit] test your new hub

1) does the power light come on when you turn it on?

2) if the base xbee chip is powered up and within range when you power up the hub, the yellow network indicator light should flash after a few seconds to show that it successfully connected to the base xbee chip.

3) run sensor_demon_tester.py with a strut to check that the phototransistors are hooked up in the order shown here: