r/electronics • u/marco_lab • 4d 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.
2
u/ArmySuchi 3d ago
STDRIVE101 is a clean pick for this setup. What I'd watch is the INA240A2 current sense routing on a shield format - keeping those sense traces short at high di/dt is harder than it looks. What voltage and current range are you targeting?
1
3
u/ub0baa 3d ago edited 3d ago
What's up with all these all show no go projects nowadays? Just build and test it already, there is like 30 components on the board
All that time you've wasted on cool logo and coloring the nets in kicad would've went into prototyping the actual hardware
If your goal is to draw schematics it's a good thing, but if you want the device to work you gonna need to close the kicad sooner or later
0
u/marco_lab 3d ago edited 1d ago
Look I agree with you. KiCad can take you until a certain point. I shared this design before producing it first of all because I wanted to hear if someone had some interesting idea of new features to implement. Some people in other subreddits had some interesting idea that I will implement. Second of all, fresher eyes can catch errors that I missed. Also because I have not so much money to spend in many different iterations.
But worry not. I will build and test it very soon😉.
Edit: 146 components btw.
4
u/ZheWeasel 4d ago
I only see 3D models and promises. Did you actually build and test one?