In this illustration we will going to wire the SIM900 GSM/GPRS Shield using USB to TTL / UART and Arduino Microcontroller. The SIM900 an ultra-compact and reliable wireless module a complete Dual-Band GSM/GPRS module in a SMT type device. This SIM900 delivers GSM/GPRS 900/1800MHz performance for voice, SMS, data, and Fax in a small form factor and with low power consumption and perfect for your prototyping projects, like sending an SMS or automated call. As you can see the wiring below there are two types of schematics one is for TTL UART and the other one it is wired with Arduino UNO board. Please refer to this link for the AT command reference.
Required Components
- Arduino UNO/MEGA/NANO
- TTL UART USB Communication
- SIM900 GSM/GRPS Shield
- Jumper Wires / DuPont Wires
- SIM CARD
Software Required
Sending Message AT Command via serial communication.
You can use Putty or CoolTerm serial communication software to send an instruction via serial communication port. If you don’t have this tools you can download it below.
Start AT Command
AT
Select SMS Message Format
AT+CMGF = 1
Send SMS Message by placing your Phone number
AT+CMGS = \”0123456789”
> This is a test SMS from 14CORE
Another example how to send SMS via serial communication using function serial.println(); in Arduino.
Wiring Diagram for USB TTL UART
Wiring Diagram for Arduino MCU Board
Arduino Sketch
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
/* *********************************************************************** 14CORE SIM900 GSM/GPRS SHIELD Code Test SMS Notification ************************************************************************ */ void setup() { serial.print("14CORE GSM/GPRS SEND SMS TEST"); serial.print("-----------------------------"); Serial.begin(9600); delay(5000); } void loop() { serial.print("SENDING SMS NOTIFICATION"); Serial.println("AT"); delay(1000); Serial.println("AT+CMGF=1/&W"); delay(1000); Serial.println("AT+CMGS=\"+97150000021""); //Change to your phone number delay(1000); Serial.print("SENDING SMS....."); Serial.write(26); delay(300000); } } |
Download
Download SIM900 Schematics | PDF
Download SIM900 AT Command Set | PDF
Download SIM 900 Datasheet | PDF
Can I know where to solder in this gsm shield for auto start using the code?
What do you mean Auto Start? When the power applied to the shield you can just place your code to run void loop(){} send a serial AT command to TX/RX.
Can I set the sms text to be automated, that it sends it after a certern function?