The Hub 3 - an ESPNow to Wi-Fi / MQTT gateway
Table of Contents
Introduction
This tutorial will guide you through setting up the Hub 3, an ESPNow to Wi-Fi/MQTT gateway, as showcased in the video by MrDIY. This device is ideal for integrating ultra-low power trigger sensors into your home automation system. You'll learn how to configure the Hub 3 and utilize it effectively for your projects.
Step 1: Gather Required Components
Before starting, ensure you have all necessary components:
- Hub 3 unit
- ESP07S modules
- Power supply
- Wi-Fi connection
- Computer for configuration
- Optional: 3D enclosure for the Hub 3 (available as STL file)
Step 2: Purchase the Hub 3
Acquire the Hub 3 from the following link:
Consider also buying ESP07S modules from:
Step 3: Set Up the Environment
Follow these steps to prepare your environment for the Hub 3 configuration:
-
Download the source code for the Hub 3 from GitLab:
-
Install necessary libraries for the code. This may include libraries for ESPNow and MQTT.
Step 4: Configure the Hub 3
- Connect the Hub 3 to your computer via USB.
- Open the source code in your preferred IDE (like Arduino IDE).
- Modify the configuration file to match your Wi-Fi credentials and MQTT settings:
const char* ssid = "your_SSID"; const char* password = "your_PASSWORD"; const char* mqtt_server = "mqtt.example.com";
- Upload the modified code to the Hub 3.
Step 5: Test the Connection
- Power on the Hub 3 and ensure it connects to your Wi-Fi network.
- Use a serial monitor to check connection status and troubleshoot any issues.
- Verify the MQTT broker connection by subscribing to a test topic.
Step 6: Integrate Ultra-Low Power Sensors
- Connect your ultra-low power sensors to the ESP07S modules.
- Ensure proper wiring and power supply.
- Program the sensors to send data to the Hub 3 using ESPNow.
Conclusion
You have successfully set up the Hub 3 as an ESPNow to Wi-Fi/MQTT gateway. This setup allows you to integrate ultra-low power sensors into your smart home system efficiently. For further enhancement, consider exploring the 3D enclosure for aesthetic and protective purposes. For additional support or ideas, check out MrDIY’s Patreon or related videos for more advanced configurations. Happy tinkering!