Servo Principle

If you have read the long and detailed servo tutorial, you know how it works. But how do you write code to send a square wave?

There are different ways of generating a square wave with required frequency and duty cycle. The most common amongst them are using a microcontroller, or a 555 timer IC circuit. The third and crude (read it as simple) way is to use a transmitter of any of your RC toys which generates required pulses, but is out of scope of this tutorial (actually there is nothing to learn, just press a button or move the joystick of your Remote control and it generates appropriate square waves).

In the next section, we will see how to generate required pulses using a microcontroller. Before that, the following chart shows the required flow for running a servo. (click for higher resolution image)

Servo Flow

 

Do you have anything to say?
Visit the Forum to discuss, learn and share anything related to robotics and electronics !!

rss feeds



Featured Videos




Advertisements


Recent Articles




Atmega8 Development Board


A great step-by-step tutorial on building your own Atmel AVR based Atmega8 development board. The board is ideal for beginners with detailed explanation and pictures More...

L293D Motor Driver


For robots to do work, you need to know how to control a motor. L293D is a cleverly packed IC which can control two DC motors in both directions: forwards and reverse. Here is a detailed explanation of building a board based on L293D ICMore...

Hobby Servo Tutorial


Servo Motor is a device which uses error-sensing feedback signals to determine and control the position of a motor shaft. The term "servomechanism" closely relates to servo motors..More...

Blinking LED Tutorial


This is similar to what we achieve in any "Hello World" program. However, it is not just limited to blinking LED but scratches the surface of AVR-GCC programming... More...


Kindly Donate

If this site has helped you, then kindly consider a Donation to say "Thank You!!". Donation might help us keep all this information available for free and also pay for the resources.

If that is difficult, then a simple "Hi" in the forum would still do good :)