Hexapod PCB

Created by [Chinedu Okpala] • Started on June 26, 2025

4-Layer PCB for Robotic hexapod

4-Layer Hexapod PCB.

Total Hours: 21

Reaserch 6/26/2025 3 Hours

In order to create a 4-layer PCB, I knew that I needed to first look into how I should go about it. The main reason why I wanted to use a 4-layer board was due to two factors:

  • Uniform power distribution for all 18 servos.
  • Space for all the traces on the pcb.

Uniform power planes allow for better power distribution while also protecting signal integrity to some degree. After looking into different configurations, I decided to layer my 4-layer PCB as this:

  1. Signal
  2. Ground
  3. Power
  4. Back

This formation allows me to protect the main signal integrity of the servos due to it being near the ground plane. Thats the main thing but the back also allows me to do leftover traces.

Circuit Schematic 6/27/2025 - 6/28/2025 6 Hours

This circuit diagram took quite the time due to stuff from my past arduino shield needing to be revamped. The one thing that stayed constant was the pins schematic that I could just transfer over. This was the pins shcematic for the pcb:

Screenshot 2025-07-08 015910

The next part that I decided to tackle was the arduino mega pro that I would be using. All I needed to do was to look at an arduino mega pro 2560 as a refrence to see the best possible routing digital pins. This was fairly simple and after adding additional analog pins that I would be using later, this was the arduino mega pro schematic:

Screenshot 2025-07-08 020239

The next step was the NRF2401+. The datasheet recommended to use a capacitance of at least 10.1 nano farads. So I decided to simply use a 22 nf capacitor since I can use one from a cap kit that I had. Besides that it was pretty simple. This was my schematic:

Screenshot 2025-07-08 230751

The Inertial sensor (MPU6050) which I am using to deduce the accelerations of the robot is next. It was reccomended that the sda and scl connections had pull up resistors with 4.7k ohms. This was my schematic:

Screenshot 2025-07-08 230920

Looking at the indicators for my PCB (2 LEDS & 1 Buzzer) I just decided to use the first buzzer I found online due to its cheapness not affecting performances. For the LEDs I am using the WS2812B LEDs due to their multicolor features and ease of use. Besides this the LEDs also needed a ceramic cap for signal decoupling purposes. THese were the schematics for the buzzer and leds respectively:

Screenshot 2025-07-09 020554 (Buzzer)

Screenshot 2025-07-09 020547 (LEDs)

Finally, probably the most important part is the power supply. The main thing that I need from this power supply is a constant voltage so that in cases where a sservo moving can cause a voltage disturbance or some other wacky stuff I can still get a smooth voltage. I decided to use 2 bulky capacitors that combat changes in voltage. Also some other things that I added was a voltage divider to measure voltage and a current IC to measure current. This was the power supply shcematic that I have cooked up:

Screenshot 2025-07-09 020600

PCB Routing / Editing 6/29/25 - 7/7/2025 15 Hours

Something to note into how this part took so so long is that it went through multiple variations. The first thing I needed to do was to position all the components in a way that I could route them. This was the arrangemnt that I came up with:

Screenshot 2025-07-09 132925

Nex was the actual routing part of this PCB. But as I was thinking about the circuit I realized something: the arduino & the servos needed a different power supply. Since my arduino mega pro takes a minimum of 7V while the maximum that the servos should be getting is 6.8V, which I possibly wanted to get lower for higher speed. I decided that I would need to attach a buck converter onto the actual board. However, I was not sure which voltage to use and which speed I wanted. After I finished routing everything, this was my final PCB:

Screenshot 2025-07-09 191733