The wires
You make 13 wires from jumper wires and 1 short wire from an offcut. The jobs below are in the order you do them during the build. Each job goes one action at a time: measure, cut, strip.
What you need
- 13 jumpers, 20 cm long, with a socket on both ends (female to female): 2 red, 3 black, 2 orange, 1 blue, 1 green, and 4 of any other colours.
- Tools: a fine pen, a ruler in mm, flush cutters, wire strippers.
The jobs, in order
- : nothing to cut
- : measure, cut, strip
- : measure, cut, strip
- : sockets off, strip one end
- : measure, cut, strip the other end
- : measure, cut, strip
- : cut from an offcut, strip both ends
How to measure, cut and strip
Every job uses these actions. Each job gives its own numbers.
- 1
A jumper is 200 mm long, with a socket at each end. A socket is the black plastic end with a hole in it. It pushes onto a pin.
- 2
Mark: hold the wire along its path in the case. Draw a line across it with the pen, at the place the job names.
- 3
Measure: lay the wire on the ruler with 0 at the pen mark. Count the distance the job gives, on the side away from the socket.
- 4
Cut: cut straight across there with the flush cutters. The rest of the jumper is not used.
- 5
Strip: with the strippers, take the insulation off the cut end, so the length of copper the job gives shows. Twist the copper strands tight.
- 6
Cut off a socket: cut the wire right where it goes into the black plastic.
Wires 11 to 14
ULN2003 IN1 to IN4 → XIAO D7 to D10
You need: 4 jumpers, any colours. When: the XIAO is clamped in, and the battery bay is not in yet.
- 1
Nothing to cut. Use the 4 jumpers whole, with both sockets on.
About 85 mm of each is spare. It is folded flat on the motor-cable coil.
Wire 2, red
ULN2003 + pin → battery + contact
You need: 1 red jumper. When: the step wires are in, and the battery bay is not in yet.
- Measure, in the case
- 1
Push one socket onto the ULN2003's + pin.
- 2
Lead the wire to the battery bay's top left post. Hold it level with the top of the post, not down on the floor.
- 3
Draw a pen mark on the wire at the post's edge nearest the cells: the red ring in the picture.
- 4
Pull the socket off the pin. Take the wire to the bench.
- Cut
- 5
Measure 15 mm past the mark, away from the socket. Cut there.
The 15 mm is about 4 mm to reach the contact, 8 mm of extra length so the wire is not tight, and 3 mm of copper.
- Strip
- 6
Strip the cut end: 3 mm of copper. Twist the strands.
Done: about 31 mm of wire, a socket on one end, 3 mm of copper on the other. Yours is the length you marked; 31 mm is the model's estimate.
Wire 4, black
ULN2003 − pin → battery − contact
You need: 1 black jumper. When: straight after wire 2.
- Measure, in the case
- 1
Push one socket onto the ULN2003's − pin.
- 2
Lead the wire down, to the left of the step wires, to the battery bay's bottom right post. Hold it level with the top of the post.
- 3
Draw a pen mark on the wire at the post's edge: the red ring in the picture.
- 4
Pull the socket off the pin. Take the wire to the bench.
- Cut
- 5
Measure 15 mm past the mark, away from the socket. Cut there.
- Strip
- 6
Strip the cut end: 3 mm of copper. Twist the strands.
Done: about 98 mm of wire, a socket on one end, 3 mm of copper on the other. Keep the offcut: wire 5 is cut from it.
Wires 1 and 3, first cut
battery contacts → XIAO battery pads
You need: 1 red jumper (wire 1) and 1 black jumper (wire 3). When: straight after wire 4.
These two wires are cut twice. One end is soldered to a battery contact on the bench, before the battery bay goes in. The other end goes to the XIAO. Its length is only known once the bay is screwed down, so that end stays long until job 5.
- Cut
- 1
Cut off both sockets of each jumper, right at the plastic. 172 mm of wire is left.
- Strip
- 2
Strip one end of each: 3 mm of copper. Twist the strands. This end is soldered to the battery contact.
- 3
Leave the other end as it is.
Done: 2 wires, 172 mm long, no sockets, 3 mm of copper at one end.
Wires 1 and 3, at the XIAO
wire 1 → BAT+ pad, wire 3 → BAT− pad
When: the battery bay, with wires 1 and 3 soldered to its contacts, is screwed into the case.
- Measure, in the case
- 1
Wire 3, black, first: lead it between the XIAO's two rows of pins to the BAT− pad, beside D2.
- 2
Draw a pen mark on the wire where it reaches the pad's edge.
- Cut
- 3
Cut 2 mm past the mark.
- Strip
- 4
Strip back to the mark: 2 mm of copper. The copper lies on the pad and the insulation ends at the pad's edge.
- 5
Wire 1, red: the same 4 actions, to the BAT+ pad, beside D3.
Done: both wires end in 2 mm of copper, lying on their pads, ready to solder.
Wires 6 to 10, the sensor wires
XIAO D0, D1, D4, D5, GND → AS5600 VCC, VCC, SDA, SCL, GND
You need: 5 jumpers: 2 orange, 1 blue, 1 green, 1 black. When: the AS5600 board is on its bridge, and the bridge is screwed to the base.
- Measure, in the case
- 1
Push one socket of each onto the XIAO: D0 and D1 orange, D4 blue, D5 green, GND black.
- 2
Lead all five flat along the bottom, up through the notch, and along the bridge's channel. Across the channel: SDA nearest the upper wall, then SCL, VCC, VCC, GND.
- 3
Draw a pen mark on each wire where it reaches its hole on the AS5600 board.
- 4
Pull the sockets off the XIAO and unscrew the bridge. The wires stay in its channel.
- Cut
- 5
Cut each wire 3 mm past its mark, away from the socket.
- Strip
- 6
Strip each back to its mark: 3 mm of copper.
The copper goes through the hole until the insulation meets the board, so the mark ends up at the board.
Done: 5 wires, each with a socket on one end and 3 mm of copper on the other.
Wire 5
AS5600 GND → AS5600 DIR, across the board
You need: the black offcut from wire 4. When: the sensor wires are cut.
- Cut
- 1
Cut a piece 25 mm long.
- Strip
- 2
Strip both ends: 3 mm of copper at each. Twist the strands.
Done: it is soldered on the side of the board without the chip, from GND to DIR.
Every wire
| # | From | To | Made from | Finished length | Job |
|---|---|---|---|---|---|
| 1 | Battery + contact | XIAO BAT+ pad | Red jumper, both sockets cut off | Cut at the pad (route about 98) | 4, 5 |
| 2 | Battery + contact | ULN2003 + pin | Red jumper, one socket kept | About 31 + socket | 2 |
| 3 | Battery − contact | XIAO BAT− pad | Black jumper, both sockets cut off | Cut at the pad (route about 51) | 4, 5 |
| 4 | Battery − contact | ULN2003 − pin | Black jumper, one socket kept | About 98 + socket | 3 |
| 5 | AS5600 GND | AS5600 DIR | Offcut from wire 4 | 25 | 7 |
| 6, 7 | XIAO D0, D1 | AS5600 VCC | Orange jumpers, one socket kept | About 168 and 166 + socket | 6 |
| 8 | XIAO D4 | AS5600 SDA | Blue jumper, one socket kept | About 149 + socket | 6 |
| 9 | XIAO D5 | AS5600 SCL | Green jumper, one socket kept | About 157 + socket | 6 |
| 10 | XIAO GND | AS5600 GND | Black jumper, one socket kept | About 162 + socket | 6 |
| 11 to 14 | XIAO D7 to D10 | ULN2003 IN1 to IN4 | Whole jumpers, both sockets kept | 172 + 2 sockets | 1 |
| 15 | Motor | ULN2003 white socket | The motor's own cable | As it comes | none |
Lengths in mm, from the case model, so they are estimates. The lengths you mark in the case are the real ones.
Soldering
The joints, by place
- Battery contacts: 2 joints, 4 wire ends, on the bench (step 7).
- XIAO battery pads: 2 joints, in the case (step 10).
- AS5600 board: 5 holes, 7 wire ends, on the bench (step 14).
How to make each joint
- Iron at about 330 °C. Tin the tip: melt a little solder on it and wipe it, so it is shiny.
- Strip 2 to 3 mm, twist the strands tight, and tin them: iron under, solder on top until it soaks in.
- On a flat pad (XIAO): melt a small bump on the pad, lay the wire on it, iron on the wire 2 to 3 s, lift, hold still 3 s.
- In a plated hole (AS5600): wire through from the side without the chip, iron on the ring and wire together, feed solder until the hole fills with a small cone. Trim afterwards.
- On a contact's tab: tin the tab first (piece out of the bay), then wires on it, 1 to 2 s.
- Check: smooth and shiny, flowing onto both. A dull ball did not flow: heat again. Nothing joining two pads. A gentle pull.
Tools
- The 60 W iron, fine pointed tip; 63/37 rosin core solder, 0.8 across; a damp sponge or brass wool.
- Multimeter, flush cutters, wire strippers, a fine pen, flat-nosed pliers, electrical tape, a cloth, a vice or block (step 14), the M3 screwdriver and hex key.
Safety
- No cells in the bay while you solder.
- 63/37 solder contains lead: keep air moving, don't eat while soldering, wash your hands afterwards.
- The tip is about 330 °C. Back in its stand every time you let go of it.
- Do the meter checks (steps 10 and 12) before the first cells go in. A swapped + and − can damage the XIAO.
- Whenever USB-C is plugged into the XIAO, take one cell out first: its charger would try to charge the AA cells, which can make them leak.
- Never 4 cells (about 6.4 V, over the battery pads' 6 V limit), and never the XIAO's 5V pin.
Pin map
Every wire, pin to pin
Drawn flat for reading, not to scale. The XIAO from its pin side; the AS5600 from its chip side.
XIAO nRF52840, as it sits in the case
AS5600 board
Why this order
- A part goes in before anything that covers it. The battery bay covers the most: the motor's lower screw (behind the boss that carries the sensor bridge), the ULN2003's two lower screws, most of the motor's plug, the cable coil, and the step wires' route.
- A wire is cut only once both of its ends' places are fixed. Where one end is soldered on the bench (the battery contacts, the sensor board), the wire is first laid along its real route in the case and marked.
- The XIAO's battery pads come last in their area. A pad can tear off its board, so they're soldered once the bay is screwed down and nothing after pulls on them.
- Until the cover goes on, the base is open on all four sides above its lip (25 from the wall), so the ULN2003's pins can be reached over the top lip, and the XIAO from the bottom through the lip's notch.
Why the battery wires aren't threaded through the slot
The only way from the slot to the front is the plate's own pocket. So the wires are soldered to the tab's end at the bay's back instead (step 7).
Still to check on the real parts
- Which ULN2003 power pin is + (step 2).
- That the contacts fit their pockets, and their tabs show in the recesses (step 7).
- The XIAO's battery pad labels, against Seeed's pinout (step 10).
- That the AS5600 board matches its listing picture, and whether two wires fit one hole (step 14).
- The ULN2003, the motor cable and the contacts are placed from photo estimates, so routes and openings here are estimates too. The allowances in steps 6 and 13 cover a route up to about 10 longer.
The 3D model, the pictures and the drawings are made from the case model by
cad/wall_case/v6.6/soldering_guide_model.py (run it from hardware/cad after any change).
Wire routes are the hand-routed estimates in wall_case_v6.6.py.