Skip to content

Servo shield and power

Before any servo goes into a leg, you’ll test it and set it to its assembly angle. That needs a small bench rig: the UNO Q with the servo shield on top, and the SZBK07 feeding the servos 6.0 V. The same boards go into the robot later, so the soldering here is done once.

The UNO Q’s microcontroller runs at 3.3 V, while the shield ships set up for 5 V Arduinos. Two changes make it safe: move one jumper, and leave two header pins out.

The top of the Adafruit 16-channel PWM/Servo Shield, unsoldered: proto area at the top, the PCA9685 chip in the middle with the six I2C address pads, four groups of servo header holes, the VCC select jumper at the bottom left next to the Reset button, and the analog header at the bottom right with SDA and SCL printed over pins 4 and 5.
The shield as it comes. VCC select is at the bottom left, beside Reset. The analog header is at the bottom right; SDA and SCL are printed over its pins 4 and 5.
  1. VCC select: 5V → 3V. VCC select is the three-pad jumper on the top of the shield, between the Reset button and the IOREF/3V/5V header. Its middle pad is the shield’s logic supply (VCC): it powers the PCA9685 and pulls the I2C lines up through two 10 kΩ resistors. From the factory the middle pad is joined to the 5V pad by a thin copper bridge printed on the board, with no solder on it.

    Close-up of the VCC select jumper: three square pads labelled 3V on the left and 5V on the right. The middle and right pads are joined by a thin copper bridge; the left pad is separate.

    Cut the bridge between the middle and 5V pads with a craft knife: a few firm strokes across the gap, until the meter shows no continuity between them. Then flow a blob of solder across the middle and 3V pads.

    With VCC at 3.3 V the I2C lines stay at 3.3 V and the servo signal is 3.3 V, which DS3218s accept.

  2. Leave A4 and A5 out. On classic Arduinos A4/A5 are the I2C pins, so the shield joins them to SDA/SCL (hence the SDA and SCL over pins 4 and 5). The traces run under the solder mask on the back, so they can’t be cut cleanly. On the UNO Q, A4/A5 are separate microcontroller pins (a second I2C bus, Wire2), and the shield talks to the PCA9685 through the separate SDA/SCL pins next to AREF (“Uses only the SCL/SDA pins!”). So just don’t connect A4 and A5: when you solder the header strip below, pull those two pins out of the 6-pin analog strip with pliers first, or snip them flush.

  3. Check with a meter. With nothing plugged in:

    • the shield’s VCC (the middle pad) beeps to the 3V header pin and not to the 5V pin;
    • once the headers are on, the UNO Q’s A4 and A5 sockets don’t beep to SDA and SCL.
  1. Header strip. Solder the plain male header strip that comes with the shield (not stacking headers): the UNO Q’s headers are female, and the Media Carrier goes underneath, not on top. Put the strips into the UNO Q, lay the shield on, and solder one pin at each end first, so they come out straight. Remember the 6-pin analog strip goes in without its A4 and A5 pins (step 2 above).

    Then trim the power and analog header pins flush on top of the shield with flush cutters, and cover that row of joints with a strip of Kapton (or electrical) tape. The servo plugs lie right over them. Untrimmed, the pin tips stand up into the bottom (GND) row of the servo headers and can short a servo’s GND to 5V, VIN or an analog pin.

  2. Right-angle servo headers. Solder the 3×4 right-angle headers on channels 0–11 (and 12–15 if you have a fourth), all pointing the same way. Each header covers one block of four channels: its four columns go into the four channels (0–3, 4–7, 8–11) and its three rows into PWM, V+ and GND. The pins then point across the rows, past GND and out towards the board edge with the IOREF/RST/3V/5V/GND/VIN header, not sideways along the row (that would cover the next block) and not inwards (C2 sits there). The plugs pass over the power header’s solder joints and hang past the board edge: that’s why the shield uses plain male headers, whose plastic is underneath, and not stacking headers, whose sockets would sit in the way on top. In the robot that edge faces the front, so the plugs point towards the SZBK07 (see Electronics plate). The silkscreen marks the three rows (PWM signal, V+, GND); note which row is GND, because the servo plug’s brown or black wire goes there.

  3. Terminal block. Solder the blue two-way terminal block (V+ and GND).

  4. Capacitor. Solder the capacitor into C2, minding polarity: the stripe (−) goes to the GND side, as marked on the silkscreen. Allow about 100 µF per servo; 1000 µF covers twelve DS3218s at idle and in gentle moves. Bend the leads 90° and lay the can flat on the shield, away from the servo headers: standing up, it’s taller than the room under the top cover.

The finished servo shield stacked on the UNO Q and Media Carrier: four right-angle 3×4 headers with their long pins pointing out over the power and analog header edge, a strip of yellow Kapton tape over the trimmed header joints beneath them, the blue terminal block at the back corner, and the capacitor bent over and lying on its side next to C2.
The finished shield on the UNO Q: right-angle headers pointing out over the taped power and analog header joints, terminal block, and the capacitor laid on its side.

Do this before any servo is connected. A full 3S pack is 12.6 V, which would burn DS3218s (rated 4.8–6.8 V), and an unchecked regulator can also burn the shield’s capacitor.

  1. Wire the bench supply (or LiPo) to the SZBK07’s IN+ / IN− with 16 AWG. Check polarity with the meter.
  2. Set the board’s small ON/OFF slide switch, next to the IN terminals, to ON.
  3. Switch on. With nothing on the output, measure OUT+ / OUT− with the multimeter.
  4. Turn the voltage (CV) potentiometer until the meter reads 6.0 V. It can take many turns.
  5. If your module has a current limit (CC) pot, turn it to maximum for now.
  6. Switch off.
12.0 VBench supply10–12 V, ≥3 AINOUTSZBK07set to 6.0 VV+GNDServo shield→ 12 servosUNO Qshield on topApp LabComputer16 AWG red + blackUSB-C16 AWGstacked:I2C + GND
Hover or tap a wire for details. Red is positive, black is ground; the short coloured stubs are the button's own leads.
  1. Press the shield onto the UNO Q.
  2. Run 16 AWG from the SZBK07 OUT+ to the shield’s V+ terminal, and OUT− to GND. The terminal block has reverse-polarity protection, but don’t rely on it.
  3. Connect the UNO Q to your computer with USB-C.
✓ Check off