Arduino and ESP8266 Solar-Powered Water Monitoring and Control System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit designed to manage a solar-powered water pump system. The circuit includes various sensors, a relay module, a microcontroller, and a solar charge controller. The system is designed to monitor water flow, pH levels, and water levels, and to control a water pump based on these parameters.
Component List
Arduino 101
- Description: A microcontroller board based on the Intel Curie module.
- Pins: A5/SCL, A4/SDA, AREF, GND, D13/SCK, D12/MISO, D11 PWM/MOSI, D10 PWM/SS, D9 PWM, D8, D7, D6 PWM, D5 PWM, D4, D3 PWM, D2, D1/TX, D0/RX, AIN, ioref, RESET, 3V3, 5V, VIN, A0, A1, A2, A3, ICSP MISO, ICSP SCK, ICSP MOSI
ESP8266
- Description: A low-cost Wi-Fi microchip with full TCP/IP stack and microcontroller capability.
- Pins: 3V, G, D8, D7, D6, D5, D4, D3, D2, D1, D0, A0, S3, S2, S1, SC, S0, SK, EN, VIN, RST, VU
Solar Panel
- Description: A device that converts sunlight into electrical energy.
- Pins: +, -
NPN Transistor (EBC)
- Description: A type of bipolar junction transistor used for switching and amplification.
- Pins: emitter, base, collector
2 Channel Relay Module
- Description: A module with two relays for controlling high voltage devices.
- Pins: N.O. 2, COM 2, N.C. 2, N.O. 1, COM 1, N.C. 1, pin 7, pin 8, pin 9, pin 10, pin 11, pin 12, VCC+, VCC- (GND), IN 1, IN 2
Li-ion 18650 Battery
- Description: A rechargeable lithium-ion battery.
- Pins: -, +
Resistor (200 Ohms)
- Description: A passive electrical component that provides resistance to the flow of current.
- Pins: pin1, pin2
YF-S201 Water Flow Meter
- Description: A sensor used to measure the flow rate of water.
- Pins: SIG, GND, VCC
Water Pump
- Description: A device used to move water.
- Pins: positive, negative
Solar Charge Controller
- Description: A device that manages the power going into the battery bank from the solar array.
- Pins: Solar Cell +, Solar Cell -, Battery +, Battery -, Load +, Load -
pH Degree Sensor Module
- Description: A sensor module used to measure the pH level of a solution.
- Pins: pH Negative, pH Positive, pH A
AD8232 Gravity Sensor
- Description: A sensor used for measuring heart rate.
- Pins: GND, Analog Out, VCC
HC-SR04 Ultrasonic Sensor
- Description: A sensor used for measuring distance using ultrasonic waves.
- Pins: VCC, TRIG, ECHO, GND
Wiring Details
Arduino 101
- 5V: Connected to VCC of YF-S201 Water Flow Meter, pH Positive of pH Degree Sensor Module, Battery + of Solar Charge Controller, N.O. 2 and COM 2 of 2 Channel Relay Module, positive of Water Pump, + of Li-ion 18650 Battery, and VCC of HC-SR04 Ultrasonic Sensor.
- GND: Connected to GND of YF-S201 Water Flow Meter, pH Negative of pH Degree Sensor Module, Battery - of Solar Charge Controller, negative of Water Pump, - of Li-ion 18650 Battery, and GND of HC-SR04 Ultrasonic Sensor.
- D9 PWM: Connected to IN 2 of 2 Channel Relay Module.
- D8: Connected to IN 1 of 2 Channel Relay Module.
- D4: Connected to ECHO of HC-SR04 Ultrasonic Sensor.
- D3 PWM: Connected to TRIG of HC-SR04 Ultrasonic Sensor.
- D2: Connected to SIG of YF-S201 Water Flow Meter.
- A1: Connected to pH A of pH Degree Sensor Module.
ESP8266
- No connections specified in the net list.
Solar Panel
- +: Connected to Solar Cell + of Solar Charge Controller.
- -: Connected to Solar Cell - of Solar Charge Controller.
NPN Transistor (EBC)
- No connections specified in the net list.
2 Channel Relay Module
- N.O. 2: Connected to 5V of Arduino 101.
- COM 2: Connected to 5V of Arduino 101.
- IN 2: Connected to D9 PWM of Arduino 101.
- IN 1: Connected to D8 of Arduino 101.
Li-ion 18650 Battery
- +: Connected to 5V of Arduino 101.
- -: Connected to GND of Arduino 101.
Resistor (200 Ohms)
- No connections specified in the net list.
YF-S201 Water Flow Meter
- VCC: Connected to 5V of Arduino 101.
- GND: Connected to GND of Arduino 101.
- SIG: Connected to D2 of Arduino 101.
Water Pump
- positive: Connected to 5V of Arduino 101.
- negative: Connected to GND of Arduino 101.
Solar Charge Controller
- Battery +: Connected to 5V of Arduino 101.
- Battery -: Connected to GND of Arduino 101.
- Solar Cell +: Connected to + of Solar Panel.
- Solar Cell -: Connected to - of Solar Panel.
pH Degree Sensor Module
- pH Positive: Connected to 5V of Arduino 101.
- pH Negative: Connected to GND of Arduino 101.
- pH A: Connected to A1 of Arduino 101.
AD8232 Gravity Sensor
- No connections specified in the net list.
HC-SR04 Ultrasonic Sensor
- VCC: Connected to 5V of Arduino 101.
- GND: Connected to GND of Arduino 101.
- ECHO: Connected to D4 of Arduino 101.
- TRIG: Connected to D3 PWM of Arduino 101.
Code
No code provided for this circuit.
This document provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and code documentation. Each component is described, and its connections are detailed to ensure proper assembly and functionality of the circuit.