Introduction: π§ DIY Wireless Sensor Hub With ESP32 + Arduino + NRF24L01
In this project, we design a wireless sensor hub using ESP32 and Arduino connected via NRF24L01 transceivers. The ESP32 serves as the main control hub with an OLED display and interactive menu system, while the Arduino-based sensor nodes handle environmental sensing, alert indication, and automatic notifications. This two-MCU system enables parallel task execution, separating user interface and load control from real-time alert response.
Supplies
Components Required
Main Hub Unit:
- ESP32 Wroom Dev Board
- Arduino Uno(ATMEGA328P)
- 2x NRF24L01 Module
- 0.96β OLED Display (I2C)
- 1x Buzzer
- 3x Push Buttons (Menu Config)
- 3x Toggle Switches (Load Controls)
- 2x 3.3v modules
- Resistors (10kΞ© for buttons)
- LEDβs with Holders
- LM2596 DC-DC Step Down Buck Converter.
- Power Supply (12V, 1A adapter)
- 1N4007 Diode
- Junction Box Enclosure
You can get all the components from JLCMC.
βοΈ Features & Functionality
οΈ ESP32 Hub:
- Menu Config with Buttons: Select sensor nodes, toggle alert modes, view system status, set on and off timer.
- Switch Control: Toggle connected relays/lights/appliances via physical switches.
- OLED UI: Real-time display of sensor data and system state.
- NRF24 Communication: Receives sensor alerts wirelessly from multiple nodes.
Arduino(ATMEGA328P) β Real-Time Monitoring
The Arduino board acts as a dedicated alert node, responsible for monitoring key safety and automation components:
- Door Sensors: Detect open/close status using reed switches to monitor unauthorized access or entry.
- Gas Leakage Sensors: Continuously checks for gas leaks (e.g., LPG, methane) using MQ-series sensors.
- Automatic Doorbell: Detects presence using PIR or button press, triggering a doorbell alert.
- LED Indicators: Four LEDs light up based on which sensor was triggered (e.g., door, gas, motion).
- Buzzer Alerts: A loud buzzer activates when any sensor detects a fault or presence.
This node communicates all alerts wirelessly to the ESP32, enabling quick and centralized display or action.
Step 1: Interface the NRF24L01 With the ESP32 Wroom.
Step 2: Interface the OLED With the ESP32 Wroom.
Step 3: Interface the Menu Buttons With the ESP32 Wroom.
Step 4: Interface the Buzzer Along With 1N4007 Diode the ESP32 Wroom.
Step 5: Interface the NRF24L01 With the Arduino Uno(ATMEGA328P) IC.
Step 6: Interface the LEDβs With the Arduino Uno(ATMEGA328P) IC.
Step 7: Interface the Buzzer Along With the 1N4007 Diode to the Arduino Uno(ATMEGA328P) IC.
Step 8: π‘ Why Use Two MCUs?
Using both ESP32 and Arduino in tandem enables dedicated multitasking:
- ESP32 handles UI, OLED, user inputs, and load control switches.
- Arduino handles sensor checks, immediate alerts, and outputs (buzzer, LEDs).
This ensures smooth performance, better fault isolation, and real-time response without compromising interface usability.
Step 9: π NRF24L01 Communication Logic
ESP32 Hub:
Step 10: JLCMC
Sponsored by JLCMC: Your Go-To Partner for Mechanical Parts!
Introducing JLCMC, the newest addition to the trusted JLC family, delivering high-quality mechanical parts at the best prices in the market. With a legacy of excellence established by JLCPCB, JLCMC is here to provide reliable and affordable solutions for all your mechanical needs.
Why Choose JLCMC?
- A Trusted Name: JLCMC is built on the foundation of JLC services, a global leader in PCB manufacturing and prototyping. Their commitment to quality and customer satisfaction carries forward into their mechanical parts services.
- Unbeatable Prices: True to the JLC legacy, JLCMC offers mechanical parts at industry-leading prices, ensuring that your projects stay on budget without compromising on quality.
- Wide Range of Products: From precision-engineered components to custom solutions, JLCMC has everything you need to bring your ideas to life, whether you're a hobbyist or a professional.
- Global Trust: JLC services have earned the trust of millions of makers worldwide. With JLCMC, you get the same reliability, now in the realm of mechanical parts.
Step 11: π¬ Conclusion
This DIY wireless sensor hub is a powerful example of how multi-MCU architecture can improve performance and system reliability. By using ESP32 for UI and control, and Arduino for sensor alerts, you get a robust, modular platform suitable for home automation, safety systems, and IoT projects.
πΉ Follow MK Inventions
π YouTube:MKinventions
π Facebook:MKinventions & Robotics
π Instagram:@madhan_chiruguri
π Hackster.io: mkinventions100
π DF Robot: MKinventions Madhan
π Instructables: Madhan Kumar Chiruguri
Stay tuned for more Home Automation projects! π