EasyManuals Logo

Waveshare Motor Driver HAT User Manual

Waveshare Motor Driver HAT
16 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #12 background imageLoading...
Page #12 background image
Motor Driver HAT
12 / 16
This project has Exception Handling. Generally, motor keeps moving even you stop
project. value of control register doesn’t be clean even you use CTRL+c to stop code.
signal(SIGINT, Handler);
single is signal handling function of linux system. SIGINT signal generates when
CTRL+c is executed to stop process, then Handler() function will run. In this function,
motors are stopped
Motor_Stop(MOTORA);
Motor_Stop(MOTORB);
DEV_ModuleExit();
exit(0);
USING
Demo code you download has no executable file moto, you need to run make to
generate it then execute command ./motor to run the demo code.
If you modify or add any functions, you need to run make again to update
If you change values of heard files, command make clear is also need before make.

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Waveshare Motor Driver HAT and is the answer not in the manual?

Waveshare Motor Driver HAT Specifications

General IconGeneral
BrandWaveshare
ModelMotor Driver HAT
CategoryControl Unit
LanguageEnglish

Related product manuals