|
EGS002 |
x 1 | |
![]() |
HY1-5VPANASONIC ELECTRIC WORKS
|
x 1 | |
|
BC547(RANGE:420-800) |
x 1 | |
|
ERJ2RKF2200X220R『 』PANASONIC
|
x 1 | |
|
1N4007Diotec Semi
|
x 1 |
![]() |
arduino IDEArduino
|
Make a 16-Channel Home IoT project using NodeMCU ESP32 WROOM Module
If you're looking to build a versatile IoT device capable of controlling up to 16 appliances or devices via your smartphone, then you're in the right place. In this tutorial, we’ll create a 16-channel relay module controlled using an ESP32 WROOM module and the RemoteXY platform. This setup is perfect for home automation projects. Let’s dive in!
What You’ll Need
Here is the list of components required for this project:
Hardware Components
- ESP32 WROOM Module (NodeMCU ESP32 development board)
- 5V 16-Channel Relay Module (16 relays)
- 16 x 1N4007 Diodes (for flyback protection)
- 16 x 330Ω Resistors (current-limiting resistors)
- 16 x BC547 Transistors (to drive the relays)
- 16 x AC Terminal Blocks (for load connections)
- Power Socket (5V DC power supply for the relays and ESP32)
- Jumper wires and connecting cables
- Breadboard or PCB (optional for prototyping)
Software Tools
- RemoteXY (for GUI design and app integration)
- Arduino IDE (for ESP32 programming)
- USB Cable (for uploading the code to the ESP32)
Step 1: Understanding the Circuit Design
In this setup:
- The ESP32 WROOM will control the relays through the BC547 transistors.
- Each relay will have its own protection circuit comprising a 1N4007 diode and 330Ω resistor.
- The ESP32 will connect to your smartphone via RemoteXY, allowing you to toggle the relays on or off.
- A 5V power supply will power both the relay board and ESP32.
Step 2: Design the Control Interface with RemoteXY
- Create an Account: Go to RemoteXY and sign up for free.
- Design the Interface:
- Choose the number of buttons (16, for each relay).
- Label each button (e.g., "Relay 1", "Relay 2").
- Arrange the buttons in a grid or list format for easy access.
- Save and download the generated code file for Arduino IDE.
Step 3: Build the Circuit
Circuit Connections
Relay Module:
- Connect the VCC of the relay module to the 5V power supply.
- Connect the GND of the relay module to the GND of the ESP32.
Transistor Circuit:
- Connect the collector of each BC547 transistor to the input pin of the corresponding relay.
- Connect the emitter to GND.
- Use a 330Ω resistor between the base of the BC547 and the GPIO pin of the ESP32.
Diodes:
- Place a 1N4007 diode parallel to each relay coil with the cathode connected to VCC and the anode to the collector of the transistor.
ESP32 Pins:
- Assign each GPIO pin of the ESP32 to control one relay (e.g., GPIO16, GPIO17, etc.).
Power Supply
Ensure the ESP32 and the relay board share a common GND for smooth operation.
Use a 5V DC power supply with enough current capacity to drive all relays simultaneously (around 2A is sufficient).
Step 4: Upload the Code
Install ESP32 Board Support:
Open the Arduino IDE.
Go to File > Preferences and add the following URL to the Additional Board Manager:
arduino
Copy code
https://dl.espressif.com/dl/package_esp32_index.json
Install the ESP32 board package from the Board Manager.
Include RemoteXY Library:
Add the library generated by the RemoteXY platform to the Arduino IDE.
Code Upload:
- Open the code file downloaded from RemoteXY.
- Modify it to match your GPIO pin assignments for the relays.
- Connect the ESP32 to your computer via USB and upload the code.
Step 5: Test and Control Your IoT Device
Install the RemoteXY App:
Download the RemoteXY app from the Google Play Store or Apple App Store.
Pair the app with your ESP32 (via WiFi or Bluetooth, depending on your setup).
Control Your Relays:
Open the app, and you should see the 16 buttons you designed.
Tapping a button will toggle the corresponding relay on or off, controlling the connected appliance.
Step 6: Integrate with Home Appliances
- Connect your home appliances to the AC terminal blocks of the relay module.
- Ensure proper insulation and safety precautions when dealing with AC mains.
Video Reference:
Conclusion
By following this tutorial, you’ve built a robust 16-channel IoT device using the ESP32 WROOM module and RemoteXY. This setup offers a flexible and scalable solution for home automation or industrial control systems. Feel free to customize the design to add more functionality, such as timers or sensors.

