All About Circuits Forum  

Go Back   All About Circuits Forum > Electronics Forums > General Electronics Chat

General Electronics Chat Discussion forum for general chat about anything electronics related, including asking questions about material in the All About Circuits E-book, Worksheets, and Videos.

Reply   Post New Thread
 
Thread Tools Display Modes
  #1  
Old 11-07-2009, 09:36 AM
Lanz Lanz is offline
Senior Member
 
Join Date: Oct 2008
Location: Malaysia
Posts: 109
Default RC Servo Controller

Guys i had built a circuit(servo controller) using 555IC.It has VR to adjust the position of the servo.The servo is 90 degree servo.I have to control the position through microcontroller.I need to switch the servo to 3 position only which is 90,0,-90 degree.The microcontroller will control the position but i dont know how to make it to adjust the resistance of the VR by itself.
Reply With Quote
  #2  
Old 11-07-2009, 10:00 AM
jpanhalt jpanhalt is offline
E-book Developer
 
Join Date: Jan 2008
Location: Ohio, USA(GMT-5)
Posts: 1,920
Default

It is probably easier simply to control the servo directly with the microcontroller. You can generate the -90, 0, and +90 pulse with in software.

Is there a reason you have to use the 555 analog controller?

John
Reply With Quote
  #3  
Old 11-07-2009, 10:28 AM
Lanz Lanz is offline
Senior Member
 
Join Date: Oct 2008
Location: Malaysia
Posts: 109
Default

How to control directly?
555 is just an option for me bcoz i found 555 servo controller circuit when i searched in the net.
FYI im using Atmel AT89S51 microcontroller n this MC is a must n cnt use other MC.

Last edited by Lanz; 11-07-2009 at 10:37 AM.
Reply With Quote
  #4  
Old 11-07-2009, 10:57 AM
jpanhalt jpanhalt is offline
E-book Developer
 
Join Date: Jan 2008
Location: Ohio, USA(GMT-5)
Posts: 1,920
Default

I am not familiar with Atmel, just PIC. In assembly, you can just generate the PWM pulse that is needed using on/offs and delays. You can control both the pulse width and repetition rate. If you are doing other things with the mc, you can use the internal timers and interrupts.

You can use an analogue input or digital inputs to determine which position/pulse width is selected. Some PIC's also have hardware PWM that can be used, but in general the frequency is a little too high for hobby servos. The specification for most hobby servos is 50 Hz. However, they will work at higher frequencies. I have one application in which the servo works at about 120 Hz with no problems.

Just use a common ground, as I am sure you know, and connect the mc output to the signal wire of the servo. The servo can be powered by the same 5V supply used for the mc or use its own supply.

John
Reply With Quote
Reply   Post New Thread

Bookmarks

Tags
,

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PIC 16F84A to interface with NES controller clabland Embedded Systems and Microcontrollers 3 11-04-2009 04:56 PM
555 servo controller jayadmt The Projects Forum 6 10-19-2009 02:57 AM
RC servo controller with rs232 interface vane The Projects Forum 17 11-30-2008 08:20 PM
555 servo controller - please help!! allan991 The Projects Forum 11 01-07-2008 07:14 AM
Servo Controller Mazaag The Projects Forum 4 09-30-2006 02:16 PM


All times are GMT. The time now is 09:16 AM.


User-posted content, unless source quoted, is licensed under a Creative Commons Public Domain License.
Copyright © 2009, All About Circuits. All Rights Reserved.