This repository contains Electronic Speed Controller (ESC) firmware $ Hardware for Permanent Magnet Synchronous Motor (PMSM). This ESC is built with STM32F0 microcontroller and currently supports trapezoidal control method to control to the motor.
- Trapezoidal Control method for motor control.
- Optimized for STM32F0 microcontrollers.
- Customizable parameters for various motors.
- Real-time diagnostics via UART.
- Modular and easy-to-extend codebase.
- STM32F0-based hardware.
- STM32Cube IDE.
- Basic knowledge of motor control and STM32 development.
- Clone this repository:
git clone https://github.com/masifamu/PMSM-ESC-code-for-STM32F0.git cd pmsm-esc-stm32f0
- Open the project in STM32Cube IDE.
- Build and flash the firmware to your STM32F0 microcontroller.
- Edit
config.h
to set motor and control parameters. - Enable or disable diagnostics as needed.
/src - Source files for control algorithms and drivers. /inc - Header files and configuration. /docs - Documentation and guides. /examples - Sample applications.
Contributions are welcome! Please fork the repository, create a branch, and submit a pull request. See CONTRIBUTING.md for details.
Licensed under the GNU General Public License v2.0.