STSW-PTOOL2V1
Data brief
Firmware for STEVAL-PTOOL2V1 BLDC motor control reference design board
Features
•
•
•
•
•
•
•
•
Sample application to drive a low voltage three-phase brushless motor,
managing the STEVAL-PTOOL2V1 board
Timer to generate PWM phase driving signals and current reference
Management of parameters like minimum and maximum speed, direction etc.
GPIO, PWM and IRQ configuration
Speed control through potentiometer
Motor positioning reconstruction through Hall sensors reading and decoding
Motor control by trigger switch
Free, user-friendly license terms
Description
The
STSW-PTOOL2V1
firmware provides low voltage three-phase brushless DC
motor control with the
STEVAL-PTOOL2V1
reference design board based on the
advanced
STSPIN32F0252
BLDC controller with STM32 MCU.
The package includes a sample implementation to drive a BLDC motor with Hall
sensors position feedback. It is preconfigured for a trapezoidal driving technique and
speed loop with constant PWM duty cycle, known as voltage mode. External
potentiometer support allows run-time variation of the target speed.
Product summary
3-phase inverter
based on
STSPIN32F0252
STEVAL-
PTOOL2V1
This software is based on the STM32CubeHAL hardware abstraction layer for the
STM32 microcontroller. Motor parameters and speed loop controller parameters are
easily accessed and edited in the user configuration file.
The package can be easily downloaded onto the STSPIN32F0252 controller via
SWD connection.
Reference firmware
for LV 3-ph BLDC
STSW-
motors with STEVAL-
PTOOL2V1
PTOOL2V1
250 V three-phase
controller
Applications
STSPIN32F0252
Power Tools
DB4297
-
Rev 1
-
September 2020
For further information contact your local STMicroelectronics sales office.
www.st.com
STSW-PTOOL2V1
IMPORTANT NOTICE – PLEASE READ CAREFULLY
STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST
products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST
products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement.
Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of
Purchasers’ products.
No license, express or implied, to any intellectual property right is granted by ST herein.
Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.
ST and the ST logo are trademarks of ST. For additional information about ST trademarks, please refer to
www.st.com/trademarks.
All other product or service
names are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.
© 2020 STMicroelectronics – All rights reserved
DB4297
-
Rev 1
page 3/3