Speed Control of Robot with ATmega16
A robot is a mechanical or virtual agent, usually an electro-mechanical machine that is guided by a computer program or electronic circuitry. Robots have replaced human in the assistance of performing those repetitive and dangerous tasks which humans prefer not to do, or are unable to do due to size limitations, or even those such as in outer space or at the bottom of the sea where humans could not survive the extreme environments. Speed control of a Robot is a very important aspect in robot designing.
In this project, we will learn How to control the speed of a Robot with AVR ATmega16 microcontroller. The speed of a Robot can be controlled by controlling the speed of the actuators used in the Robot. Here, we will use DC motor as an actuator for our Robot and the speed of DC motor can be controlled by PWM technique. The ATmega16 microcontroller will generate the PWM signals of different duty cycle using its Timer Counter 0 and Timer Counter 2 and will give the PWM signal to the two enable pins of the DC motor driver. Higher the duty cycle of the PWM signal, higher is the speed of the Robot. In this way, the microcontroller will run the Robot in forward direction with different speeds.
|AVR Trainer Board-100 with ATmega16||1pc|
|AVR USB Programmer||1pc|
|12V, 1A DC SMPS Adaptor||1pc|
|DC Motor Driver||1pc|
|Robot V 4.1||1pc|
|1 to 1 Connector-Female to Female||3pc|
|10 to 10 FRC Female to Female Connector||2pc|
The step-by-step connection guide for Speed Control of Robot with ATmega16 is as follows
Steps - 1 ( 0f 10 )
Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.
Steps - 2 ( 0f 10 )
Connect PortC header of AVR Trainer Board-100 with Input header of DC Motor Driver with a 10 to 10 FRC Female Connector.
Steps - 3 ( 0f 10 )
Connect the PWM1, PWM2 & 12V pins of PWM & Motor Voltage header of DC Motor Driver with the PB3, PD7 and 12V pins of AVR Trainer Board-100 with 1 to 1 Connectors respectively.
Steps - 4 ( 0f 10 )
Connect the Robot connector to the Output header of the DC Motor Driver.
Steps - 5 ( 0f 10 )
Switch On the Mode Switch of DC Motor Driver.
Steps - 6 ( 0f 10 )
Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.
Steps - 7 ( 0f 10 )
Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-FM Cable.
Steps - 8 ( 0f 10 )
Switch on the power with the help of Power Switch of AVR Trainer Board-100.
Steps - 9 ( 0f 10 )
Download the Speed Control of Robot with ATmega16 Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.
Steps - 10 ( 0f 10 )
See the result.