Arduino UNO R4 WiFi-Based Environmental Monitoring System with Solar Power
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that integrates various sensors and modules with an Arduino UNO R4 WiFi microcontroller. The circuit is designed to collect environmental data using sensors such as the BME/BMP280, GPS NEO 6M, ph4502c, Turbidity Sensor, TDS Sensor 2, and MPU6050. Additionally, it includes a solar power management system using a Solar Panel, CN3065 Solar Charge controller, Lipo Battery, and MT3608 voltage booster. The ESP32 CAM module is also included for capturing images or video.
Component List
Arduino UNO R4 WiFi
- 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
- Description: Microcontroller board with WiFi capability.
BME/BMP280
- Pins: GND, SCL, SDA, VIN
- Description: Environmental sensor for temperature, humidity, and pressure.
GPS NEO 6M
- Pins: VCC, RX, TX, GND
- Description: GPS module for location tracking.
ph4502c
- Pins: VCC, G1, G2, Po, Do, To
- Description: pH sensor for measuring the acidity or alkalinity of a solution.
Turbidity Sensor
- Pins: OUT, VCC, GND
- Description: Sensor for measuring the turbidity (cloudiness) of water.
TDS Sensor 2
- Pins: AIn, GND, 5V
- Description: Total Dissolved Solids (TDS) sensor for measuring water quality.
MPU6050
- Pins: vcc, gnd, scl, sda, xda, xcl, AD0, int, 3.3v
- Description: Accelerometer and gyroscope sensor.
Solar Panel
- Pins: +, -
- Description: Solar panel for generating electrical power.
CN3065 Solar Charge
- Pins: SOLAR +, SOLAR -, BAT +, SYS -, SYS +, BAT -
- Description: Solar charge controller for managing power from the solar panel to the battery.
Lipo Battery
- Pins: VCC, GND
- Description: Lithium polymer battery for energy storage.
MT3608
- Pins: VOUT+, VIN+, VOUT-, VIN-
- Description: DC-DC step-up voltage booster.
2.1mm Barrel Jack with Terminal Block
- Pins: POS, NEG
- Description: Power connector for external power supply.
ESP32 CAM
- Pins: 5V, GND, GPIO12, GPIO13, GPIO15, GPIO14, GPIO2, GPIO4, 3.3V, GPIO16, GPIO0, 3.3V / 5V / P_OUT, GPIO3 / RX, GPIO1 / TX
- Description: Camera module with WiFi capability.
Wiring Details
Arduino UNO R4 WiFi
5V connected to:
- ph4502c (VCC)
- TDS Sensor 2 (5V)
- Turbidity Sensor (VCC)
- GPS NEO 6M (VCC)
- MPU6050 (vcc)
- BME/BMP280 (VIN)
- ESP32 CAM (5V)
GND connected to:
- ph4502c (G1)
- TDS Sensor 2 (GND)
- Turbidity Sensor (GND)
- MPU6050 (gnd)
- BME/BMP280 (GND)
- GPS NEO 6M (GND)
- ESP32 CAM (GND)
A0 connected to:
- TDS Sensor 2 (AIn)
A1 connected to:
- Turbidity Sensor (OUT)
A2 connected to:
- ph4502c (Po)
A4 connected to:
- MPU6050 (sda)
A5 connected to:
- MPU6050 (scl)
D0/RX connected to:
- GPS NEO 6M (TX)
D1/TX connected to:
- GPS NEO 6M (RX)
SDA connected to:
- BME/BMP280 (SDA)
SCL connected to:
- BME/BMP280 (SCL)
BME/BMP280
VIN connected to:
- Arduino UNO R4 WiFi (5V)
GND connected to:
- Arduino UNO R4 WiFi (GND)
SDA connected to:
- Arduino UNO R4 WiFi (SDA)
SCL connected to:
- Arduino UNO R4 WiFi (SCL)
GPS NEO 6M
VCC connected to:
- Arduino UNO R4 WiFi (5V)
GND connected to:
- Arduino UNO R4 WiFi (GND)
TX connected to:
- Arduino UNO R4 WiFi (D0/RX)
RX connected to:
- Arduino UNO R4 WiFi (D1/TX)
ph4502c
VCC connected to:
- Arduino UNO R4 WiFi (5V)
G1 connected to:
- Arduino UNO R4 WiFi (GND)
Po connected to:
- Arduino UNO R4 WiFi (A2)
Turbidity Sensor
VCC connected to:
- Arduino UNO R4 WiFi (5V)
GND connected to:
- Arduino UNO R4 WiFi (GND)
OUT connected to:
- Arduino UNO R4 WiFi (A1)
TDS Sensor 2
5V connected to:
- Arduino UNO R4 WiFi (5V)
GND connected to:
- Arduino UNO R4 WiFi (GND)
AIn connected to:
- Arduino UNO R4 WiFi (A0)
MPU6050
vcc connected to:
- Arduino UNO R4 WiFi (5V)
gnd connected to:
- Arduino UNO R4 WiFi (GND)
sda connected to:
- Arduino UNO R4 WiFi (A4)
scl connected to:
- Arduino UNO R4 WiFi (A5)
Solar Panel
+ connected to:
- CN3065 Solar Charge (SOLAR +)
- connected to:
- CN3065 Solar Charge (SOLAR -)
CN3065 Solar Charge
SOLAR + connected to:
- Solar Panel (+)
SOLAR - connected to:
- Solar Panel (-)
BAT + connected to:
- Lipo Battery (VCC)
BAT - connected to:
- Lipo Battery (GND)
SYS + connected to:
- MT3608 (VIN+)
SYS - connected to:
- MT3608 (VIN-)
Lipo Battery
VCC connected to:
- CN3065 Solar Charge (BAT +)
GND connected to:
- CN3065 Solar Charge (BAT -)
MT3608
VIN+ connected to:
- CN3065 Solar Charge (SYS +)
VIN- connected to:
- CN3065 Solar Charge (SYS -)
VOUT+ connected to:
- 2.1mm Barrel Jack with Terminal Block (POS)
VOUT- connected to:
- 2.1mm Barrel Jack with Terminal Block (NEG)
2.1mm Barrel Jack with Terminal Block
POS connected to:
- MT3608 (VOUT+)
NEG connected to:
- MT3608 (VOUT-)
ESP32 CAM
5V connected to:
- Arduino UNO R4 WiFi (5V)
GND connected to:
- Arduino UNO R4 WiFi (GND)
Documented Code
Arduino UNO R4 WiFi Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This concludes the documentation for the circuit. Each component is described, and