Arduino UNO and ESP32-CAM Based Smart Home Monitoring System with Battery Power
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes various components such as LEDs, resistors, sensors, a buzzer, an Arduino UNO, and an ESP32-CAM. The circuit is designed to interface with multiple sensors and output devices, controlled by the Arduino UNO and ESP32-CAM microcontrollers.
Component List
LED: Two Pin (red)
- Description: A red LED with two pins: cathode and anode.
- Pins: cathode, anode
LED: Two Pin (green)
- Description: A green LED with two pins: cathode and anode.
- Pins: cathode, anode
Resistor
- Description: A resistor with two pins.
- Pins: pin1, pin2
- Properties:
- Resistance: 200 Ohms
MQ-2
- Description: A gas sensor with four pins.
- Pins: GND, VCC, ANALOG, Digital
IR Sensor
- Description: An infrared sensor with three pins.
- Pins: out, gnd, vcc
Buzzer
- Description: A buzzer with two pins.
- Pins: PIN, GND
Arduino UNO
- Description: A microcontroller board with multiple I/O pins.
- 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
ESP32 - CAM
- Description: A microcontroller with camera capabilities.
- Pins: 5V, GND, IO12, IO13, IO15, IO14, IO2, IO4, VOT, VOR, VCC, IO0, IO16, 3V3
3.7V Battery
- Description: A 3.7V battery with two pins.
- Pins: +, -
DHT11
- Description: A temperature and humidity sensor with three pins.
- Pins: DATA, GND, VCC
Wiring Details
LED: Two Pin (red)
- Anode: Connected to pin2 of a resistor.
- Cathode: Connected to GND.
LED: Two Pin (green)
- Anode: Connected to pin2 of a resistor.
- Cathode: Connected to GND.
Resistor
Resistor 1:
- Pin1: Connected to D3 of Arduino UNO.
- Pin2: Connected to DATA of DHT11.
Resistor 2:
- Pin1: Connected to D4 of Arduino UNO.
- Pin2: Connected to anode of green LED.
Resistor 3:
- Pin1: Connected to D5 of Arduino UNO.
- Pin2: Connected to anode of red LED.
Resistor 4:
- Pin1: Connected to D8 of Arduino UNO.
- Pin2: Connected to PIN of buzzer.
MQ-2
- GND: Connected to GND.
- VCC: Connected to VCC.
- ANALOG: Connected to A0 of Arduino UNO.
- Digital: Not connected.
IR Sensor
- Out: Connected to D2 of Arduino UNO.
- GND: Connected to GND.
- VCC: Connected to VCC.
Buzzer
- PIN: Connected to pin2 of a resistor.
- GND: Connected to GND.
Arduino UNO
- D3: Connected to pin1 of a resistor.
- D4: Connected to pin1 of a resistor.
- D5: Connected to pin1 of a resistor.
- D8: Connected to pin1 of a resistor.
- A0: Connected to ANALOG of MQ-2.
- D2: Connected to out of IR sensor.
- D6: Connected to VOT of ESP32 - CAM.
- D7: Connected to VOR of ESP32 - CAM.
ESP32 - CAM
- 3V3: Connected to + of 3.7V battery.
- GND: Connected to - of 3.7V battery.
- VOT: Connected to D6 of Arduino UNO.
- VOR: Connected to D7 of Arduino UNO.
3.7V Battery
- +: Connected to 3V3 of ESP32 - CAM.
- -: Connected to GND of ESP32 - CAM.
DHT11
- DATA: Connected to pin2 of a resistor.
- GND: Connected to GND.
- VCC: Connected to VCC.
Documented Code
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Documentation
// No additional documentation provided.
This document provides a comprehensive overview of the circuit, including a detailed component list, wiring details, and the code used for the Arduino UNO microcontroller.