Ultra low-cost controller for brushless servo based on the B-G431B-ESC1 Discovery kit by ST
To make the experience fit your profile, pick a username and tell us what interests you.
A new quadruped, using twelve motors, controlled by the B-G431B-ESC and firmware V3.
Testing new release with a mini gimbal motor...
One year ago, I have developped a very fist revision of a custom FOC firmware on the B-G431B-ESC Discovery Kit. The code has been improved and a new firmware revision (V2) will be released soon.
The firmware is tested with a 8108 and a 5008 bruhsless motors. The AS5048A (PWM input) and the AS5600 (I2C) are also tested.
List of improvements :
A field-weakeming algorithm has been tested, but it will not be in the next release. The ESC is able to spin the motors at their base speed (Kv*Vdc). I think there is no need to spin faster for a hobby robotic application at the moment.
The latest firmware update improves the bandwidth of the position and torque PID controller.
This test was performed with my robot powered by Lipo 4S battery. The robot is under development. It is a 8-dof quadruped using MAD 5008 240kV motors, B-G431B-ESC board, 3D printed planetary gearbox (ratio: 1:4.5) and a M5Stack Fire.
Welcome Kai ! He has joined the project as a contributor, and we are working on the third alpha firmware release, with some improvements :
We have tested the current firmware with two different hardware configurations :
Here is the pinout of the ESC, with both I2C and PWM interface for encoders :
There are so many things to add and to improve.
This is a very fist test of an home-made 5-bar leg.
Power supply : 24V @ 2A limitation
Motors : 2x MAD 5008 240KV
Encoder : 2x AS5048A (14bit absolute position, PWM output)
ESC : B-G431B-ESC1 discovery kit by ST
3d printed planetary gear box (1:4.25). Gear Module 1 (ABS and PLA)
3d printed legs (PETG)
28 ball bearings
Home-made FOC algorithm with position / velocity / torque control running at 10KHz (36us processing time, using STM32G4 CORDIC)
Velocity limited to 20000dps
Motor current limited to 500mA (max Iq).
This compact ESC was designed by ST for drones, with a strong forced convection.
At zero-altitude, zero-speed, without propellers, thermal dissipation remains an issue.
Problem solved ! (Joke) ^_^
I have absolutely no experience in implementing FOC algorithm. This is my very first project, about brushless motor controller. I will do my best to release and share something basic but usable soon.
New hardware configuration !
Each motor are driven by one G431 ESC running sensored FOC with position control mode.
This is an example of application of such an ESC in robotics.
The Discovery kit embeds the hardware circuit for encoder sensor. A supply voltage
line is provided with 5 V and GND lines in J8 solder pads. Solder encoder leads on +5V, GND and one PWM input capture pad (A or B).
Become a member to follow this project and never miss any updates
By using our website and services, you expressly agree to the placement of our performance, functionality, and advertising cookies. Learn More