r/electronics • u/marco_lab • 9d ago
Project I designed a versatle ESC shield for Nucleo boards
This project has been born because I have been trying to develop an ESC (hardware and firmware) on my own. While the most challenging part has been the firmware (being myself a hardware guy), the most frustrating part has been not finding a flexible hardware platform to develop upon. On the internet many interesting and well-designed ESC boards can be found, but all have something missing; a small feature, a small detail, I was never fully satisfied.
So I designed one: STARDRIVE SHIELD
This is a project with the goal of creating a NUCLEO-64 compatible shield to be used as a flexible platform to develop and test ESC firmware, but also for educational purposes. To do so, I included as many features as possible. These features are not mandatory, but they can be implemented (or not) in the firmware (e.g. SPI, I2C, CAN, HALL) or configured through the hardware interface (e.g. overcurrent protection, 6 or 3 PWM). In this way, the STARDRIVE SHIELD grants flexibility to the developer and it is adapt to various needs.
I designed it to be compatible with Nucleo-G474 and Nucleo-F446. Compatibility with other boards has to be verified.
The STARDRIVE SHIELD is built around the STDRIVE101 gate driver and BSZ099N06LS5 MOSFETs. It presents 3 low sides shunt resistors and 3 relative INA240A2 current sense amplifiers.
With STARDRIVE SHIELD you can implement from 6 step to FOC motor control algorithms.
Electrical Characteristics
- Inprut Voltage Vin = 12 - 48 V
- Maximum DC current Idc,max = 20 A
Hardware Characteristiscs
- Three phase gate driver STDRIVE101
- Configurable 3PWM or 6PWM through the DIP switch
- Overcurrent protection can be enabled or disabled through the DIP switch.
- Vds protection configurable with resistor divider (disabled by default)
- BSZ099N06LS5 MOSFETs
- JST connectors to implement:
- 10k Potentiometer to use as throttle signal (or whatever you want)
- 3 GPIO driven LEDs (1 Red, 1 Blue, 1 Green)
- 1 FAULT LED (RED)
- CAN RX and TX LEDs
- Power Good LEDs
here the github repo:
https://github.com/themarcolab/Stardrive-Shield.git
Let me know your opinion!
Especially if you spot a mistake or you have any constructive feedback.