cancel
Showing results for 
Search instead for 
Did you mean: 

DC Motor PID control with Hall efect sensor for position

MAvet.1
Associate II

Hi everyone please help for creat project ,

I'm new here and this area. I have stm32f103c8 and i want to control dc motor

can anyone help me to write code for control dc motor with hall encoder (PID control) thank's

10 REPLIES 10
PBo
Associate III

​@MAvet.1​ 

Hello,

FYI, the actual MCSDK 5.4.4 release provides a Position Control using a Maxon Motor as an example project into it. Unfortunately, it is not your targeted MCU, as it is a STM32F303 MCU used, but you may find inspiration from this example to serve your application as it uses HALL sensors and Encoder.

Best Regards,

PBo