Arduino UNO WiFi-Based Smart Water Control System with Flow Meter and Relay
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 4-Channel Relay, Water Pump, YF-S201 Water Flow Meter, Plastic Solenoid Valve, SMPS, Arduino UNO R4 WiFi, 1N4007 Rectifier Diode, AC source, Black Keypad 4*4, Buck converter, wire connector, Nextion display, UHF RFID FM-505, WS2815 LED Strip, and WS2812 RGB LED matrix 2x2. The circuit is designed to control water flow and pump operations, read water flow data, and display information on a Nextion display. The Arduino UNO R4 WiFi microcontroller is used to control the operations and communicate with various sensors and actuators.
Component List
4-Channel Relay
- Description: A relay module with four channels.
- Pins: NC, COM, NO, GND, IN1, IN2, IN3, IN4, VCC, JD-VCC
Water Pump
- Description: A pump used to move water.
- Pins: +, -
YF-S201 Water Flow Meter
- Description: A sensor to measure water flow.
- Pins: SIG, GND, VCC
Plastic Solenoid Valve
- Description: A valve controlled by an electric current.
- Pins: pin1, pin2
SMPS
- Description: Switched-Mode Power Supply.
- Pins: L, N, GND, -DC, +DC
Arduino UNO R4 WiFi
- Description: A microcontroller board with WiFi capabilities.
- Pins: OFF, GND, VRTC, IIC0_SCL, IIC0_SDA, 3V3, GPIO 41, GPIO 0, GPIO 42, GPIO 43, GPIO 44, BOOT, IOREF, RESET, 5V, VIN, A0, A1, A2, A3, A4, A5, RSPCKA, CIPO, COPI, D0/RX, D1/TX, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, AREF, SDA, SCL
1N4007 Rectifier Diode
- Description: A diode used for rectification.
- Pins: Cathode, Anode
AC Source
- Description: An AC power source.
- Pins: +, -
Black Keypad 4*4
- Description: A 4x4 matrix keypad.
- Pins: (Not specified)
Buck Converter
- Description: A DC-DC converter.
- Pins: IN+, IN-, OUT+, OUT-
Wire Connector
- Description: A connector for wires.
- Pins: +, -
Nextion
- Description: A touch display module.
- Pins: Vcc, TX, RX, GND
UHF RFID FM-505
- Description: An RFID reader module.
- Pins: Vcc, TX, RX, GND, EN
WS2815 LED Strip
- Description: An addressable LED strip.
- Pins: GND, B0, D0, +12V
WS2812 RGB LED Matrix 2x2
- Description: An addressable RGB LED matrix.
- Pins: GND, VCC, DIN, DOUT
Wiring Details
4-Channel Relay
- VCC: Connected to Vcc of Nextion, YF-S201 Water Flow Meter, UHF RFID FM-505, WS2815 LED Strip, VIN of Arduino UNO R4 WiFi, and OUT+ of Buck converter.
- GND: Connected to GND of Nextion, YF-S201 Water Flow Meter, UHF RFID FM-505, WS2815 LED Strip, GND of Arduino UNO R4 WiFi, and OUT- of Buck converter.
- COM: Connected to + of AC source and L of SMPS.
- NO:
- Connected to Cathode of 1N4007 Rectifier Diode and + of Water Pump.
- Connected to pin1 of Plastic Solenoid Valve and Cathode of 1N4007 Rectifier Diode.
- IN1: Connected to D7 of Arduino UNO R4 WiFi.
- IN2: Connected to D8 of Arduino UNO R4 WiFi.
- IN3: Connected to D9 of Arduino UNO R4 WiFi.
- IN4: Connected to D10 of Arduino UNO R4 WiFi.
Water Pump
- +: Connected to NO of 4-Channel Relay.
- -: Connected to Anode of 1N4007 Rectifier Diode and - of AC source.
YF-S201 Water Flow Meter
- VCC: Connected to Vcc of Nextion, 4-Channel Relay, UHF RFID FM-505, WS2815 LED Strip, VIN of Arduino UNO R4 WiFi, and OUT+ of Buck converter.
- GND: Connected to GND of Nextion, 4-Channel Relay, UHF RFID FM-505, WS2815 LED Strip, GND of Arduino UNO R4 WiFi, and OUT- of Buck converter.
- SIG: Connected to D11 of Arduino UNO R4 WiFi.
Plastic Solenoid Valve
- pin1: Connected to NO of 4-Channel Relay.
- pin2: Connected to Anode of 1N4007 Rectifier Diode and - of AC source.
SMPS
- L: Connected to COM of 4-Channel Relay.
- N: Connected to Anode of 1N4007 Rectifier Diode and - of AC source.
- +DC: Connected to IN+ of Buck converter.
- -DC: Connected to IN- of Buck converter.
Arduino UNO R4 WiFi
- VIN: Connected to Vcc of Nextion, 4-Channel Relay, YF-S201 Water Flow Meter, UHF RFID FM-505, WS2815 LED Strip, and OUT+ of Buck converter.
- GND: Connected to GND of Nextion, 4-Channel Relay, YF-S201 Water Flow Meter, UHF RFID FM-505, WS2815 LED Strip, and OUT- of Buck converter.
- D0/RX: Connected to RX of Nextion.
- D1/TX: Connected to TX of Nextion.
- D2: Connected to TX of UHF RFID FM-505.
- D3: Connected to RX of UHF RFID FM-505.
- D4: Connected to Black Keypad 4*4.
- D5: Connected to Black Keypad 4*4.
- D6: Connected to SIG of YF-S201 Water Flow Meter.
- D7: Connected to IN1 of 4-Channel Relay.
- D8: Connected to IN2 of 4-Channel Relay.
- D9: Connected to IN3 of 4-Channel Relay.
- D10: Connected to IN4 of 4-Channel Relay.
- D11: Connected to SIG of YF-S201 Water Flow Meter.
- D12: Connected to EN of UHF RFID FM-505.
- D13: Connected to B0 and D0 of WS2815 LED Strip.
- A0: Connected to Black Keypad 4*4.
- A1: Connected to Black Keypad 4*4.
- A2: Connected to Black Keypad 4*4.
- A3: Connected to Black Keypad 4*4.
- A4: Connected to Black Keypad 4*4.
- A5: Connected to Black Keypad 4*4.
1N4007 Rectifier Diode
- Cathode: Connected to NO of 4-Channel Relay.
- Anode: Connected to - of AC source and N of SMPS.
AC Source
- +: Connected to COM of 4-Channel Relay.
- -: Connected to Anode of 1N4007 Rectifier Diode and - of Water Pump.
Black Keypad 4*4
- Pins: Connected to D4, D5, A0, A1, A2, A3, A4, and A5 of Arduino UNO R4 WiFi.
Buck Converter
- IN+: Connected to +DC of SMPS.
- IN-: Connected to -DC of SMPS.
- OUT+: Connected to Vcc of Nextion, 4-Channel Relay, YF-S201 Water Flow Meter, UHF RFID FM-505, WS2815 LED Strip, and VIN of Arduino UNO R4 WiFi.
- OUT-: Connected to GND of Nextion, 4-Channel Relay, YF-S201 Water Flow Meter, UHF RFID FM-505, WS2815 LED Strip, and GND of Arduino UNO R4 WiFi.
Wire Connector
- +: Connected to Anode of 1N4007 Rectifier Diode and - of Water Pump.
- -: Connected to Anode of 1N4007