Make a 16-Channel Home IoT project using NodeMCU ESP32 WROOM Module
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
- Comments(0)
- Likes(2)
-
Raúl Celeita Nov 28,2024
-
ayhani Nov 23,2024
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Estiak Khan
-
Autocut DC Mini IPS for DC 12V Load Autocut DC Mini IPS for DC 12V LoadIf you are looking for a reliable Autocut DC Mini IPS for DC 12V ...
-
Build a 12V Battery Autocut System with LCD Display Are you looking for an efficient and affordable way to protect and monitor your 12V battery system? ...
-
DIY Transistor Tester | Build Your Own LCR Meter at Home with Arduino Nano Are you fascinated by electronics and want to create your own tools for testing components? Building...
-
DIY 150W IPS Making At Home with Auto Changeover System | Mini IPS 2025 How to Make an Automatic 150W IPS Using Two Circuit ModulesAre you looking for a reliable and effici...
-
DIY RTC Digital Clock with Professional PCB Design In this blog post, we will guide you through making a DIY RTC Digital Clock using an Arduino UNO and...
-
🚀 DIY Long Backup Mini DC IPS | Make at Home Using a UPS Transformer! 💡 DIY Long Backup Mini DC IPS | Make at Home Using a UPS Transformer! IntroductionBuilding a Mini DC I...
-
How to Make a Simple DIY Mini DC Automatic IPS at Home Looking for a reliable power backup solution for your DC appliances? Building a Mini DC Automatic IP...
-
DIY Easily Make a Universal Any Type of Battery Charge Controller At Home DIY Easily Make a Universal Any Type of Battery Charge Controller At HomeIf you’re into DIY electron...
-
Make a 16-Channel Home IoT project using NodeMCU ESP32 WROOM Module If you're looking to build a versatile IoT device capable of controlling up to 16 appliances or devi...
-
DIY Pure Sine Wave Inverter Making At Home DIY Pure Sine Wave Inverter Making at Home Using EGS002 Module: A Complete GuideBuilding your own pu...
-
Build a MIND-BLOWING Mini Oscilloscope at Home with EST Projects Build a MIND-BLOWING Mini Oscilloscope at Home with EST ProjectsEver wondered how you can measure an...
-
Best IOT Project Making At Home using Microcontroller || PCBway https://www.pcbway.com/?from=technology4powerEvery electronic device needs PCBs. Are you looking for...
-
Universal Battery AutoCut Charge Controller with LCD - DIY at Home Are you looking to build a reliable and efficient battery AutoCut charge controller? Look no further...
-
PIC16F877A Trainer Board Build Your Microcomputer || Home-Made Microcontroller Master Trainer Tutorial Banglahttps://www.pcbw...
-
Modifying a Hotplate to a Reflow Solder Station
433 0 4 -
MPL3115A2 Barometric Pressure, Altitude, and Temperature Sensor
257 0 1 -
-
Nintendo 64DD Replacement Shell
265 0 1 -
V2 Commodore AMIGA USB-C Power Sink Delivery High Efficiency Supply Triple Output 5V ±12V OLED display ATARI compatible shark 100W
677 4 2 -
How to measure weight with Load Cell and HX711
524 0 3 -
-
Instrumentation Input, high impedance with 16 bit 1MSPS ADC for SPI
603 1 0