Mobile Controlled Robot car with Arduino

Mobile Controller Robot using Atmega8

Robot controlled via Mobile/Cellphone with the help of DTMF (Dual Tone Multi Frequency) module is very essential.
Mobile keypad  is used as input control unit of the microcontroller. For controlling the robot, 2 mobile phones are used. One is Connected with robot (it act as call receiver) and another is call sending like remote control.

mobile robot circuit
HOW TO TEST?

1. Place one mobile to robot.
2. Connect cell phone audio jag pin to DTMF input jag.
3. Set mobile phone in auto answering mode.
4. Dial that number correctly.
atmega8
Now the robot can be controlled from receiving call mobile attached circuit and by pressing the calling mobile keypads of command keys through DTMF module is activated the command of the micro controller to run the robot motor drive circuits.

dtmf
CONTROL KEYS.

1. Forward = Press Key  2.
2. Backward = Press Key  8.
3. Left = Press Key 4.
4. Right = Press Key  6.
5. Stop = Press Key 5.
Required components.
1. Robot with Atmega8 circuit.
2. AVR Programmer.
3. DTMF Module.
4. Audio cable(Jag to Jag)

cell robot
PROGRAM FOR ATMEGA8. (Tested)

#include <avr/io.h>
#define F_CPU 16000000UL
#include <util/delay.h>
int main(void)

{
DDRB=0X0F; //PB0, PB1, PB2, PB3 as output
DDRD=0X00; //PD7, PD6, PD5, PD4 connected to DTMF input bits
int Mobile=0;

while(1) // infinite loop

{
Mobile=PIND&0XF0;
if(Mobile==0X20) //Key 2 of cell phone pressed
{
PORTB=0X09; // Forward direction
}

if(Mobile==0X40) // Key 4 of cell phone pressed
{
PORTB=0X01; // Turn left

}

if(Mobile==0X60) // Key 6 of cell phone pressed
{
PORTB=0X08; // Turn right
}

if(Mobile==0X80) // Key 8 of cell phone pressed
{
PORTB=0X06; // Backward Direction
}

if(Mobile==0X50) // Key 5 of cell phone pressed
{
PORTB=0X00; //stop
}
}
}                     //main closed

Subramanian
Subramanian

Subramanian MK, currently serving as a workshop instructor at Sakthi Polytechnic College, Erode Tamil Nadu. With a career spanning 25 + years, Subramanian MK has dedicated himself to advancing knowledge in Electronics and Communication Engineering (ECE). His passion for exploring new technologies has led to the development of numerous projects, showcasing expertise in IoT and PCB design.

Articles: 514

One comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

×

Hi, How can I help you?

×