Step 1: Mounting WisBlock Parts
Assemble the RAK4631 WisBlock Core onto the RAK19003 WisBlock Base Board. Connect the RAK12005 water level sensor and the RAK1906 environmental sensor (positioned to measure water temperature, if possible, or ambient temperature above water). Attach the RAK1921 power module.
Step 2: Link to PC (via USB Cable)
Connect the assembled WisBlock unit (via the RAK4631) to your PC using a standard USB cable.
Step 3: Setup Arduino IDE and Load Files
Configure Arduino IDE for the RAK4631. Install libraries for the RAK12005 water level sensor and the RAK1906 (BME680). Load the Arduino sketch designed to read water level and temperature data.
Step 4: Upload the Code
Select RAK4631 Board and the correct COM port. Upload the code to your WisBlock device. After successful upload, open the Serial Monitor (set Baud rate to 15200) to observe water level and temperature readings. The device will periodically send this data via LoRaWAN to your RAK7268V2 gateway. TheThingsNetwork will then forward this data to ThingSpeak. ThingSpeak will allow you to visualize these parameters and configure alerts if water levels become too low/high or temperatures deviate from optimal ranges, crucial for aquaculture and pond management.
Explanation: The code initializes the RAK4631, the RAK12005 water level sensor, and the RAK1906 environmental sensor. It continuously monitors the water level of the pond/aquaculture tank and the water temperature (or ambient temperature as an indicator). This data is transmitted via LoRaWAN to TheThingsNetwork. From TheThingsNetwork, the data is pushed to ThingSpeak for real-time visualization and historical logging. ThingSpeak is configured to trigger alerts (e.g., email notifications) if the water level drops below a critical point (requiring refill), rises too high (potential overflow), or if the temperature falls outside the optimal range for aquatic life, ensuring the health of the ecosystem and preventing costly losses.
Comments