| BotronikS: Final codes for all types of Arduino and PC users: -- HOME -- email: botronik@gmail.com |
| What you need to install or have installed before on your PC: see HERE |
ASMS010: SmsAlarm (1xContact NC) - When an alarm occurs, it sends a entered SMS (+ Call=15sec) to a entered phone number and Out1 is active... |
|||
| Useful accessories: | ![]() |
||
| Power 5v | |||
| SIM800L 5V | |||
| RelayShield4 | |||
| RelayModule4 | |||
| SSRmodule4 | |||
| Programming with Text commands from PC: Uploaded code is started by connecting the power supply according to the set values. | |||
| Download the Free! HEX codes below, unpack and upload to the proper Arduino board (Use a free net tool for example XLoader) | |||
| 1. ATMega328-16MHz (NANO - UNO - ): HexCode-m328 | |||
| 2. ATMega2560 (MEGA - ): HexCode-m2560 | |||
| Note electric: | |||
| Power supply of 5.0V/2A is very important! Current is important! | |||
| SIM and Relay module power supply connect directly to power source (not from arduino pcb)! | |||
| Do not use PC USB (excluding if you upload code in alone arduino-without shield only) without applying external 5.0V! | |||
| S1: Text Programming switch (or push button) see below | |||
| SA1: Alarm contact. OK=close ALARM=open (anti sabotage mode) | |||
| Textual programing from PC: | |||
| Connect arduino to PC USB and start some like Termite (select: COM port and Append CR - see picture above) | |||
| Close S1 switch (switch (or simply wire jumper) for programming only) and reset arduino on button. Then apears some text on PC. | |||
| SV? - return all available SV values | |||
| SV10=X - Enter phone number (up to 20 characters) for receive alarm sms message and call (in international format). Example for Serbia: SV10=+381XXXXXXXXX | |||
| SV11=X - Enter alarm message (up to 20 characters). Example: ALARM! GARAGE DOOR! | |||
| SV12=X - not in use | |||
| When you're done programming, open S1 and reset the arduino... | |||
| Uploaded code is started by connecting the power supply according to the set values. | |||
| Notes: | |||
| All values remain memorized in the arduino (EEPROM). | |||
| When power is on - Arduino dead time is 30 sec. (waiting for SIM connection to GSM network). | |||
| Out1 is active while SA1 is open. It can be used to drive the alarm siren, lights and similar... | |||
| On alarm call - Do not answer the call (option) - it only call 15 seconds. | |||