Moderator: RevPiModIO

 
kodyaz
Topic Author
Posts: 16
Joined: 13 Oct 2018, 06:57

Servo motor control

08 Jan 2019, 06:58

Hi, how do I control the servo motor and servo motor drive with python.
 
kodyaz
Topic Author
Posts: 16
Joined: 13 Oct 2018, 06:57

Re: Servo motor control

11 Jan 2019, 18:50

Hi again, Is there a solution to this issue?
 
User avatar
RevPiModIO
Posts: 175
Joined: 20 Jan 2017, 08:44
Contact:

Re: Servo motor control

15 Jan 2019, 15:59

I think you have to use the PWM Outputs of the RevPi DO / DIO modules.

But remember they have 24 volts!

Than you can set the value of the PWM outputs with python3
import revpimodio2
rpi = revpimodio2.RevPiModIO(autorefresh=True)
rpi.io.PWM_1.value = 100
Sven
python3-RevPiModIO - https://revpimodio.org/ || Der RevPi ist das Beste, was passieren konnte!
 
kodyaz
Topic Author
Posts: 16
Joined: 13 Oct 2018, 06:57

Re: Servo motor control

23 Jan 2019, 15:14

Thanks Sven. I will share the result of the experience on the application.
 
kodyaz
Topic Author
Posts: 16
Joined: 13 Oct 2018, 06:57

Re: Servo motor control

05 Mar 2019, 19:56

I think you have to use the PWM Outputs of the RevPi DO / DIO modules.

But remember they have 24 volts!

Than you can set the value of the PWM outputs with python3
import revpimodio2
rpi = revpimodio2.RevPiModIO(autorefresh=True)
rpi.io.PWM_1.value = 100
Sven
Hi Sven, I made the experiment. But unfortunately I did not get the result I wanted.
I use the PWM as a voltage output. A value in the range 0-24 volts. However I would like to drive a stepper motor. In this case I need to take a certain stroke per second. Can I do this with PWM?
At all values, the engine rotates at the same speed. I want to change the motor speed according to each value.

Sample code
rpi.io.PWM_1.value=50

Who is online

Users browsing this forum: No registered users and 1 guest