Trybotics Logo

Control Relay With Arduino and Sim900A by Using Mobile Phone SMS

DESCRIPTION

In this article, I show how to code by using Arduino and SIM90A to turn of or turn on relay with mobile phone SMS.

Description:

1 Arduino pro mini Module

1 sim900A mini module1 USB UART CP2102 module for programming to Arduino1 Relay module1 Testboard

Description:

You can download from here

https://github.com/MarcoMartines/GSM-GPRS-GPS-Shie...

Uncompress and copy to libraries folder of Arduino IDE

Description:

Power: using adapter 5v / 2A for Sim900A

I using SIM900A has 5VDC power

Description:

Sim900A RX pin connect to Arduino TX pin (pin 3). See schema below to connect.

Sim900A TX pin connect to Arduino

RX pin (Pin 2) Sim900A GND pin connect to Arduino GND pin

Connect power 5VDC to 2 module

Relay 1 connect to pin 7 of Arduino
Relay 2 connect to pin 7 of Arduino

Description:

Connect pins follow in image

Description:

Read source code for detail.

This is new version with changes

1. I using number in simcard and read it to memory

2. To check money account, please replace this line in checkTK function

sms.SendSMS("123", "TK");

with your country info

You can edit and free share

Attachments

Description:

Vietnamese in this clip and English translation


YOU MIGHT ALSO LIKE