Botroniks Arduino ready-made hex code - SMS1021: SMS Temperature Alarm (sensor DS18B20) and control of 2 outputs - TryHex

BotronikS - Final code for all types of Arduino and PC users: -- HOME -- CONTACT

SIM800L V2.0 5V

Link: 1-2-3-4

PS

Link: 1-2-3-4

DS18B20

Link: 1-2-3-4

RM

Link: 1-2-3-4

Botroniks Arduino SMS Hex sode
 
arduinos
need accessories
connections (click to enlarge)
 

SMS1021: SMS Temperature Alarm (sensor DS18B20) and control of 2 outputs - TryHex!
The offered code enables: High and low alarm temperature limits are set via SMS. When the measuring temperature exceeds the set limits, an alarm SMS message follows (or together with a call) to up to 3 stored phone numbers. Operation control up to 2 outputs.
Required accessories: SIM800L V2.0 5V Wireless GSM GPRS Module - see above
For Arduino boards: NANO or UNO or MEGA
Arduino pins are used:
uc ATmega328p (NANO, UNO, ...): D2=SIM-TXD D3=SIM-RXD D4-D5=Outputs(5V=ON) D12=DS18B20
uc AtMega2560 (MEGA,.............): D2=SIM-TXD D3=SIM-RXD D4-D5=Outputs(5V=ON) D12=DS18B20
 
Electrical and practical notes:
Uses 5V/2A power supply - current is very important! Set the power supply to exactly 5,0v (5,3V or more is not good for long time working)
Connect the power supply directly to the 5V and GND arduino pins - do not use the DC plug or USB power supply!
SIM800L power supply be taken directly from the power source - not from the arduino board!
Do not use standard Dupont Jumper Wires to connect the SIM800 (5V and GND) to the power supply (best soldered directly).
In case of insufficient power current or poor contact, the SIM800 is reset when trying to log in to the mobile network.
On outputs can connect some other type of 5V Loads up to 20 mA (for each output) like SSR's: Link1--Link2
 
Some notes:
Before using the SIM card, activate it on a standard mobile phone and receive at least one SMS message.
The PIN and PUK code on the SIM card must be disabled!
After connecting to the power supply, the device is ready for operation after 1 minute
The flashing LED on the SIM800 pcb flashes more slowly when the device is connected to the mobile operator's network
Return SMS messages can be expected in a few minutes. Do not send more messages before answer.
When using it for the first time (after updating the code), be sure to do a default reset first (see below)
Be sure to upload the code to the Arduino outside of the project connections! (or it not necessary to do in the case when the noted power supply of the project is switched on)
 
See SMS commands description below
Some project notes:
Enter phone number in international format - If no phone number is stored - no alarm SMS!
The temperature must be outside the alarm limits for at least 3 minutes for a successful alarm! (up to 3 phone numbers)
If the DS18B20 sensor is not connected, the temperature in the SMS is zero!
If there is no stored phone number - no alarm SMS!
The alarm phone number is deleted if it is entered (x=1,2 or 3) exasmle: #t3=
 
Download the TryHEX code below, unpack and upload to the proper Arduino board (Use a free net tool for example XLoader)
1. uc ATmega328-16MHz-5V (NANO,UNO...): SMS1021try-M328 - Time limited (2h - then need restart) version for try!
2. uc AtMega2560 (Mega(ATMEGA2560).....): SMS1021try-M2560 - Time limited (2h - then need restart) version for try!
Fully functional HexCode but time limited! Test and use it free! If You are satisfied and want FinalHexCode (code version no limit) - do next:
FinalHexCode : Do some donation (HOME) and copy bottom line in Your Email to us (CONTACT). After successful donation You will receive ProjCode on your email soon as possible.
Need of project code: ProjCode-SMS1021 (FinalHexCode)
You can use and copy received FinalHexCode in Your projects without any restrictions!
 
 
Project code is not realized in the Arduino IDE. Source code not available!
 

User guide manual:
Description of SMS commands (send SMS and wait for answer):
? or S - Status request. Returns SMS to the sender abouth status of outputs.
?# or S# - Returns SMS with settings values
OUT1=1 or A - Activates (ON) Output 1 (#RM=1 sends (#RM=0 or does not) a return sms report on the executed command)
OUT1=0 or a - Deactivates (OFF) Output 1 (#RM=1 sends (#RM=0 or does not) a return sms report on the executed command)
OUT2=1 or B - Activates Output 2 (#RM=1 sends (#RM=0 or does not) a return sms report on the executed command)
OUT2=0 or b - Deactivates Output 2 (#RM=1 sends (#RM=0 or does not) a return sms report on the executed command)
ALLO=1 - Activates (ON) ALL Outputs (#RM=1 sends (#RM=0 or does not) a return sms report on the executed command)
ALLO=0 - Deactivates (OFF) ALL Outputs (#RM=1 sends (#RM=0 or does not) a return sms report on the executed command)
#DRESET or ### - Return to Default Reset - does not send a return SMS message after this command ( #MO=1 #RM=1, all outputs=OFF)
SMS commands of settings: (allways memorised and returns SMS)
#MO=1 - To Memorizes the last state of the output when power failure
#MO=0 - To Do not memorizes the last state of the output when power failure
#RM=1 - To Returns SMS message to the sender after executing the SMS command
#RM=0 - To Do not returns SMS message to the sender after executing the SMS command
#Lo=x - set Low temperature limit (in round degrees Celsius - x range:-50/+120) example: #Lo=-6
#Hi=x - set High temperature limit (in round degrees Celsius - x range:-50/+120) example: #Hi=56
#t1=x - set 1. alarm phone number (example: # t1=+381641111111)
#t2=x - set 2. alarm phone number (example: # t2=+381642222222)
#t3=x - set 3. alarm phone number (example: # t3=+381643333333)
#CL=0 - If alarm status activated, send alarm SMS message only
#CL=1 - If alarm status activated, add a call (15sec.) with an alarm SMS message