Arduino UNO and Sim800L GSM Module-Based Battery-Powered Smart Light Control System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates an Arduino UNO microcontroller with various components including a Sim800l GSM module, a Polymer Lithium Ion Battery, a red LED, a 5V relay, a rocker switch, a resistor, and an MKE-S03 Photo Diode Light Sensor. The circuit is designed to perform various functions such as controlling the LED, reading light levels, and communicating via GSM.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
Sim800l
- Description: A GSM/GPRS module for communication.
- Pins: NET, RST, VCC, RXD, TXD, GND
Polymer Lithium Ion Battery - 850mAh
- Description: A rechargeable battery.
- Pins: GND, VCC
LED: Two Pin (red)
- Description: A red light-emitting diode.
- Pins: cathode, anode
5V Relay
- Description: An electromechanical switch.
- Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
Rocker Switch
- Description: A switch to control the power supply.
- Pins: output, input
Resistor
- Description: A 220 Ohms resistor.
- Pins: pin1, pin2
MKE-S03 Photo Diode Light Sensor
- Description: A light sensor.
- Pins: SIG, 5V, GND
Wiring Details
Arduino UNO
- GND: Connected to the cathode of the LED, GND of the Polymer Lithium Ion Battery, GND of the Sim800l, GND of the 5V relay, and GND of the MKE-S03 Photo Diode Light Sensor.
- 5V: Connected to the 5V pin of the MKE-S03 Photo Diode Light Sensor, VCC of the Sim800l, and VCC of the 5V relay.
- Vin: Connected to the output of the rocker switch.
- A1: Connected to the SIG pin of the MKE-S03 Photo Diode Light Sensor.
- D13: Connected to pin2 of the resistor.
- D4: Connected to the In pin of the 5V relay.
- D3: Connected to the TXD pin of the Sim800l.
- D2: Connected to the RXD pin of the Sim800l.
Sim800l
- VCC: Connected to the 5V pin of the Arduino UNO.
- GND: Connected to the GND pin of the Arduino UNO.
- RXD: Connected to the D2 pin of the Arduino UNO.
- TXD: Connected to the D3 pin of the Arduino UNO.
Polymer Lithium Ion Battery - 850mAh
- GND: Connected to the GND pin of the Arduino UNO.
- VCC: Connected to the input of the rocker switch.
LED: Two Pin (red)
- cathode: Connected to the GND pin of the Arduino UNO.
- anode: Connected to pin1 of the resistor.
5V Relay
- VCC: Connected to the 5V pin of the Arduino UNO.
- GND: Connected to the GND pin of the Arduino UNO.
- In: Connected to the D4 pin of the Arduino UNO.
Rocker Switch
- output: Connected to the Vin pin of the Arduino UNO.
- input: Connected to the VCC pin of the Polymer Lithium Ion Battery.
Resistor
- pin1: Connected to the anode of the LED.
- pin2: Connected to the D13 pin of the Arduino UNO.
MKE-S03 Photo Diode Light Sensor
- 5V: Connected to the 5V pin of the Arduino UNO.
- GND: Connected to the GND pin of the Arduino UNO.
- SIG: Connected to the A1 pin of the Arduino UNO.
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a detailed list of components, their wiring connections, and the code used in the Arduino UNO microcontroller.