Arduino and ESP8266-Based Smart Water and Temperature Monitoring System with Wi-Fi Control
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 a WeMOS ESP8266, Arduino UNO, temperature sensor, water sensor, relay, power supply, and more. The circuit is designed to interface sensors and actuators with microcontrollers to perform specific tasks. The document includes a component list, wiring details, and documented code for the microcontrollers.
Component List
12v Relay
- Description: A relay that operates at 12V DC.
- Pins: NO, COM, NC, IN, DC-, DC+
Power Supply 24 VDC
- Description: A power supply that provides 24V DC output.
- Pins: L, N, E, V+, V-
Arduino UNO
- Description: A popular 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
Water Sensor
- Description: A sensor used to detect the presence of water.
- Pins: Signal, VCC, GND
Peristaltic Pump
- Description: A pump used for precise fluid control.
- Pins: +, -
WPI409 Dubbele H-brug Driver L298N voor DC- of Stappenmotor
- Description: A dual H-bridge driver for DC or stepper motors.
- Pins: IN1, IN2, GND, +motor, -motor, +5V
WeMOS ESP8266
- Description: A Wi-Fi enabled microcontroller.
- Pins: A0, VIN, GND, 5V, 3.3V, D7, D6, D1, D2, D15, D14, D13, D12, D11, D10, 19, D8, D5, D4, D3, D0
Resistor
- Description: A resistor with a resistance of 11k Ohms.
- Pins: pin1, pin2
- Properties: Resistance: 11k Ohms
Temperature Sensor
- Description: A sensor used to measure temperature.
- Pins: Temp GND Black, Temp VDD Red, Temp DQ Data Yellow
Haier Verwarmingselement
- Description: A heating element.
- Pins: conn2, conn1
Power 220V
- Description: A 220V AC power source.
- Pins: hot wire, neutral wire
GND
- Description: Ground connection.
- Pins: GND
Labview
- Description: A system-design platform and development environment.
- Pins: None
LogiLink 4-port USB 2.0 Hub incl Power Supply
- Description: A 4-port USB 2.0 hub with power supply.
- Pins: USB1, USB2, USB3, USB4
USB Power
- Description: USB power supply.
- Pins: +, -
Webcam
- Description: A webcam for capturing video.
- Pins: None
Wiring Details
12v Relay
- DC+ connected to 5V of Arduino UNO
- DC- connected to GND of Arduino UNO
- IN connected to D9 of Arduino UNO
- NO connected to conn2 of Haier Verwarmingselement
- COM connected to V+ of Power Supply 24 VDC
Power Supply 24 VDC
- L connected to neutral wire of Power 220V
- N connected to hot wire of Power 220V
- E connected to GND
- V+ connected to COM of 12v Relay
- V- connected to conn1 of Haier Verwarmingselement
Arduino UNO
- 5V connected to VCC of Water Sensor and DC+ of 12v Relay
- GND connected to GND of Water Sensor, DC- of 12v Relay, and GND of WPI409 Dubbele H-brug Driver L298N voor DC- of Stappenmotor
- A0 connected to Signal of Water Sensor
- D10 connected to IN1 of WPI409 Dubbele H-brug Driver L298N voor DC- of Stappenmotor
- D9 connected to IN of 12v Relay
- D8 connected to IN2 of WPI409 Dubbele H-brug Driver L298N voor DC- of Stappenmotor
Water Sensor
- VCC connected to 5V of Arduino UNO
- GND connected to GND of Arduino UNO
- Signal connected to A0 of Arduino UNO
Peristaltic Pump
- + connected to +motor of WPI409 Dubbele H-brug Driver L298N voor DC- of Stappenmotor
- - connected to -motor of WPI409 Dubbele H-brug Driver L298N voor DC- of Stappenmotor
WPI409 Dubbele H-brug Driver L298N voor DC- of Stappenmotor
- IN1 connected to D10 of Arduino UNO
- IN2 connected to D8 of Arduino UNO
- GND connected to GND of Arduino UNO and USB power
- +motor connected to + of Peristaltic Pump
- -motor connected to - of Peristaltic Pump
- +5V connected to + of USB power
WeMOS ESP8266
- D4 connected to Temp DQ Data Yellow of Temperature Sensor and pin1 of Resistor
- GND connected to Temp GND Black of Temperature Sensor
- 5V connected to Temp VDD Red of Temperature Sensor and pin2 of Resistor
Resistor
- pin1 connected to D4 of WeMOS ESP8266 and Temp DQ Data Yellow of Temperature Sensor
- pin2 connected to 5V of WeMOS ESP8266 and Temp VDD Red of Temperature Sensor
Temperature Sensor
- Temp GND Black connected to GND of WeMOS ESP8266
- Temp VDD Red connected to 5V of WeMOS ESP8266 and pin2 of Resistor
- Temp DQ Data Yellow connected to D4 of WeMOS ESP8266 and pin1 of Resistor
Haier Verwarmingselement
- conn2 connected to NO of 12v Relay
- conn1 connected to V- of Power Supply 24 VDC
Power 220V
- neutral wire connected to L of Power Supply 24 VDC
- hot wire connected to N of Power Supply 24 VDC
GND
- GND connected to E of Power Supply 24 VDC
Labview
- Connected to LogiLink 4-port USB 2.0 Hub incl Power Supply
LogiLink 4-port USB 2.0 Hub incl Power Supply
- Connected to Labview
USB Power
- - connected to GND of WPI409 Dubbele H-brug Driver L298N voor DC- of Stappenmotor
- + connected to +5V of WPI409 Dubbele H-brug Driver L298N voor DC- of Stappenmotor
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:
}
Arduino UNO Documentation (documentation.txt)