Gingerbread

BLE Gateway, Node-RED, and ESP8266

By ,

This project utilizes a BLE-MQTT gateway to collect bluetooth sensor data and pipe it to perform actions on a wifi connected ESP8266 gingerbread house, as well as utilize Node-RED for additional connectivity (text messages, tweets).  The code can be found on my Github.

 

https://www.youtube.com/watch?v=5QengjRO6EM

 

 

Materials

Materials

System Diagram

 

  1. (Inputs) BLE Sensor This is a Bluetooth Low Energy (BLE) module from Silicon Labs (BGM111). I mounted a magnetic reed switch to sense if the door is opened or closed. When there’s door activity, this sensor sends the new door position to the gateway.  It’s also used as a water sensor.
  2. (Outputs) ESP8266-Powered Gingerbread House: I’m using an ESP8266 WiFi module to control the gingerbread house LEDs and front door servo motor. The ESP8266 gets door positions and LED colors by subscribing to MQTT topics.
  3. BLE-MQTT Gateway: A BLE module to capture the sensor data and a Raspberry Pi to publish the sensor data to MQTT.
Diagram

Diagram

 

 

 

 

 

 

 

 

Node-RED Flow

Node-RED Flow