Page 1 of 1

PIC16F877 is able to control 10 servo motor speed?

PostPosted: Sun Dec 23, 2012 12:04 am
by soonlim2
Is the PIC mention on topic, is able to control 10 servo speed? Besides the CCP2CON.

Re: PIC16F877 is able to control 10 servo motor speed?

PostPosted: Sun Dec 23, 2012 11:25 am
by zhenning
You can manually toggle the pin and use delays or use timers then toggle the pins. Or just get this: http://www.cytron.com.my/viewProduct.ph ... nH3lk/cjI=

Re: PIC16F877 is able to control 10 servo motor speed?

PostPosted: Sun Dec 23, 2012 12:05 pm
by shahrul
You can use Timer Interrupt to control servo motor. If 10 servo, you need 10 PIC pin. Ex Servo Motor.
Or you can reduce PIC pin by using Servo Controller that use 2 UART pin. Ex Servo Controller.

Most important thing, the power supply must support higher current to drive 10 servo.

Re: PIC16F877 is able to control 10 servo motor speed?

PostPosted: Mon Dec 24, 2012 10:32 am
by soonlim2
How do I interupt the timer?

Re: PIC16F877 is able to control 10 servo motor speed?

PostPosted: Mon Dec 24, 2012 10:57 am
by shahrul
soonlim2 WROTE:How do I interupt the timer?

Setting INTCON and OPTION REG for Timer 0. Detail, you see in the datasheet about this 2 register.

Re: PIC16F877 is able to control 10 servo motor speed?

PostPosted: Mon Dec 24, 2012 10:59 am
by zhenning
Look at project 6: http://tutorial.cytron.com.my/wp-conten ... nual_2.pdf There are some details on timers interrupt.