他们逼我做卧底

DIY remote control light switch-Tuya WIFI version

 
Overview

Project origin:

       The head of the bed is too far from the light switch, and I have to get out of bed every time I turn on and off the light!!!
       This type of product on a certain website can be roughly divided into two categories: 1. Relay-controlled ones, but the original switch panel needs to be removed and connected 220V mains power is too dangerous, so pass it; 2. It is directly attached to the switch panel, and the mechanical structure simulates human hands to press the switch. This is feasible, safe and suitable for poor renters like me. I will dismantle it when I change houses. It is also convenient. But the price is relatively expensive and painful. Looking at his pile of electronic waste, the garbage man started to take action.
He could not find any disassembly videos of related products and could not find out the internal mechanism of such products, so he thought on his own. At first, I tried to use solenoid valves or telescopic motors, but this was too difficult and there were too many uncontrollable factors. Then I tried to use a small DC motor, which had poor output capability and took up a lot of space. Finally, I also tried to use a small DC motor. In the current version, I found that the servo is just feasible and the space occupied is acceptable.

Project idea:

  1. The base is printed with a 3D printer. The base is used to carry the PCBA and two servos. The base and the switch box can be bonded with double-sided tape;
  2. The steering gear is used to imitate human hands to press the switch panel of the light to achieve the effect of turning the light on and off;
  3. The communication between the device and the mobile phone is realized through the Tuya module, so as to achieve the effect of remote control of the lights on and off by the mobile phone;
  4. The main control adopts Arduino NANO board (there is one in the garbage dump,,,,)
  5. Lithium battery power supply (this version does not have it because the charging current of the previous version is only half of the theoretical value. The problem has not been found yet, so the SUB-powered version will be released first)

Project Information:

  1. 3D printing base (universal version, STL format, can be printed directly on Lichuang);
  2. Hardware drawings, including schematics, PCB and component lists;
  3. Arduino program.

B station video: https://www.bilibili.com/video/BV18b4y1U7i6

This is the version I am using. It is the earliest version. It does not have wireless control. It connects a small button board to the bedside through a row of 3P. It is relatively simple and has no cover.

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-19 23:00:36

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号