How we could control dc motor speed by python?in raspberry? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How we could control dc motor speed by python?in raspberry?

i have to speed up motor to specified speed with constant acceleration.

9th Sep 2017, 11:40 AM
Elnaz Mahmoodi
Elnaz Mahmoodi - avatar
3 Answers
+ 5
You need to understand how to configure PWM signal on Raspberry pi. Set the configuration bit would configure the IO port to produce PWM based on the register value.
9th Sep 2017, 11:48 AM
Calviղ
Calviղ - avatar
+ 5
Use program to generate PWM (pulse width modulation) signal on IO port. As long as the percent of PWM is fixed, the speed would be constant.
9th Sep 2017, 11:43 AM
Calviղ
Calviղ - avatar
+ 1
thanks.but i need some details
9th Sep 2017, 11:44 AM
Elnaz Mahmoodi
Elnaz Mahmoodi - avatar