Controller Board & Wiring
Connect the MCU, optional PCA9685, and signal lines with a clean, labeled loom.
Learning objectives
- Wire I²C (SDA/SCL) from MCU to PCA9685 with shared ground
- Map each joint to a PWM channel and document it
- Strain-relieve cables along the arm links
- Perform a continuity and address scan before full motion
Lesson
Recommended topology: MCU ←I²C→ PCA9685 ←PWM→ servos. On Arduino Uno/Nano: SDA = A4, SCL = A5 (Leonardo/Micro and Mega differ — check your board). Many PCA9685 boards include pull-ups; if not, add 4.7 kΩ to 3.3/5 V as appropriate.
Channel map example (customize freely, but write it down):
Route signal wires along the inside of links with slack loops at each joint so flexion does not yank connectors. Keep high-current power wires short and thick; keep PWM signal wires tidy but not stressed.
If driving servos directly from MCU pins, confirm each pin supports the Servo library / timer plan and still isolate the power rail as in Chapter 4.
Components for this chapter
Arduino Uno / Nano / compatible MCU
×1ElectronicsMain controller
PCA9685 16-ch PWM driver board
×1ElectronicsServo PWM generation
Dupont jumper wires (F-F, M-F)
×40ElectronicsSignal and low-current interconnects
USB cable for MCU programming
×1ElectronicsFlash firmware and serial monitor
Zip ties / spiral wrap
×20FastenersCable loom and strain relief
| Component | Qty | Category | Purpose | Notes |
|---|---|---|---|---|
| Arduino Uno / Nano / compatible MCU | 1 | Electronics | Main controller | — |
| PCA9685 16-ch PWM driver board | 1 | Electronics | Servo PWM generation | — |
| Dupont jumper wires (F-F, M-F) | 40 | Electronics | Signal and low-current interconnects | — |
| USB cable for MCU programming | 1 | Electronics | Flash firmware and serial monitor | — |
| Zip ties / spiral wrap | 20 | Fasteners | Cable loom and strain relief | — |
Step-by-step
- 1
Mount MCU and PCA9685
Secure both boards on the base or a nearby panel with standoffs. Ensure connectors remain accessible and cannot collide with J1 rotation.
- 2
Wire I²C and common ground
Connect SDA→SDA, SCL→SCL, VCC→MCU 5 V (logic), and GND→GND. Confirm OE pin is tied so outputs are enabled per your board’s docs (often pulled appropriately already).
- 3
Connect servo power to the driver
Feed the dedicated servo PSU into the PCA9685 terminal block (V+ / GND). Do not confuse logic VCC with the high-current servo terminal.
- 4
Plug servos to mapped channels
Orient connectors correctly (signal / V+ / GND — check silk). Label each plug with joint ID. Leave unused channels empty.
- 5
Loom and strain-relieve
Bundle wires along the arm. Add service loops at elbow and wrist. Re-check that full-range motion does not tension any connector.
Tips, safety & pitfalls
Finished this chapter?
Sign in to save progress to your account and pick up on any device.