THE NEW ROBOT DESIGN
NEW PCB Design
decision
this pcb was created because previous PCB consisted the 2 buck converters which is really complicated and worst desision ever so i decided to remove them and power the servos directly with the serial bus servo motor LX-16A which is the cheapest bus servo i found with UART which can handle the 8.4V from battery and wont burn itself
The PCB SChematics
Power Stage
the LX-16A servos can reduce up to 2A of stal current which means around 36A for all them but only part of them are gonna work in Peak at the same time which makes the basic current around 9A for whole robot and 30A fuse is making it the max current in the robot thats why all of the next components are gonna be able to handle more than 30A
- XT60
- IRF4905S
- TVS DIODE
- and 4 big capacitor
- INA226(for current monitoring)
- resistor divider (for voltage)
Converters
so to power the logic i need 2 buck converters from battery to 5v and from 5v to 3.3v i used same buck converter for the powering and choose the value for resistors using the formula from datasheet
Servo bus
so the lx-16a servo motor uses UART protocol and have BUS logic signal the combine of TX RX because MCU uses RX TX but we need BUS i used half duplex trasistor to make it work and also added second half duplex because 18motor for 1 transistor can be alot and dividing it into 2 parts makes the signal a way better and clean
- 2N2222
- 6 ports - because the UART works like a chain so you can power and control all 18 servos with 1 port but we have to use 6 ports 1 per leg because otherwise the wires will stuck and wont be connected correctly
MCU
the mcu is esp32-s3 because it basic and best microcontrolleer with wifi so i can control the robot with wifi which makes it easier
- ESP32-S3
- USB-C
- buttons
*LED for feedback
IMU
i used BNO055 because while reaserching about IMU i found out that the mpu6050 and other costs the same as the BNO055 but the BNO is much stronger and the best part is that it has it own computing power which helps the MCU which is already have too much to compute
the Layout design
the PCB include 4 layers
- 1layer power zones and logic signals
- 2layer GND
- 3layer Logic Power and signals
- 4layer Power zones and logic signals
The placement
i placed the components so the power components will be seperated from Logic components to make it efficent and work correctly