Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Controlling multiple servo motor

Status
Not open for further replies.

Wingmax

New Member
Controlling multiple servo motors

This is a slight modification from my previous post- " Control position of a servo motor".
With this modification we can connect and control more than one servo motor.
Please refer to timing chart:

T2T0 chart.jpg

Within the one period of the pulse train we can trigger the second motor after the pulse of the first one is off. Because the max pulse width for the motor is about 2mS, we can "insert" more pulses as long as total pulse width are well within one period of the waveform.

Please refer to program:

View attachment Multi servo.txt

Four switches are connected to RA1 to RA4. PWM are connected to RB1 and RB2. The program modificaton was really simple.
 
Last edited:
Thanks for the info Wingmax, it's very helpful to me. Writing anymore programs? Hope to hear from you again.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top