Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino Mega 2560-Based Water Level Monitoring System with LED Indicators and LCD Display

View and Edit Project In Cirkit DesignerImage of Arduino Mega 2560-Based Water Level Monitoring System with LED Indicators and LCD Display

Circuit Documentation

Summary

This circuit involves an Arduino Mega 2560 microcontroller interfacing with various components including a DS1307 RTC, an LCD display, a water level sensor, multiple LEDs, resistors, and a rotary potentiometer. The circuit is designed to read water levels, display information on an LCD, and indicate statuses using LEDs.

Component List

  1. Arduino Mega 2560

    • Description: A microcontroller board based on the ATmega2560.
    • Pins: IOREF, RESET, 3V3, 5V, GND, VIN, A0-A15, D0-D53, PWM pins, AREF, SDA, SCL.
  2. Water Level Sensor

    • Description: A sensor to measure the water level.
    • Pins: SIG, VCC, GND.
  3. LED: Two Pin (red)

    • Description: A red LED.
    • Pins: Cathode, Anode.
  4. LED: Two Pin (green)

    • Description: A green LED.
    • Pins: Cathode, Anode.
  5. LED: Two Pin (blue)

    • Description: A blue LED.
    • Pins: Cathode, Anode.
  6. LED: Two Pin (yellow)

    • Description: A yellow LED.
    • Pins: Cathode, Anode.
  7. Resistor (200 Ohms)

    • Description: A resistor with a resistance of 200 Ohms.
    • Pins: Pin1, Pin2.
  8. DS1307 RTC (Wokwi Compatible)

    • Description: A real-time clock module.
    • Pins: GND, 5V, SDA, SCL, SQW.
  9. LCD Display (16 pin)

    • Description: A 16-pin LCD display.
    • Pins: VSS, VDD, VO, RS, R_W, E, DB0-DB7, A, K.
  10. Rotary Potentiometer (10k Ohms)

    • Description: A rotary potentiometer with a resistance of 10k Ohms.
    • Pins: Leg1, Wiper, Leg2.

Wiring Details

Arduino Mega 2560

DS1307 RTC (Wokwi Compatible)

Water Level Sensor

LED: Two Pin (red)

LED: Two Pin (green)

LED: Two Pin (blue)

LED: Two Pin (yellow)

Resistor (200 Ohms)

LCD Display (16 pin)

Rotary Potentiometer (10k Ohms)

Documented Code

Arduino Mega 2560 Code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

This code is a basic template for the Arduino Mega 2560. The setup() function is used to initialize any settings or configurations, and the loop() function contains the main code that runs repeatedly.