Circuit Documentation
Summary
This document provides a detailed overview of a circuit designed to interface various sensors with an ESP32 microcontroller. The circuit includes a temperature sensor, pH meter, dissolved oxygen sensor, turbidity sensor, and a GPS module. The ESP32 microcontroller collects data from these sensors and processes it accordingly.
Component List
Temperature Sensor
- Component Name: Temperature Sensor
- Pins: Temp GND Black, Temp VDD Red, Temp DQ Data Yellow
- Description: Measures temperature.
- Purpose in Circuit: Provides temperature data to the ESP32.
PH Meter
- Component Name: PH Meter
- Pins: Signal, VCC, GND
- Description: Measures pH levels.
- Purpose in Circuit: Provides pH data to the ESP32.
Dissolved Oxygen Sensor
- Component Name: Dissolved Oxygen Sensor
- Pins: ground, vcc, a
- Description: Measures dissolved oxygen levels.
- Purpose in Circuit: Provides dissolved oxygen data to the ESP32.
ESP32 (30 pin)
- Component Name: ESP32 (30 pin)
- Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, Vin, D23, D22, TX0, RX0, D21, D19, D18, D5, TX2, RX2, D4, D2, D15, 3V3
- Description: Microcontroller with Wi-Fi and Bluetooth capabilities.
- Purpose in Circuit: Central processing unit that collects data from all sensors and processes it.
DFRobot Gravity Analog Turbidity Sensor
- Component Name: DFRobot Gravity Analog Turbidity Sensor
- Pins: VCC, GND, SIG
- Description: Measures water turbidity.
- Purpose in Circuit: Provides turbidity data to the ESP32.
ATGM336H
- Component Name: ATGM336H
- Pins: VCC, GND, TX, RX, PPS
- Description: GPS module.
- Purpose in Circuit: Provides GPS data to the ESP32.
Wiring Details
Temperature Sensor
- Temp GND Black: Connected to GND (ESP32)
- Temp VDD Red: Connected to Vin (ESP32)
- Temp DQ Data Yellow: Connected to VP (ESP32)
PH Meter
- GND: Connected to GND (ESP32)
- VCC: Connected to Vin (ESP32)
- Signal: Connected to D21 (ESP32)
Dissolved Oxygen Sensor
- ground: Connected to GND (ESP32)
- vcc: Connected to Vin (ESP32)
- a: Connected to VN (ESP32)
ESP32 (30 pin)
- GND: Connected to GND (Temperature Sensor, PH Meter, Dissolved Oxygen Sensor, Turbidity Sensor, ATGM336H)
- Vin: Connected to VCC (Temperature Sensor, PH Meter, Dissolved Oxygen Sensor, Turbidity Sensor, ATGM336H)
- VP: Connected to Temp DQ Data Yellow (Temperature Sensor)
- VN: Connected to SIG (Turbidity Sensor), a (Dissolved Oxygen Sensor)
- D21: Connected to Signal (PH Meter)
- D23: Connected to TX (ATGM336H)
- D22: Connected to RX (ATGM336H)
DFRobot Gravity Analog Turbidity Sensor
- GND: Connected to GND (ESP32)
- VCC: Connected to Vin (ESP32)
- SIG: Connected to VN (ESP32)
ATGM336H
- GND: Connected to GND (ESP32)
- VCC: Connected to Vin (ESP32)
- TX: Connected to D23 (ESP32)
- RX: Connected to D22 (ESP32)
Documented Code
sketch.ino
void setup() {
}
void loop() {
}
documentation.txt