ablab

Hello Readers, welcome to my Blog - A Blog For Bloggers By A Blogger. I'm Arun, an entrepreneur Blogger from India.

SIM808 GSM/GPRS/GPS Modem based SMS Controlled Wireless Robot with Status Reply using ATmega32

684
Mark as Favourite

In this project, we will learn how to make a SIM808 GSM/GPRS/GPS Modem based SMS Controlled Wireless Robot with Status Reply using AVR ATmega32 Microcontroller Here, we will control the direction of movement of a robot wirelessly using SIM808 GSM/GPRS/GPS modem and ATmega32 microcontroller. The robot is controlled by sending SMS to the SIM808 GSM/GPRS/GPS modem of the robot and the direction of the movement of the robot is displayed in a 16X2 alphanumeric LCD. Apart from controlling the robot, the current status(direction of movement) of the robot can also be inquired at any instant of time by sending a predefined SMS to the SIM808 GSM/GPRS/GPS modem.

When the SIM808 GSM/GPRS/GPS modem power is turned on, the ATmega32 microcontroller reads the initial status data sent by the SIM808 GSM/GPRS/GPS modem through USART protocol. After reading the status data, the ATmega32 microcontroller processes the SIM808 GSM/GPRS/GPS modem status data and displays the status of the modem and SIM in the alphanumeric LCD. If SIM card is not present, then "Plz Insert SIM" is displayed, if SIM card is present and modem is ready, then "SIM900 is Ready" is displayed and for other conditions, "SIM900 Error" is displayed in the alphanumeric LCD.

Now, when the SIM808 GSM/GPRS/GPS modem is ready, the LCD displays "Send Ctrl SMS:" in 1st row and "Stopped" in the 2nd row(As the robot is in stopped condition initially). The robot waits for the control SMS to drive the robot in different direction and to send status SMS. The control SMS are predefined sets of strings(Message of SMS). The predefined set of strings(Message of SMS) to control the Robot are shown below:-

Control SMS Robot Movement
FORWARD Forwar Direction
BACKWARD Backward Direction
LEFT Left Direction
RIGHT Right Direction
STOP Stopped
STATUS Robot Status

When the SIM808 GSM/GPRS/GPS modem receives any SMS, it sends new SMS notification to the ATmega32 microcontroller. The ATmega32 microcontroller reads the new SMS notification and displays "New Ctrl SMS" in the alphanumeric LCD. But if the ATmega32 microcontroller receives some other notification(other then SMS like Call and others), then "Unknown Error" is displayed in the  alphanumeric LCD.  After receiving new SMS notification, the ATmega32 microcontroller will read the SMS from the SIM808 GSM/GPRS/GPS modem memory. If it reads the SMS successfully, then it will compare the content of the SMS with the predefined set of strings else it will display "Empty location" when the read memory location is empty and "Error" when there is error in reading the SMS. When the control SMS is read successfully, the ATmega32 microcontroller compares the message of the received control SMS with the predefined ones, if received control SMS matches with any of the predefined strings, then the microcontroller sends the required control signal to the DC motor driver to drive the robot accordingly and it displays the new direction of movement of robot in the alphanumeric LCD. And if the received control SMS matches with the string "STATUS", then the ATmega32 microcontroller reads the current direction of movement of the robot and sends the AT command to SIM808 GSM/GPRS/GPS modem to send status SMS bearing the current direction of movement as message to the mobile number from where the status query SMS is received. The status of the SMS sending(like SMS Sending, SMS Sent) are also displayed in the alphanumeric LCD. But if the received control SMS does not matches with any of the predefined strings, then "Invalid SMS" is displayed in the alphanumeric LCD.

Now, send different SMS to the SIM808 GSM/GPRS/GPS modem of the robot and see the direction of movement of the robot and check whether status SMS is sent by the robot or not.

Softwares Required

Hardwares Required

Name Quantity
AVR Trainer Board-100 with ATmega32 1pc
AVR USB Programmer 1pc
SIM808 GSM/GPRS/GPS Modem 1pc
RG1602A 16X2 Alphanumeric LCD Green 1pc
DC Motor Driver 1pc
Robot V 4.0 1pc
12V, 2A SMPS Adaptor 1pc
10 to 10 FRC Female to Female Connector 3pc
1 to 1 Connector-Female to Female 6pc

Circuit Diagram

Video

Downloads

SIM808 GSM/GPRS/GPS Modem based SMS Controlled Wireless Robot with Status Reply using ATmega32
  • 0 downloads 0 Kb

Post a Comment