Acervo
All projects

IoT & hardware

Bifrost

A hub that lets sensors using different wireless technologies talk to each other and to the server.

How it works

  1. 1Sensor

    An ESP32 measures temperature, humidity or anything else and sends the reading.

  2. 2Gateway

    Receives over ESP-NOW or LoRa, wraps it in the JSON envelope and forwards it over serial.

  3. 3Dispatcher

    On the Raspberry Pi, checks the sender, picks the destination and translates the protocol.

  4. 4Destination

    The message reaches MQTT, the database or another device.

Overview

The problem

Every IoT sensor speaks its own "language": one uses ESP-NOW, another LoRa, another MQTT. Making them work together usually means a separate solution for each.

The solution

Bifrost is a single bridge. Gateways receive messages from each technology and hand them to a Raspberry Pi, which decides where each message goes and translates between protocols.

In detail

Every message travels inside a standard JSON "envelope" (source, destination, protocol, type and payload). The Python Dispatcher keeps a device registry, asks unknown devices to register and reconnects to the MQTT broker on its own. The ESP-NOW and LoRa gateways run on ESP32 and talk to the hub over serial.

Highlights

  • One message envelope for every protocol
  • Dynamic device registry
  • Automatic hub installation script

Tech specs

Technologies
Python, C++, ESP-NOW, LoRa, MQTT, Mosquitto, InfluxDB
Hardware
Raspberry Pi 4B, ESP32, ESP8266, Módulos LoRa
Languages
Python, C++, CSS, HTML, Shell, JavaScript, C
Version
v2.0.0