Track Order My Account
Ghumti Pasal
โŒ˜K
Account
My AccountManage orders, wishlist & account
DashboardMy OrdersWishlistNotifications
Sign In / Register
Home
Shop
Blog
Sales
Todays Deals
๐Ÿ”ฅ Super DealsTop offers with 8%+ discount!
2.4 inch TFT touch LCD Moduleโˆ’10%
2.4 inch TFT touch LCD Module
NPRย 1,080NPRย 1,200
XH-M131 Light Control Switch Photoresistor Relay Module Detection Sensor 10A brightness Automatic Control Module DC 5Vโˆ’10%
XH-M131 Light Control Switch Photoresistor Relay Module Detection Sensor 10A brightness Automatic Control Module DC 5V
NPRย 360NPRย 400
Pair of 75mm Propeller for 8520 1mm shaftโˆ’16%
Pair of 75mm Propeller for 8520 1mm shaft
NPRย 84NPRย 100
YF-S401 Water Flow Sensor Switch Meter Flowmeter Coffee Dispenser Counter Fluid Control 0.3-6L/minโˆ’16%
YF-S401 Water Flow Sensor Switch Meter Flowmeter Coffee Dispenser Counter Fluid Control 0.3-6L/min
NPRย 546NPRย 650
View All Deals (52 items) โ†’
Account
Ghumti Pasal

Ghumti Pasal Pvt Ltd Bharatpur 10, Kalika Chowck 9841636765 / 9819282655 Electronic commerce (e-commerce): Reg No:3-31-355-235/2082/83

Join our newsletter

New arrivals, offers and restock alerts โ€” straight to your inbox.

Shop

All ProductsBlog

Company

AboutContact

Help

Shipping & ReturnsPrivacy Policy
info@ghumtipasal.com.np9841636765Bharatpur 10
HomeShopSaleCartAccount
โ† Back to All Maker Guides
๐Ÿ› ๏ธ MAKER GUIDEJul 11, 2026โ€ขโฑ๏ธ 3 min readโ€ข๐Ÿ‡ณ๐Ÿ‡ต Tested in Nepal

Smart Wi-Fi Modular Wall Switch with ESP8266 & Home Assistant Integration

Convert traditional Nepali switchboards into smart home relays with NodeMCU ESP8266, HLK-PM01 power module, and 2-channel relay modules from Ghumti Pasal.

Smart Wi-Fi Modular Wall Switch with ESP8266 & Home Assistant Integration
๐Ÿ› ๏ธ BILL OF MATERIALS (BOM)

Required Hardware & Component Checklist

Curated components verified for this project. Check the items you need, adjust quantities, and add straight to cart:

Estimated Total (5/5 items):
NPRย 1,750
โœ“ Cash on Delivery across Nepal
All parts selected
1
NPRย 750
1
NPRย 600
1
NPRย 260
2
NPRย 120
(NPRย 60 ea)
1
NPRย 20
๐Ÿ’ฌ Order Kit on WhatsApp
Browse All Store Products โ†’

Smart Wi-Fi Modular Wall Switch with ESP8266 & Home Assistant Integration

Educational Notes

This project is designed to be accessible to students from Class 4 to Masters level, with complexity scalable to match different age groups and skill levels.

Learning Objectives:

  • Understand basic electronics and circuitry principles
  • Learn sensor applications and data collection techniques
  • Develop problem-solving skills through hands-on building and troubleshooting
  • Apply programming concepts to control hardware and process data
  • Connect projects to real-world Nepalese contexts and challenges

Adaptability:

  • For younger students (Class 4-8): Focus on assembling pre-built circuits, observing results, and understanding basic concepts
  • For intermediate students (Class 9-12): Modify code, experiment with parameters, and explore underlying principles
  • For advanced students (Undergraduate/Masters): Optimize designs, add features, conduct research extensions, and analyze performance

Safety Note: Always supervise younger students when working with electricity, heat, or moving parts.

Convert traditional wall switchboards into smart dual relays using NodeMCU ESP8266 and HLK-PM01 AC-DC 5V Module.


Hardware Bill of Materials:

  • Microcontroller: Wireless module CH340G NodeMCU V3 ESP8266
  • Power Module: HLK-PM01 AC-DC 220V to 5V mini power supply module
  • Relay Board: 2 Channel 5V 10A Relay Module low level trigger with optocoupler
  • Snubber Components: 2x CBB22 400V 2.2UF Film Capacitor + Heat Shrink Tube

Circuit Pinout & Wiring Connections:

Component / Relay Pin NodeMCU ESP8266 Pin Function / Description
2-Ch Relay IN1 Pin D1 (GPIO 5) Channel 1 Relay Trigger
2-Ch Relay IN2 Pin D2 (GPIO 4) Channel 2 Relay Trigger
Wall Switch 1 Input Pin D5 (GPIO 14 - INPUT_PULLUP) Physical Toggle Switch 1
Wall Switch 2 Input Pin D6 (GPIO 12 - INPUT_PULLUP) Physical Toggle Switch 2
HLK-PM01 AC Pins Mains AC 220V Live & Neutral Grid Power Input
HLK-PM01 +5V / GND VIN & GND NodeMCU & Relay Power

Firmware Source Code (ESP8266 C++)

#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>

// L298N Motor Driver Pin Connections
const int ENA = 5;
const int IN1 = 18;
const int IN2 = 19;
const int IN3 = 21;
const int IN4 = 22;
const int ENB = 23;

void setup() {
  Serial.begin(115200);
  pinMode(ENA, OUTPUT);
  pinMode(ENB, OUTPUT);
  pinMode(IN1, OUTPUT);
  pinMode(IN2, OUTPUT);
  pinMode(IN3, OUTPUT);
  pinMode(IN4, OUTPUT);
  Serial.println("Robotic Chassis & Motor Driver Controller Active.");
}

void moveForward(int speedVal) {
  analogWrite(ENA, speedVal);
  analogWrite(ENB, speedVal);
  digitalWrite(IN1, HIGH);
  digitalWrite(IN2, LOW);
  digitalWrite(IN3, HIGH);
  digitalWrite(IN4, LOW);
}

void stopMotors() {
  digitalWrite(IN1, LOW);
  digitalWrite(IN2, LOW);
  digitalWrite(IN3, LOW);
  digitalWrite(IN4, LOW);
}

void loop() {
  Serial.println("Executing Autonomous Drive Routine Forward...");
  moveForward(200);
  delay(3000);
  Serial.println("Stopping Motors...");
  stopMotors();
  delay(2000);
}
๐Ÿ“ฃ Share this Project Guide:๐Ÿ’ฌ WhatsAppFacebook๐• / Twitter
โ† Previous Guide
Multi-Level Smart Car Parking Slot Occupancy Counter with IR Sensors
Next Guide โ†’
Elderly Fall Detection Smart Belt with MPU6050 Accelerometer & SIM800L GPS

More Practical STEAM & IoT Guides

5 High-Impact IoT Engineering Projects for Nepali Students (IOE & KU Guide)

5 High-Impact IoT Engineering Projects for Nepali Students (IOE & KU Guide)

IoT Weather Reporting System with Arduino & Raspberry Pi LoRa Gateway

IoT Weather Reporting System with Arduino & Raspberry Pi LoRa Gateway

IoT IV Bag Monitoring & Alert System for Healthcare Facilities

IoT IV Bag Monitoring & Alert System for Healthcare Facilities