End Device Ghorilard consists code, architecture, workflow of Ghorilard Project
-
For Frontend of Ghorilard Project, Github Link: https://github.com/ghofaralhasyim/ghorilard-pwa
-
For Backend of Ghorilard Project, Github Link: https://github.com/RichardAlvin/be-ghorilard
-
For Simulation and Description of Ghorilard Project, Youtube Link: https://youtu.be/ViWVCJh-_Is
Figure 2. Node MCU - ESP8266
Node MCU ESP8266 is a microcontroller for wireless communication to the internet gateway and control the input of both sensors (PH sensor and Temperature Sensor)
Figure 2. Node MCU - ESP8266
DS18B20 is Temperature sensor module to measure the temperature of the water which may be directly proportional to the oxygen level in the aquaculture pond.
Figure 3. DS18B20 Temperature Sensor Module
PH-4502C is PH sensor module to measure the PH of the culture pond.
Figure 4. PH-4502C PH sensor Module
StepUp MT3608 is stepUp module to increase the voltage and also stabilize the voltage. In the Ghorilard project, it is used to increase and stabilize voltage to 5V.
Figure 4. StepUp MT3608 Module
TP4056A a charging module that will charge power from the solar cells to the battery and also supply power to the stepUp module. Equipped with an IC that protects the overvoltage.
Figure 4. TP4056A Charging Module
- Device will turn on and start to get a sensor value
- The power source of the device comes from sunlight that will convert to power by solar cell
- TP4056A module will charge power to the battery 18650 and also give power to stepUp module
- StepUp module will step up voltage to 5V and give voltage to NodeMCU
- NodeMCU will give 3.3V to two sensor
- This product will sense water per 30 minutes
- The sense value of sensor will send by wifi router to the backend dan will store to the database
- Frontend give a UI/UX to user so user can see the water quality of their prawn cultivation in real-time
Figure 4. Ghorilard Software Module
Software Module on Ghorilard Project is divided in 4 module:
- Main Module
- This is the main module consists void setup() and void loop()
- void setup() consists initiate library and variabel
- void loop() consists tryConnectWifi() module, getSensor() module, sendAPI() module, and the other syntax to support our program
- tryConnectWifi()
- check status of Wifi, if connected will return and go to the next step. Otherwise will delay 500mikrosecond and try to connect again
- getSensor()
- read the ph sensor and temperature sensor and strore to the array
- Calculate that value and return
- sendAPI()
- Check wifi connection
- Send HTTP Post (Token, PH, Water_Temperature)
Ghorilard Product has already design product that can be seen in the picture above. We made our design by 3D print that provide by our univesity (Universitas Multimedia Nusantara). We also use TinkerCad to make our design. there is one drawback in our design that is not able to float.