Skip to content

How to control DC motor and AB Encoder using NUCLEO-H743ZI2 board.

Notifications You must be signed in to change notification settings

qaz9517532846/STM_DCMotor_Encoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STM_DCMotor_Encoder

How to control DC motor and AB Encoder using NUCLEO-H743ZI2 board.


STM32 Setting Parameter

Item Paramter
System Clock 72 MHz
Prescaler 72 - 1
Counter Period 100 - 1.

DC Motor and AB Encoder

image


Circuit

image


PWM Control and AB Encoder process

image


Send data using serial communication.

  • Encoder counter
Address Address 0 Address 1
data type UINT8 UINT8
data encoder cnt hightbyte encoder cnt lowbyte

Received data using serial communication.

  • Duty
Address Address 0 Address 1 Address 2
data type UINT8 UINT8 UINT8
data direction(0 or 1) duty hightbyte (0 - 100) duty lowbyte (0 - 99) * 0.01

Reference

[1]. PWM (Pulse Width Mod) in STM32. https://controllerstech.com/pwm-in-stm32/

[2]. Incremental ENCODER and STM32. https://controllerstech.com/incremental-encoder-with-stm32/

[3]. STM32H743ZI MCU. https://www.st.com/en/evaluation-tools/nucleo-h743zi.html


This repository is for your reference only. copying, patent application, academic journals are strictly prohibited.

Copyright © 2021 ZM Robotics Software Laboratory.

About

How to control DC motor and AB Encoder using NUCLEO-H743ZI2 board.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published