Skip to content

This project is around the FiPy module from Pycom which comes with ESP32 controller and supports 5 network communication protocol support on a single board. The protocols include LoRa/Sigfox/LTE CAT M1/Bluetooth and Wi-Fi. There are radios available for LoRa and LTE whereas the ESp32 itself supports Wi-Fi and Bluetooth. Pycom supports programmin…

Notifications You must be signed in to change notification settings

oksbwn/FiPy-LoraWAN-TTN-DHT12-Project

Repository files navigation

FiPy LoRaWAN TTN DHT12 Project

DHT12 and FiPy Connection Daigram,

Image

The data flow from the DHT12 senor to the ThingSPeak charts looks like,

Image

The JS code used in TTN decoder function is,

function Decoder(bytes, port) {
    var decoded = {};
    if (bytes[0] + bytes[1] + bytes[2] + bytes[3] == bytes[4]) {
        var humidity = bytes[0] + bytes[1] / 10;
        var scaleValue = bytes[3] & 0xEF;
        var signValue = bytes[3] & 0x80;
        var temperature = bytes[2] + scaleValue / 10

        if (signValue)
            emperature = -temperature

        decoded.field1 = temperature;
        decoded.field2 = humidity;
    }
    return decoded;
}

Relevant Links:

About

This project is around the FiPy module from Pycom which comes with ESP32 controller and supports 5 network communication protocol support on a single board. The protocols include LoRa/Sigfox/LTE CAT M1/Bluetooth and Wi-Fi. There are radios available for LoRa and LTE whereas the ESp32 itself supports Wi-Fi and Bluetooth. Pycom supports programmin…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages