Control C36R servo using PIC16F88

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

Control C36R servo using PIC16F88

Postby yeekang92 » Thu Oct 18, 2012 8:15 pm

Hey guys,

I'm new here and I need your help. I'm doing a project which requires to obtain an input in circular motion and I've decided using potentiometer as the input. With PIC16F88 as the micro controller how should I program it to read the input from the potentiometer and then generate an output to the servo motor? Do I have to buy a servo controller similar to the video below? Thanks in advance :)

yeekang92
Greenhorn
 
Posts: 2
Joined: Thu Oct 18, 2012 8:08 pm

Re: Control C36R servo using PIC16F88

Postby yonghui » Thu Oct 18, 2012 11:03 pm

how many pcs of sevo u are goin to control. the rc servo is controlled by pulse width, so if are controlling alot servo then probably u will need the servo controller.
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

Re: Control C36R servo using PIC16F88

Postby yeekang92 » Thu Oct 18, 2012 11:10 pm

yonghui WROTE:how many pcs of sevo u are goin to control. the rc servo is controlled by pulse width, so if are controlling alot servo then probably u will need the servo controller.


I only got 1 servo to control. so it means that I dont need to get that servo controller? and can you teach me of how to do the programming similar to what he is doing in the video? Thanks alot :)
yeekang92
Greenhorn
 
Posts: 2
Joined: Thu Oct 18, 2012 8:08 pm

Re: Control C36R servo using PIC16F88

Postby gadgetng » Fri Oct 19, 2012 12:07 pm

Do some study on:
1. How to read the analog value from the potentiometer.
Example:
http://tutorial.cytron.com.my/2011/08/09/project-4-%E2%80%93-analog-sensor-potentiometer-bb-psj/

2. How to control the servo motor.
Example from sample source code:
http://www.cytron.com.my/viewProduct.php?pcode=C40R&name=RC%20Servo%20Motor

Only then you try combine both in one code to get what you want. I also found out that the DIY project http://www.cytron.com.my/viewProduct.php?pid=HSwOBiUpOBAaOR0OAjEDJfMqSBbl1cpR/xbsOOT6uNc=&store= is similar to your project but they are controlling stepper instead of servo motor.
gadgetng
Discoverer
 
Posts: 97
Joined: Tue Jul 24, 2012 11:20 am

Re: Control C36R servo using PIC16F88

Postby shahrul » Fri Oct 19, 2012 12:57 pm

Servo Motor use signal 50Hz. PWM module can't generate this low frequency. Then, can use Timer Interrup to generate the pulse. Maybe, interrupt is difficult for beginner.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor


Return to DC Motor

Who is online

Users browsing this forum: No registered users and 6 guests