PIC16F877 is able to control 10 servo motor speed?

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

PIC16F877 is able to control 10 servo motor speed?

Postby soonlim2 » Sun Dec 23, 2012 12:04 am

Is the PIC mention on topic, is able to control 10 servo speed? Besides the CCP2CON.
soonlim2
Newbie
 
Posts: 14
Joined: Thu Dec 20, 2012 1:37 pm

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

Postby zhenning » Sun Dec 23, 2012 11:25 am

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=
zhenning
Enthusiast
 
Posts: 351
Joined: Thu Dec 30, 2010 12:32 am

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

Postby shahrul » Sun Dec 23, 2012 12:05 pm

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.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

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

Postby soonlim2 » Mon Dec 24, 2012 10:32 am

How do I interupt the timer?
soonlim2
Newbie
 
Posts: 14
Joined: Thu Dec 20, 2012 1:37 pm

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

Postby shahrul » Mon Dec 24, 2012 10:57 am

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.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

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

Postby zhenning » Mon Dec 24, 2012 10:59 am

Look at project 6: http://tutorial.cytron.com.my/wp-conten ... nual_2.pdf There are some details on timers interrupt.
zhenning
Enthusiast
 
Posts: 351
Joined: Thu Dec 30, 2010 12:32 am


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 2 guests

cron