You are here

Auto-reply to SMS messages using Arduino and a SIM900 SMS/GPRS module

In this project, we are going to make a device that will reply to SMS messages once it's received. We will be using an Arduino Uno and a SIM900 SMS/GPRS module. The Arduino is our main controller, it sends command to the SIM900 module.

The SIM900 SMS/GPRS module is capable of sending and receiving SMS messages. It can also connect to the internet, but for now we're only focusing on the SMS feature.

Parts and Components

  • Arduino Uno (Buy)
  • SIM900 SMS/GPRS module
  • LED (Buy)

Wiring Diagram

SIM900 SMS/GPRS module

Testing

The code was written in VS Code with PlatformIO IDE extension, please see our video on how to install and compile Arduino sketch.

  1. Open the Arduino sketch in VS Code and compile it.
  2. Insert a working SIM card to SIM900 module.
  3. Connect the Arduino, SIM900 module and LED following the diagram above.
  4. Connect the Arduino to your computer using a USB cable.
  5. Upload the code to your Arduino.
  6. Open the Serial Monitor.
  7. Press and hold the Power button in the SIM900 module untilĀ the Status LED in SIM900 module turns on.
  8. Wait for the GSM Ready Indicator LED to turn on.
  9. Test sending an SMS message using your phone.
  10. Verify that you receive an auto-reply from the SIM900 module.

Troubleshooting

No auto-reply message received

  1. Check the Serial Monitor and see if the module was able to receive an SMS message.
  2. Make certain that the SIM card is working. Test it in another phone.
  3. See if there's enough memory on the SIM card to save messages. Delete all messages.

Pictures

SIM900 SMS/GPRS module

SIM900 SMS/GPRS module

Source Code

Arduino sketch is available for download in GitHub atĀ https://github.com/ElexParts/ContactManager

Romualdo Dasig's picture