Gps Forest Fire Alert System With Sim808 and Arduino Uno

by CarlosVoltT in Circuits > Sensors

15236 Views, 27 Favorites, 0 Comments

Gps Forest Fire Alert System With Sim808 and Arduino Uno

IMG_1053-820x615 (1).jpg
???Sistema de alerta de incendios forestales gps con sim808 y 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.

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:

Arduino One

descarga (1).jpg

Sim808

sim808-300x200 (1).jpg

Flame Sensor

FLAMA_2.jpg

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

Dupont Cables

dupont (1).png

Battery 12 Volts (can Be a Source of 12 at Least to Do the Initial Tests)

bateria (1).jpg

A Box With Filter (optional)

IMG_1056 (1).jpg

Circuit

detector-de-llama-con-sim808 (1).png

Source Code

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.

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

Board Overview

TEL0097_pin_mapping (1).png

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.

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.

Preparation

Hardware:

  • Arduino UNO x1
  • SIM808 expansion board x1
  • External power supply x1

Software :

‘’‘STEP’‘’

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.

Make a Phone Call

TEL0097_Phone_call (1).png

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.

Answer the Phone and Hang Up

TEL0097_Answer_Hang_up (1).png

Send SMS

TEL0097_Send_Message (1).png

Read SMS

TEL0097_Read_Message (1).png

TCP Communication

TEL0097_TCP (1).png

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)

TEL0097_GPS_debug (1).jpg

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.

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,1,4

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

https://github.com/leffhub/DFRobotSIM808_Leonardo_mainboard/blob/master/SIM800_Series_AT_Command_Manual_V1.07.pdf

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