Corals Protector

For our future generations

Github Repository


Corals Protector

Take the measurement

Show the analytics



Sri Lanka is an island. We have many sea resources. One of the main resources is coral reefs. For centuries, coral reefs have been a valuable resource for the people of Sri Lanka. Coral reefs are among the most biologically valuable ecosystems on the globe. Coral reefs rank among the most biologically productive and diverse of all-natural ecosystems. A single reef can be home to 3,000 different species, while one-third of the world’s fish species depend on them.


We do not care about corals. Corals are mostly destroyed nowadays. Corals have certain environmental conditions that they need in order to survive. These factors limit where corals can live. The main factors that can affect the corals are temperature, acidity, salinity, and sunlight. If researchers or well-wishers try to find the destroying places’ environmental factors, they don't have any specific device to do that. So they are facing a lot of problems while taking a reading in that environment. It is also so hard to find a suitable place(with good environmental factors) for new coral growth projects.


Solution is simple. Our device can take all the measurements. such as temperature, pH, and light intensity. and send all the measurements to the database. and our website will show all the measurements and the analytics regarding those measurements.


Solution Architecture

Our solution Architecture contains two types of devices, they are Smart-Bulbs & the Smart-Switchs. They both devices, sensors like motion sensor, AC current sensor, AC voltage sensor and the Rellay are directly connected with the Central Unit. Our mobile application and the central unit connectedto the cloud via internet. So they can communicate with them-self. The central unit will use the MQTT protocol to communicate with the server.

The energy consumption monitoring, this is a feature embeded with all the switches to calculate the energy consumption and update it to the cloud. This is can be implemented using Two sensor AC Current sensor and AC voltage sensor.

Motion Sensing, Motion sensing is another feature built-in with the bulbs, The motion sensors are connected to the central unit. When a motion detected or the central unit wil turn on the bulb and if no motion/human detected the CU will turn off the bulb.

Mobile applications communicate with the central unit through the cloud or diretly using wifi router. The User settings, user data, and the reports will be stored in the cloud/server.


Hardware Model

This our Hardware model of our project. These are the hardware componets we planned to use:



NodeMCU32S is development board which is embeded with the esp32 micro controller which so small but powerfull. It's the perfect controller for our project because it's cheap, it already comes with the wifi module and it has many features.

Feature of the ESP32:

  • 18 Analog to DC converter
  • 3 SPI interfaces
  • 3 UART interfaces
  • 2 I2C interfaces
  • 16 PWM output channels
  • 2 DAC
  • 2 I2S interfaces
  • 10 Capacitive sensing GPIOs
Referense Link
Hardware Model


pH Sensor

A pH sensor is a device that measures the acidity or basicity (alkalinity) of a solution. The pH scale ranges from 0 to 14, with 7 being neutral, less than 7 being acidic, and greater than 7 being basic. pH sensors typically use a glass electrode and a reference electrode to measure the pH of a solution.


LDR Sensor

A Light Dependent Resistor (LDR) sensor is a type of resistor that changes its resistance based on the amount of light that it is exposed to. LDRs are also known as photo resistors or photocells. They are typically made of cadmium sulfide (CdS) and are sensitive to visible light. When the level of light falling on the LDR increases, the resistance of the LDR decreases, and when the light level decreases, the resistance of the LDR increases. LDRs are commonly used in applications such as light level detection, automatic lighting control, and camera light meters. They are also used in burglar alarms, street light control systems, and other similar applications.

  • VCC: 3.3~5V
  • Output: digital or analog
  • need calibration


Template sensor

A temperature sensor is a device that measures the temperature of a physical object or ambient environment. There are several types of temperature sensors, including thermocouples, resistance temperature detectors (RTDs), thermistors, and infrared sensors.

  • Waterproof Digital Sensor
  • VCC: 3V ~ 5V
  • range: -55~+125 C
  • accuracy 0.5V
  • need calibration.



The NEO-6M GPS module is a small, compact module that is designed to receive signals from GPS satellites and provide location information, such as latitude, longitude, and altitude. It is based on the u-blox NEO-6M GPS chip, which is known for its high sensitivity and fast time-to-first-fix. The module typically communicates with the host device (such as a microcontroller or computer) using a serial interface, and can output data in various formats such as NMEA or UBX. It can also output data at different baud rates.


16 x 2 LCD

A 16 x 2 LCD (liquid crystal display) is a type of display device that uses liquid crystals to display text or other information. It consists of a matrix of dots or pixels that can be activated to display various characters or symbols.



Circuit Diagram




Budget of our Project

This is the budget of our project




Team Members


github Linkdin Abilash R  E/18/013


github Linkdin Gowsigan A  E/18/115


github Linkdin Thulasiyan Y  E/18/366



Linkdin Dr. Isuru Nawinne web


Linkdin Dr. Mahanama Wickramasinghe web