Botroniks Arduino ready-made hex code - SMS1044A: SMS Measure 4x Temperatures (4x sensor DS18B20) and control of 4 outputs - TryHex!

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

Nano
Uno
Mega

- SIM800L V2.0 5V: 1-2-3-4
- DS18B20 temp. sensor: (link) 1--2--3
 
- RelayModule 4way: 1-2-3-4
- PowerSupply 5.0V/2A: 1-2-3-4
misc: Wires: (link) 1--2--3 -- Resistors: (link) 1--2--3
 
Arduinos
connections (click to enlarge)
- Need additional accessories:

SMS1044A: SMS Measure 4x Temperatures (4x sensor DS18B20) and control of 4 outputs - TryHex!
The offered code enables: SMS Measure 4 temperatures and control up to 4 outputs.
Required accessories: see above
For Arduino boards: NANO or UNO or MEGA
Arduino pins are used: see connections
uc ATmega328p (NANO, UNO, ...): see connections
uc AtMega2560 (MEGA,.............): see connections
 
Electrical and practical notes:
Uses 5V/2A power supply - current is very important! Set the power supply to exactly 5,0v (5,2V 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
Add resistors (R1-R4) of 4,7K if sensor does not have it built in. For long distance of sensor connection cable use shielded cable. Shield must be connected to GND.
 
More 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)
 
Some project notes:
Temperatures in SMS are in round Celsius degrees!
If the DS18B20 sensor is not connected, the temperature in the SMS is zero!
 
Download the HEXtry 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...): SMS1044Atry-M328 - Time limited (2h - then need restart) version for try!
2. uc AtMega2560 (Mega(ATMEGA2560).....): soon
Fully functional HexCode but time-limited! Test and use it for free! If You are satisfied and want FinalHexCode (HEXfin = final no limit version) - click here
Project code is not realized in the Arduino IDE. Source code not available!
See SMS commands description below

User guide manual:
Description of SMS commands (send SMS and wait for answer):
*** - Return to Default Reset - does not send a return SMS message after this command ( *MO=1 *RM=1, all outputs=OFF) (do it first after uploading code)
? or S - Status request. Returns SMS to the sender abouth status
?* or S* - Returns SMS with settings values
OUT1=1 or A - Activates (ON) Out1 (#RM=1 sends (#RM=0 or does not) a return sms report on the executed command)
OUT1=0 or a - Deactivates (OFF) Out1 (#RM=1 sends (#RM=0 or does not) a return sms report on the executed command)
OUT2=1 or B - Activates Out2 (#RM=1 sends (#RM=0 or does not) a return sms report on the executed command)
OUT2=0 or b - Deactivates Out2 (#RM=1 sends (#RM=0 or does not) a return sms report on the executed command)
OUT3=1 or C- Activates Out3 (#RM=1 sends (#RM=0 or does not) a return sms report on the executed command)
OUT3=0 or c- Deactivates Out3 (#RM=1 sends (#RM=0 or does not) a return sms report on the executed command)
OUT4=1 or D- Activates Out4 (#RM=1 sends (#RM=0 or does not) a return sms report on the executed command)
OUT4=0 or d- Deactivates Out4 (#RM=1 sends (#RM=0 or does not) a return sms report on the executed command)
ALL=1 - Activates (ON) ALL Outputs (#RM=1 sends (#RM=0 or does not) a return sms report on the executed command)
ALL=0 - Deactivates (OFF) ALL Outputs (#RM=1 sends (#RM=0 or does not) a return sms report on the executed command)
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