tmIsNBY

ESP01 Smart Switch

 
Overview
If this board is connected to a 220V input, two-thirds of the board will carry 220V. Those without relevant experience with high-voltage electricity should not operate it while it is energized, as there is a risk of electric shock. If electric shock occurs due to carelessness, the consequences will be severe.
 
It can be used in any circuit requiring switch control, in conjunction with existing or newly installed switches, to achieve intelligent voice and infrared remote control control of the switch. The target of the switch control can be lights, televisions, water heaters, and other circuits requiring on/off functionality.
 
This board, when used with the main control board (https://oshwhub.com/mynewworldyyl/esp32s3-xiang-mu), can establish a master-slave relationship, allowing the switch to be controlled via voice or infrared remote control from the main control board, similar to a slave device in Tmall Genie. The configuration methods for this board are basically the same as those for the main control board; please refer to https://oshwhub.com/mynewworldyyl/esp32s3-xiang-mu for relevant instructions.
 
The circuit design of this board is relatively simple, and related components can be purchased inexpensively on Taobao.
 
The pin assignment is as follows:
GPIO0 connects to the relay, GPIO2 connects to the button, and RX connects to the infrared sensor
 
. Only GPIO0 needs to be configured in the APP; the button and infrared sensor are already forcibly bound.
 
An infrared remote control is used; in fact, any NEC protocol remote control can be used. The code value corresponding to the remote control button needs to be configured in the APP when configuring the command ID.
 
The connection method is similar to a traditional dual-control switch.
 
The above is a wiring diagram of two switches controlling one light. We only need to replace one of the switches on the main control board with the relay. The relay's "normally open" and "normally closed" outputs correspond to L1 and L2 of the switch above, respectively. Actually, normally open and normally closed outputs can also correspond to L2 and L1. Three relays can control three lights respectively.
 
The board has a 5V external power supply port, allowing direct input of 5V without needing an external 220V power supply. This facilitates testing and verification, and in actual use, it can control non-220V circuits.
 
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2026-03-26 19:31:31

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号