Step 1: Mounting WisBlock Parts
Assemble the RAK4631 WisBlock Core onto the RAK19003 WisBlock Base Board. Connect the RAK1906 environmental sensor. Attach the RAK1921 power module. Integrate the RAK13009 relay module, connecting it to the motor/actuator responsible for opening/closing windows or controlling a ventilation fan.
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 the Adafruit BME680 library for the RAK1906. Load the Arduino sketch that reads environmental data and listens for commands to control the relay.
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 temperature, humidity, and gas readings. The device will send this data via LoRaWAN to your RAK7268V2 gateway. TheThingsNetwork will forward this data to Node-RED. Node-RED will implement logic: if VOC/Gas levels or humidity are too high, it sends a command back to the device to activate the relay, opening windows or turning on the fan. This ensures optimal indoor air quality and comfort, reducing the need for continuous HVAC operation.
Explanation: The code initializes the RAK4631, the RAK1906 environmental sensor, and the RAK13009 relay module. It continuously monitors indoor air quality (VOC/Gas levels), temperature, and humidity. This data is transmitted via LoRaWAN to TheThingsNetwork. Node-RED is configured to subscribe to this data. A flow in Node-RED evaluates the incoming sensor data. For instance, if VOC levels exceed a comfortable threshold or humidity is too high, Node-RED sends a control command (via TheThingsNetwork downlink) back to the device. Upon receiving this command, the RAK13009 relay activates, opening automated windows or turning on a ventilation fan to improve air circulation and reduce pollutant concentrations, leading to a healthier indoor environment and potential energy savings from reduced reliance on full HVAC systems.








_M6kErcYJ84.png?auto=compress%2Cformat&w=40&h=40&fit=fillmax&bg=fff&dpr=2)


Comments