Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino Due GSM-Controlled Home Automation System with Temperature and Motion Sensors

View and Edit Project In Cirkit DesignerImage of Arduino Due GSM-Controlled Home Automation System with Temperature and Motion Sensors

Circuit Documentation

Summary

This circuit is designed to control a heating and alarm system using an Arduino Due microcontroller and a SIM800L GSM module. The system includes an 8-channel relay module, multiple PIR motion sensors, temperature sensors, reed switches, and an RTC module for timekeeping. The relays can be controlled via SMS commands received by the SIM800L module. The system also reads data from the sensors and logs it for monitoring purposes.

Component List

  1. Electrolytic Capacitor

    • Description: A capacitor used for filtering and energy storage.
    • Pins: -, +
  2. Arduino Due

    • Description: A microcontroller board based on the Atmel SAM3X8E ARM Cortex-M3 CPU.
    • Pins: A8, A9, A10, A11, DAC0, DAC1, CANRX, CANTX, A0, A1, A2, A3, A4, A5, A6, A7, D14/TX3, D15/RX3, D16/TX2, D17/RX2, D18/TX1, D19/RX1, D20/SDA3, D21/SCL3, IOREF, MASTER-RESET, 5V, GND, VIN, D8 PWM, D9 PWM, D10 PWM/SS0, D11 PWM, D12 PWM, D13 PWM, AREF, SDA1, SCL1, D0/RX, D1/TX, D2 PWM, D3 PWM, D4 PWM/SS1, D5 PWM, D6 PWM, D7 PWM, D22, D23, D24, D25, D26, D27, D28, D29, D30, D31, D32, D33, D34, D35, D36, D37, D38, D39, D40, D41, D42, D43, D44, D45, D46, D47, D48, D49, D50, D51, D52, D53, unused
  3. Switching Power Supply

    • Description: Provides power to the circuit.
    • Pins: AC, GND, -V, +V
  4. 5V 8-Channel Relay

    • Description: A relay module used to control high-power devices.
    • Pins: GND, IN1, IN2, IN3, IN4, IN5, IN6, IN7, IN8, VCC, NC, C, NO
  5. SIM800L GSM Module

    • Description: A GSM module used for communication via SMS.
    • Pins: 5V, GND, VDD, SIM_TXD, SIM_RXD, RST
  6. DS18B20 1-Wire Temperature Sensor Probe Cable

    • Description: A temperature sensor used to measure temperature.
    • Pins: shield, GND, DQ, VDD
  7. DC-DC Converter

    • Description: Converts DC voltage levels.
    • Pins: +VCC IN, GND IN, +VCC OUT, GND OUT
  8. RTC DS13072

    • Description: A real-time clock module for timekeeping.
    • Pins: DS, SCL, SDA, VCC, GND, SQ, BAT
  9. HC-SR505 Mini PIR Motion Sensing Module

    • Description: A motion sensor used to detect movement.
    • Pins: +, out, -
  10. LilyPad Reed Switch

    • Description: A magnetic switch used to detect the presence of a magnetic field.
    • Pins: N$1, 1
  11. PIR Sensor

    • Description: A motion sensor used to detect movement.
    • Pins: VDD, SIG, GND

Wiring Details

Electrolytic Capacitor

Arduino Due

Switching Power Supply

5V 8-Channel Relay

SIM800L GSM Module

DS18B20 1-Wire Temperature Sensor Probe Cable

DC-DC Converter

RTC DS13072

HC-SR505 Mini PIR Motion Sensing Module

LilyPad Reed Switch

PIR Sensor

Code Documentation

/*
 * Arduino Sketch for GSM Control of Heating and Alarm System
 * This code controls an 8-channel relay module using an Arduino Due and a
 * SIM800L GSM module. The relays can be controlled via SMS commands received
 * by the SIM800L module. Additionally, the code reads data from 4 PIR sensors,
 * 4 temperature sensors