Skip to content

Arduino SIM800L – Dial phone numbers & LASER Tripwire GSM Alarm project [DigitSpace.com]

 

Sponsored by: DigitSpace
Product used: SIM800L Module Replace SIM900A GSM GPRS 5V Serial with Antenna

          Hello there and welcome to another tutorial sponsored by DigitSpace, and this time it’s about the SIM800L again, the previous article was about sending SMS/Text (Simple and sensor values) to your phone, but this time it’s about dialing phone numbers using the same module, and a little project which is a LASER tripwire GSM Alarm.

Make sure to check this tutorial about the module first:
Send SMS/Text from Arduino using SIM800L GSM/GPRS Module [DigitSpace.com]

So to sum up we gonna dial numbers, not make a full phone call, because this module doesn’t have pins for Speaker/Mic like the other version:

 

 

 

HALT!! Please make sure that your SIM Card is unlocked (not protected by a pin code) and that it has enough credit to be able to make a phone call/Send SMS depending on your mobile operator.

N.B: I’m powering the module using a 7.4V Li battery with a buck converter, it could be powered directly from the Arduino but it’s sketchy….

Battery + converter.jpg
Battery + converter

Test 1

So in the test #1 all we have to do is wire the module and dial a phone number using the Serial monitor of the Arduino IDE.

  • The main command for dialing a number is “ATD+xxxxxxxxxx;” where the xx.. stand for your phone number including the country code.
  • The other command is “ATH” to hang up/stop the phone call, if not used the call will end after a certain delay.

Wiring

Wiring1_bb.png

This is the basic wiring of the module, and the Arduino is powered via USB, it could be powered with the battery too, but I’m in need of the Serial monitor to be able to send AT commands to the module.

Libraries

No external library is required for this, Software Serial, but it’s already with the Arduino default libraries.

Code

You can download the code from here, this code is not something special, it just permits the communication between the module and the PC, you’ll be able to send commands to the module and check the feedback.

Result

Test 1_1
Type the command as said in the serial monitor (the AT is just for check)
Test 1_2
Arduino is calling
Test 1_3
“ATH” command to hang up

GSM tripwire Alarm Project

So the project is about a tripwire alarm which call your phone number whenever someone passes through it.

I’ve choosed a LASER + LDR, you can use anything you prefer to detect presence for example PIR, Doppler Radar, or some classic modules like proximity sensors HC-SR04, FC 51Sharp IR… Whatever suits you.

 

Don’t forget to add a resistor to the LDR, I’ve used 1kO.

So as you know the LDR (Light Dependent Resistor) changes the value according to light, if there’s much light it lowers the resistance, otherwise it gets bigger, so when used with a resistor it will change the voltage value that we can read using the Arduino Analog Pin.

Wiring

Wiring2_bb.png

So here as you can see the SIM module is powered with the battery, but for the rest they are powered by the arduino plugged in the PC, you can of course power the Arduino using the battery all you have to do is add a wire between the 5V of the Source with the 5V of the Arduino.

Libraries

Just like above, no external one is needed.

Code

Download the code with comments here.

The code is meant to work without the Serial monitor, but I’ve add some functions and kept the wiring to use with Serial monitor and check the LDR value.

Result

Test 2_1
Something prevent the light from reaching the LDR, also the values are shown in the serial monitor
Test 2_2
Will trigger the call automatically to the phone number in the code

 

Well that’s all folks, Please don’t forget to like and subscribe to help the channel.

Thanks a lot to the video sponsor.

Sponsor

Yassine View All

Electronics, Automation engineering student... I try to share my little experience with other electronics amateur.

One thought on “Arduino SIM800L – Dial phone numbers & LASER Tripwire GSM Alarm project [DigitSpace.com] Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: