กลับไปหน้ารวมไฟล์
esp8266-nodemcu-light-switch-da4a57-en.md

This is system for remote control of lights in te room from application on the phone. I can controll the system via WiFi thanks to the RemoteXY library and phone application.

Here is a link to the RemoteXY webside: https://remotexy.com/en/

To build the system I needed:

  • ESP8266 NodeMCU
  • ESP8266 NodeMCU Shield
  • 2 Servos 180*

ESP Shield is needed because the maximum voltage on the board is 3, 3V and to work the servo you need 5V.

In the system, the servos switch the light switch. One servo is responsible for turning on the light and the other for turning off.

EXPANDED TECHNICAL DETAILS

Wi-Fi Enabled Home Automation

This project replaces a traditional wall switch with a modern, internet-connected control system using the ESP8266 (NodeMCU).

  • Web-Based Actuation: The ESP8266 hosts a local web server or connects to a cloud-based dashboard. This allows the user to toggle the lights from any smartphone or computer connected to the same network.
  • Safety Relay Stage: Uses a 5V Relay Module (Opto-isolated) to safely separate the 3.3V signals of the NodeMCU from the 110V/220V mains electricity.

User Customization

  • RemoteXY Integration: Compatible with the RemoteXY platform, providing a polished mobile GUI without the need for complex Android/iOS app development.
  • Manual Override: Includes a physical "Tactile Button" input so the light can still be controlled locally if the WiFi signal is lost.

ข้อมูล Frontmatter ดั้งเดิม

title: "ESP8266 NodeMCU light switch"
description: "Remote light on and off with ESP8266 NodeMCU and RemoteXY library."
author: "sadcat8266"
category: ""
tags:
  - "lights"
  - "esp"
  - "remote control"
views: 6684
likes: 2
price: 1120
difficulty: "Intermediate"
components:
  - "1x SG90 Micro-servo motor"
  - "1x ESP8266 NodeMCU"
  - "1x ESP8266 NodeMCU Shield"
tools: []
apps:
  - "1x Arduino IDE"
  - "1x RemoteXY"
downloadableFiles: []
documentationLinks: []
passwordHash: "2bad2faae5d085f4e416ee41f2ccdec3217543d44fba43de06fea80c27d1328f"
encryptedPayload: "U2FsdGVkX18qmSC87qiTGgLirGEsYx+9xp69AHq9qv28yGK8D1KAAXP6ld5UTRY4G0JYmMG0q4rDwXZJ3yKlhUi54ZHJjDtfTddcByKY8ddJ/urtQnxAHCZby+kX8L8B"
seoDescription: "Remote light switch project using ESP8266 NodeMCU and RemoteXY library. Simple IoT home automation."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/esp8266-nodemcu-light-switch-e1b30b_cover.jpg"
lang: "en"