Skip to main content
MBarr.2
Visitor II
Nov 20, 2020 5:51 PM UTC
Question

Motor control using external microcontroller

Hello everyone,

I'm developing a BLDC FOC Control System with STSPIN32F0. I want to control the speed via a host microcontroller. I want to use or PWM and a direction signal or UART. Which of these is the best way to do this? And what is the easiest way to implement this?

Thanks!

This topic has been closed for replies.

1 reply

KnarfB
Super User
Nov 21, 2020 1:04 PM UTC

PWM is analog and unidirectional, fits well to (wireless) RC systems. UART is digital and can be full-duplex, so its more "future proof". Both are not very complicated.

PWM input can be done with a timer channel in input capture mode.