Arduino Mega 2560 Smart Hydroponics System with Wi-Fi and Bluetooth Control
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that integrates various components including an Arduino Mega 2560, an ESP8266 WiFi module, an HC-05 Bluetooth module, a 16x2 LCD display, a 4-channel relay, a DHT22 temperature and humidity sensor, a DS18B20 temperature sensor, a pH meter, LED light strips, and a water pump. The circuit is powered by a 12V 5A power supply and includes several resistors for proper operation. The Arduino Mega 2560 serves as the central microcontroller, interfacing with all other components.
Component List
LCD 16x2 (Wokwi Compatible)
- Pins: VSS, VDD, V0, RS, RW, E, D0, D1, D2, D3, D4, D5, D6, D7, A, K
- Description: A 16x2 character LCD display.
- Purpose: Display information.
Arduino Mega 2560
- Pins: IOREF, RESET, 3V3, 5V, GND, VIN, A0-A15, D0-D53, AREF, SDA, SCL
- Description: A microcontroller board based on the ATmega2560.
- Purpose: Central control unit.
ESP8266 ESP-12E WiFi Module
- Pins: GND, GPIO_15, GPIO_2, GPIO_0, GPIO_4, GPIO_5, RXD, TXD, REST, ADC_0, CH_PD, GPIO_16, GPIO_14, GPIO_12, GPIO_13, VCC, SCLK, MOSI, GPIO_10, GPIO_9, MISO, CS0
- Description: A WiFi module.
- Purpose: Wireless communication.
Relay 4 Channel 5V
- Pins: GND, IN1, IN2, IN3, IN4, VCC, COM1, COM2, COM3, COM4, NO1, NO2, NO3, NO4, NC1, NC2, NC3, NC4
- Description: A 4-channel relay module.
- Purpose: Control high voltage devices.
POWER SUPPLY 12V 5AMP
- Pins: 220V Positive Pole (AC), 220V Negative Pole (AC), GND, GND (DC), 12V-24V Output (DC)
- Description: A 12V 5A power supply.
- Purpose: Power the circuit.
LED Light Strips (Violet)
- Pins: VCC, GND
- Description: Violet LED light strips.
- Purpose: Provide lighting.
Water Pump
- Pins: VCC, GND
- Description: A water pump.
- Purpose: Pump water.
HC-05 Bluetooth Module
- Pins: Key, VCC, TXD, RXD, State, GND
- Description: A Bluetooth module.
- Purpose: Bluetooth communication.
DHT22
- Pins: +, Out, -
- Description: A temperature and humidity sensor.
- Purpose: Measure temperature and humidity.
DS18B20
- Pins: signal, GND, vcc
- Description: A temperature sensor.
- Purpose: Measure temperature.
Resistor (4700 Ohms)
- Pins: pin1, pin2
- Description: A 4700 Ohm resistor.
- Purpose: Limit current.
Resistor (120 Ohms)
- Pins: pin1, pin2
- Description: A 120 Ohm resistor.
- Purpose: Limit current.
Resistor (1000 Ohms)
- Pins: pin1, pin2
- Description: A 1000 Ohm resistor.
- Purpose: Limit current.
PH Meter
- Pins: Signal, VCC, GND
- Description: A pH meter.
- Purpose: Measure pH levels.
Wiring Details
LCD 16x2 (Wokwi Compatible)
- VSS to Arduino Mega 2560 GND
- VDD to Arduino Mega 2560 5V
- V0 to Resistor (1000 Ohms) pin1
- RS to Arduino Mega 2560 D51
- RW to Resistor (120 Ohms) pin2
- E to Arduino Mega 2560 D53
- D4 to Arduino Mega 2560 D39
- D5 to Arduino Mega 2560 D37
- D6 to Arduino Mega 2560 D35
- D7 to Arduino Mega 2560 D33
Arduino Mega 2560
- 5V to LCD 16x2 VDD, DS18B20 vcc, Relay 4 Channel 5V VCC, ESP8266 VCC, HC-05 VCC, DHT22 +, PH Meter VCC
- GND to ESP8266 GND, PH Meter GND, HC-05 GND, DHT22 -, DS18B20 GND, Relay 4 Channel 5V GND, LCD 16x2 VSS
- A0 to PH Meter Signal
- D15/RX3 to HC-05 RXD
- D14/TX3 to HC-05 TXD
- D0 RX0 to ESP8266 RXD
- D1 TX0 to ESP8266 TXD
- D2 PWM to DHT22 Out via Resistor (4700 Ohms) pin1
- D3 PWM to DS18B20 signal via Resistor (4700 Ohms) pin1
- D6 PWM to Relay 4 Channel 5V IN2
- D7 PWM to Relay 4 Channel 5V IN1
ESP8266 ESP-12E WiFi Module
- VCC to Arduino Mega 2560 5V
- GND to Arduino Mega 2560 GND
- RXD to Arduino Mega 2560 D0 RX0
- TXD to Arduino Mega 2560 D1 TX0
Relay 4 Channel 5V
- VCC to Arduino Mega 2560 5V
- GND to Arduino Mega 2560 GND
- IN1 to Arduino Mega 2560 D7 PWM
- IN2 to Arduino Mega 2560 D6 PWM
- COM1 to POWER SUPPLY 12V 5AMP 12V-24V Output (DC)
- COM2 to POWER SUPPLY 12V 5AMP 12V-24V Output (DC)
- NO1 to Water Pump VCC
- NO2 to LED Light Strips (Violet) VCC
POWER SUPPLY 12V 5AMP
- 12V-24V Output (DC) to Relay 4 Channel 5V COM1, COM2
- GND (DC) to LED Light Strips (Violet) GND, Water Pump GND
LED Light Strips (Violet)
- VCC to Relay 4 Channel 5V NO2
- GND to POWER SUPPLY 12V 5AMP GND (DC)
Water Pump
- VCC to Relay 4 Channel 5V NO1
- GND to POWER SUPPLY 12V 5AMP GND (DC)
HC-05 Bluetooth Module
- VCC to Arduino Mega 2560 5V
- GND to Arduino Mega 2560 GND
- RXD to Arduino Mega 2560 D15/RX3
- TXD to Arduino Mega 2560 D14/TX3
DHT22
- + to Arduino Mega 2560 5V
- Out to Arduino Mega 2560 D2 PWM via Resistor (4700 Ohms) pin1
- - to Arduino Mega 2560 GND
DS18B20
- vcc to Arduino Mega 2560 5V
- signal to Arduino Mega 2560 D3 PWM via Resistor (4700 Ohms) pin1
- GND to Arduino Mega 2560 GND
PH Meter
- VCC to Arduino Mega 2560 5V
- Signal to Arduino Mega 2560 A0
- GND to Arduino Mega 2560 GND
Resistor (4700 Ohms)
- pin1 to DHT22 Out, DS18B20 signal
- pin2 to Arduino Mega 2560