Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Local Flood Potential Warning System (LFPWS)

This repository is an archive of the LFPWS school project developed as a graduation requirement for Class IX at Junior High School (10 August 2025 – 15 October 2025).

The system reads water levels using a sensor and indicates flood potential through a Traffic Light LED module and LCD display, triggering a 120 dB siren/alarm during critical levels.

LFPWS Assembled Device

Hardware Components

Arduino Uno R3

Arduino Uno R3

Central microcontroller that processes the sensor data and controls output components.

Water Level Sensor

Water Level Sensor

Submersible sensor that measures water height to detect rising floodwaters.

Traffic Light LED Module

Traffic Light LED Module

Tri-color indicator (Green for Aman/Safe, Yellow for Siaga/Warning, Red for Bahaya/Danger).

16x2 LCD with I2C Interface

16x2 LCD with I2C

Displays real-time water percentage and status messages.

12V External Siren

12V External Siren

Sounds a 120 dB alarm when the water level reaches critical threshold.

Relay Module

Relay Module

Acts as an electronic switch to safely control the high-power 12V siren using low-voltage Arduino signals.

18650 Batteries

18650 Batteries

High-capacity rechargeable cells that supply stable power (using 3 cells in total).

Battery Holders (Tempat Baterai)

Battery Holders

Powers the Arduino (using a 2x cell series pack via DC Jack) and the external siren (using a 1x cell pack).

Assembly Tools & Materials

USB Type-A to B Cable

USB Cable

Used to connect the laptop to the Arduino.

Binder Clips

Binder Clips

Used for organizing and mounting components.

Double-sided Tape

Double Tape

Used for securing components in place.

Screwdriver

Screwdriver

Used for securing wired connections.

Thinwall Plastic Container

Plastic container used as the device enclosure.

Jumper Wires

Jumper Wires

Male-to-female jumper wires for electrical connections.

Wiring Configuration

  • Water Level Sensor:
    • Output pin -> Analog A0 on Arduino
  • Traffic Light LED Module:
    • Red LED -> Digital 4
    • Yellow LED -> Digital 3
    • Green LED -> Digital 2
  • 16x2 LCD (I2C):
    • SDA -> Analog A4
    • SCL -> Analog A5
  • Relay Module (for Siren):
    • Control pin -> Digital 7
    • COM -> Battery (+)
    • NO -> Siren (+)
    • Siren (-) -> Battery (-)

Threshold Levels

  • Aman (Safe): Sensor value < 341. Green LED stays on, LCD prints Status: AMAN.
  • Siaga (Warning): Sensor value 341 - 649. Yellow LED blinks every 500ms, LCD prints Status: SIAGA.
  • Bahaya (Danger): Sensor value >= 650. Red LED blinks every 250ms, LCD prints Status: BAHAYA, and the 12V siren runs for 3 seconds once.

Installation & Upload

  1. Open the lfpws.ino sketch in Arduino IDE.
  2. Install the LiquidCrystal_I2C and Wire libraries if not present.
  3. Select board Arduino Uno and your corresponding port.
  4. Upload code to your board.

About

Archive of the LFPWS (Local Flood Potential Warning System) school project

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages