Wi-Fi Controlled Smart Water Level Monitoring and Motor Control System using Arduino and ESP8266
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 an Arduino UNO, ESP8266 WiFi Module, DC motors, sensors, and a motor driver. The circuit is designed to control multiple DC motors, read sensor data, and communicate wirelessly. The power is supplied through a combination of an AC wire, a 12V battery, and a solar panel.
Component List
AC Wire
- Pins: GND, Phase
- Description: Provides AC power to the circuit.
ESP8266 ESP-01 WiFi Module
- Pins: TXD, CH_PD, RST, VCC, GND, GPIO_2, GPIO_0, RXD
- Description: Enables WiFi communication.
DC Motor
- Pins: pin 1, pin 2
- Description: Converts electrical energy into mechanical motion.
Ultrasonic Sensor
- Pins: +VCC, Trigger, Echo, GND
- Description: Measures distance using ultrasonic waves.
Rocker Switch
- Pins: output, input
- Description: Manually controls the power flow.
Solar Panel
- Pins: +, -
- Description: Converts solar energy into electrical energy.
Battery 12V
- Pins: +, -
- Description: Provides 12V DC power to the circuit.
Arduino UNO
- 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
- Description: Microcontroller board for controlling the circuit.
L298N DC Motor Driver
- Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
- Description: Drives multiple DC motors.
Water Level Sensor
- Pins: SIG, VCC, GND
- Description: Measures the water level.
Wemos D1 Mini Relay Shield
- Pins: RST, 5V, GND, D4, D3, D2, D1, RX, TX, A0, 3V3, D8, D7, D6, D5, D0, NO, COM, NC
- Description: Controls high voltage devices.
Wiring Details
AC Wire
GND connected to:
- L298N DC motor driver (GND)
- Wemos D1 Mini Relay Shield (GND)
- Water Level Sensor (GND)
- Ultrasonic Sensor (GND)
- Battery 12V (-)
- Arduino UNO (GND)
Phase connected to:
- Rocker switch (output)
- Rocker switch (input)
- Battery 12V (+)
- Arduino UNO (Vin)
ESP8266 ESP-01 WiFi Module
VCC connected to:
- Arduino UNO (3.3V)
GND connected to:
- Arduino UNO (GND)
RXD connected to:
- Arduino UNO (D1)
TXD connected to:
- Arduino UNO (D0)
DC Motor
pin 1 connected to:
- L298N DC motor driver (OUT1)
- L298N DC motor driver (OUT3)
pin 2 connected to:
- L298N DC motor driver (OUT2)
- L298N DC motor driver (OUT4)
Ultrasonic Sensor
+VCC connected to:
- Arduino UNO (5V)
Trigger connected to:
- Arduino UNO (D8)
Echo connected to:
- Arduino UNO (D9)
GND connected to:
- AC Wire (GND)
Rocker Switch
output connected to:
- AC Wire (Phase)
input connected to:
- AC Wire (Phase)
Solar Panel
+ connected to:
- Not specified in the net list
- connected to:
- Not specified in the net list
Battery 12V
+ connected to:
- AC Wire (Phase)
- Arduino UNO (Vin)
- connected to:
- AC Wire (GND)
Arduino UNO
3.3V connected to:
- ESP8266 ESP-01 WiFi Module (VCC)
5V connected to:
- L298N DC motor driver (5V)
- Wemos D1 Mini Relay Shield (5V)
- Water Level Sensor (VCC)
- Ultrasonic Sensor (+VCC)
GND connected to:
- AC Wire (GND)
- ESP8266 ESP-01 WiFi Module (GND)
Vin connected to:
- AC Wire (Phase)
- Battery 12V (+)
A0 connected to:
- Water Level Sensor (SIG)
D0 connected to:
- ESP8266 ESP-01 WiFi Module (TXD)
D1 connected to:
- ESP8266 ESP-01 WiFi Module (RXD)
D2 connected to:
- L298N DC motor driver (IN1)
D3 connected to:
- L298N DC motor driver (IN2)
D4 connected to:
- L298N DC motor driver (IN3)
D5 connected to:
- L298N DC motor driver (IN4)
- Wemos D1 Mini Relay Shield (D4)
D6 connected to:
- L298N DC motor driver (ENA)
D7 connected to:
- L298N DC motor driver (ENB)
D8 connected to:
- Ultrasonic Sensor (Trigger)
D9 connected to:
- Ultrasonic Sensor (Echo)
L298N DC Motor Driver
GND connected to:
- AC Wire (GND)
5V connected to:
- Arduino UNO (5V)
OUT1 connected to:
- DC Motor (pin 1)
OUT2 connected to:
- DC Motor (pin 2)
OUT3 connected to:
- DC Motor (pin 1)
OUT4 connected to:
- DC Motor (pin 2)
12V connected to:
- Wemos D1 Mini Relay Shield (NO)
IN1 connected to:
- Arduino UNO (D2)
IN2 connected to:
- Arduino UNO (D3)
IN3 connected to:
- Arduino UNO (D4)
IN4 connected to:
- Arduino UNO (D5)
- Wemos D1 Mini Relay Shield (D4)
ENA connected to:
- Arduino UNO (D6)
ENB connected to:
- Arduino UNO (D7)
Water Level Sensor
SIG connected to:
- Arduino UNO (A0)
VCC connected to:
- Arduino UNO (5V)
GND connected to:
- AC Wire (GND)
Wemos D1 Mini Relay Shield
5V connected to:
- Arduino UNO (5V)
GND connected to:
- AC Wire (GND)
D4 connected to:
- L298N DC motor driver (IN4)
- Arduino UNO (D5)
NO connected to:
- L298N DC motor driver (12V)
COM connected to:
- L298N DC motor driver (+5V-J2)
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 document provides a comprehensive overview of the circuit, including the components used, their wiring details, and the code for the Arduino UNO microcontroller.