servo motor c40s

LINIX Brushless, VEXTA Brushless, RC Servo, DC Geared, Linear, Stepper, Tamiya.....

servo motor c40s

Postby mooookoooo » Wed Mar 10, 2010 1:15 am

hi, I am now learning on how to control the servo using pwm. just want to know that the total time of pwm(20ms according to cytron program) can be used at any value of crystal? currently using pic16f84a with 4mhz crystal.
mooookoooo
Greenhorn
 
Posts: 3
Joined: Wed Mar 10, 2010 12:52 am

Re: servo motor c40s

Postby A380 » Wed Mar 10, 2010 8:04 pm

No PWM module is available for PIC16F84A. I think you should use Timer 0 interrupt to control your servo motor. Set prescaler to 1:128 if you are using 4MHz oscillator.
User avatar
A380
Discoverer
 
Posts: 120
Joined: Tue May 19, 2009 2:44 pm
Location: Malaysia

Re: servo motor c40s

Postby Benjamin » Fri Sep 24, 2010 4:25 pm

If i using 20MHz oscillator?and can i use pic16f876?
Benjamin
Freshie
 
Posts: 7
Joined: Mon Sep 20, 2010 12:29 am

Re: servo motor c40s

Postby redips_id » Fri Sep 24, 2010 6:33 pm

Benjamin WROTE:If i using 20MHz oscillator?and can i use pic16f876?

Of course you can, by using timer interrupt you can produce 50Hz and control servo position.
Request for complete solution for FYP? Why don't request for graduation certificate?
redips_id
Discoverer
 
Posts: 82
Joined: Wed Jan 20, 2010 6:23 pm

Re: servo motor c40s

Postby Benjamin » Fri Sep 24, 2010 7:48 pm

Did there any e-book for references in programming c language in pic16f876?
Benjamin
Freshie
 
Posts: 7
Joined: Mon Sep 20, 2010 12:29 am

Re: servo motor c40s

Postby shahrul » Mon Sep 27, 2010 2:41 am

Benjamin WROTE:Did there any e-book for references in programming c language in pic16f876?


You can view many example source code here.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: servo motor c40s

Postby SnowLeopard » Mon Oct 04, 2010 1:51 pm

Hi mr Shahrul. Good job on your technology and engineering blog. =)
User avatar
SnowLeopard
Freshie
 
Posts: 7
Joined: Wed Sep 29, 2010 12:00 am


Return to DC Motor

Who is online

Users browsing this forum: No registered users and 8 guests