📄️ Overview
This page is about the firmware flashed on the B-G431B-ESC1 Discover Kit by ST.
📄️ Development
This repository is used to maintain and reflash the ESCs on rovers when necessary. To use it, you will need to first download platformIO extension in VSCode (as seen below):
📄️ Code Overview
The speed controller firmware is divided into two procedures read the PWM input command and call motor.loopFOC(); and motor.move(input); to actuate the motor.
📄️ Wire Connections
The ESC needs to be connected to the motor using the bullet connectors. The order of the wires matters only for direction, so it is important that the following color-connection is followed:
📄️ Flashing the ESC
In case of replacements or updates to the firmware, the speed controllers need to be flashed with custom firmware to work. The flashing process can be rather tedious if a step is forgotten, so make sure to follow the steps below in the correct order: