The developer has designed a custom motor control module in KiCAD to manage two BLDC motors and encoders via a Raspberry Pi 5. The system utilizes a CAN bus for communication between the motors and the controller. The project uses the STM32G431 microcontroller, chosen for its hardware CORDIC and FPU modules, which offload motor control calculations from the core.
The hardware configuration includes an AS5047P encoder with SPI and I2C interfaces. Power management is handled by an MP1584 step-down converter to reach 5V, followed by an AMS1117 linear regulator for 3.3V logic. The power stage features IR2104S half-bridge drivers and AON7534 MOSFETs, with added copper zones and vias to improve heat dissipation compared to previous iterations.
The PCB design operates at low frequencies, with the highest clock speed at 8 MHz. The layout incorporates a star ground configuration to isolate digital elements from power circuits. The developer implemented a jumper-controlled 120-ohm resistor for the CAN bus to allow for future system scalability.
Manufacturing costs for five blank PCBs (85x85 mm, 1.6 mm thick, 2oz copper) in China are under $40. However, the developer faces challenges regarding payment processing due to international banking restrictions, necessitating the use of intermediaries for procurement and logistics.






