Introduction: Gps Forest Fire Alert System With Sim808 and Arduino Uno
Hello that, in this post we will see how to make a forest fire detector system, with notification by text message, of the location of the accident, thanks to the integrated gps sim808 module, granted by the people of DFRobot, we will see the source code, some characteristics and operation of sim808 module, in an external environment, this is the continuation of a previous project, where we saw how to make a very simple flame detector system for the home.
Step 1: Introduction
This system tries to prevent fires in forests and fields, where a disaster of this type can generate large economic losses, significant material damage, destruction of the flora and fauna of the place causing an ecological damage of great magnitude, but the most important thing is saving human lives .
The principle of operation is as follows, when detecting fire by the flame sensor, it will send an analog signal to the arduino, which depending on its value, will activate the sending of a text message with the GPS coordinates where the fire is taking place . For this project we will need a flame sensor, an arduino uno, a sim808 module, a battery, cables, you can check the following list of materials:
Step 2: Arduino One
Step 3: Sim808
Step 4: Flame Sensor
About the flame detector module
- This module is sensitive to a flame and its radiation. It can also detect ordinary light source in the range of a wavelength from 760 nm to 1100 nm.
- The flame sensor can emit digital or analog signal.
- It can be used as a fire alarm.
- Detection of an angle of about 60 degrees, particularly sensitive to the spectrum of the flame.Adjustable sensitivity (in blue adjustment of the digital potentiometer).
- The comparator output, clean signal, good wave, driving capacity, more than 15mA.
- Operating voltage of 3.3 V-5 V.The output form: digital switching outputs (0 and 1) and analog voltage output AO.Fixed bolt holes for easy installation.
- Small PCB boards Size: 3.2cm x 1.4cm.
- Use an LM393 amplifier as a voltage comparator
Step 5: Dupont Cables
Step 6: Battery 12 Volts (can Be a Source of 12 at Least to Do the Initial Tests)
Step 7: A Box With Filter (optional)
Step 8: Circuit
Step 9: Source Code
Step 10: About the Sim808 Module of Dfrobot
SIM808 GPS/GPRS/GSM arduino shield is an integrated quad-band GSM/GPRS and GPS navigation technology Arduino expansion shields. A credit card size only, according to the standard Arduino pin packaging, compatible with Arduino UNO, arduino Leonardo, arduino Mega and other arduino mainboard.Compared to the previous generation SIM908, SIM808 made some improvement on the performance and stability. In addition to the normal SMS and phone functions, the shield also supports MMS, DTMF, FTP and other functions. You can achieve the data acquisition, wireless data transceiver, IoT application and GPS orientating. The should integrates onboard microphone and headphone jack, saving your cost and making your project easily. it can also directly connect to the GSM and GPS antenna by an external antenna connector.
SIM808 GPS/GPRS/GSM Arduino Shield V1.0 uses the latest version of Simcom SIM808 module, compared with the early SIM808 module available in the market, the new module has better stability. But GPS part of AT commands are not compatible with the old version of the SIM808 module, please refer to the bottom of the "more" in the AT commands.
Step 11: Specification
- Operating voltage: 5V
- Input Power: 7-23V
- Quad-band 850/900/1800/1900MHz
- GPRS multi-slot class 12/10
- GPRS mobile station class B
- Comply with GSM phase 2/2 +Class 4 (2 W @ 850 / 900MHz)
- Class 1 (1 W @ 1800 / 1900MHz)
- Support low power consumption mode: 100mA @ 7V-GSM mode
- Support AT command control (3GPP TS 27.007,27.005 and SIMCOM enhanced AT Commands)
- Support GPS satellite navigation technology
- Support LED status indicator: Power supply status, network status and operating modes
- Working environment: -40 ℃ ~ 85 ℃Size: 69 * 54mm/2.71 * 2.12 inches
Step 12: Board Overview
Module interface and precautions:
Occupied pins: D0, D1, D12, the digital pin "D12" is connected to SIM808 module power GPIO. It can be used as SIM808 module on / off control.SIM808 onboard MIC and 3.5mm SIM808 microphone are using the same MIC channel, when you plugin your microphone, the on-board MIC will be automatically disconnected.Boot switch button --SIM808 module switch, short-press 1s to start SIM808 , long-press 3s turn it off.LED "ON" - SIM808 power indicator, only when you connect an external power, the module can work properly.Net - GSM signal indicatorFast Flash: Search NetworkSlow flash (3s once): network registration completeFunction switchNone-- Vacant SIM808 serial pin to download the sketch, please dial to here.USB_DBG-- When the expansion board plugged on the Arduino, dial to here to make SIM808 communicate with PC to make a debug (AT debugging).Arduino-- When the expansion board plugged on the Arduino, dial to here to make SIM808 communicate with Arduino.
Step 13: USB Debugging (AT Command)
In this section, we will send AT commands through the serial port to debug SIM808 expansion shield. Please refer to SIM808 AT command set for more function.
Step 14: Preparation
- Arduino UNO x1
- SIM808 expansion board x1
- External power supply x1
- Arduino IDE
- Serial debugging assistant (In this section, we are using DF Serial Debugger by Lisper)
Plug your SIM card on the SIM808 expansion shield and plug the expansion shield on Arduino UNO, meanwhile don't forget to connect an external power source.Dial the function switch to None, download a sample code Blink to make sure the serial port is not occupied.Press the Boot power button and wait for the SIM card registering a network properly, the Net indicator led flashes slowly (3s once).Slide the function switch to USB_DBG, then we can communicate directly with SIM808 chip through the serial port assistant.
Step 15: Make a Phone Call
Send AT in the serial port assistant, if it returns OK, it means that serial communication has been established. Follow the Figure, enter AT commands, you should get the same content.
Step 16: Answer the Phone and Hang Up
Step 17: Send SMS
Step 18: Read SMS
Step 19: TCP Communication
Step 20: GPS Orientation
Note: The GPS antenna must be placed outside before it can obtain a stable GPS location data output.
Send AT + CGSN PWR = 1 command (Open the GPS power)
Send AT + CGNSTST = 1 command (Receive GPS data from the serial port)
If the GPS antenna has been placed outside, you should get the right data soon.
When you want to pause GPS data output, you can sent AT + CGNSTST = 0 command to pause GPS data output.
When you want to turn off GPS function, you can send AT + CGNSPWR = 0 command to turn off the GPS power. Send AT + CPOWD = 1 to shut down the SIM808 chip.
More exciting instruction, please refer to AT command on the page of the end. These two test code are very simple, and easy to be understood. Only need to enter the corresponding serial AT commands, you would achieve the corresponding functions.
Step 22: SIM808 Low Power Consumption Mode
Minimum Functionality Mode
The system will be reduced to a simplest mode under Minimum Functionality Mode. It will save more power consumption in this mode.
AT + CFUN = 0: Minimum functionality mode. In this mode, you can still continue to use the serial port, but the AT command with RF and SIM card features will be disable.
AT + CFUN = 1: Full-function mode (default).
AT + CFUN = 4: Airplane mode. In this mode, you can still continue to use the serial port, but the AT command with RF and SIM card features will be disable.
More features please refer to AT commands
Maybe you can be interested in projects in arduino, pic, robotics, telecommunications, subscribe at http://www.youtube.com/user/carlosvolt?sub_confirmation=1 many videos with complete source code and diagrams
Participated in the
Arduino Contest 2017
Participated in the
Remote Control Contest 2017
Question 3 years ago on Step 7
What is the filter box you are used?
Please give me a brief description do i can by one or make one.
If you can send the answer to me via my Gmail account:
Question 3 years ago
is it possible to use an arduino uno and get a notification on an app instead of a call or a message?
Question 4 years ago on Introduction
Can we communicate by email?
I Would like to produce this product.
Reply 4 years ago
Hi, my email is email@example.com
Reply 4 years ago
Can I have your contact information? I would like to speak to you over the phone.
Reply 4 years ago
Many thanks for your prompt reply.
I have sent you an email and looking forward to hearing from you soon.
4 years ago
I loved the idea!! This project has a lot of potential to become something. I personally have found very useful the AT commands guide. Is it the GSM module blocked for some networks or would it work with any SIM?