蓝猫淘气

[New version - successful test] IoT switch

 
Overview

Reason for update: Due to Blinker updating the library and finding that some parts of version 5.2-1 can be simplified, this update is made

Recommended project: Smart WiFi IoT socket

Bilibili column (including detailed tutorials)

CSDN

Station B video (demo video)

Download the new version of the program from Baidu Netdisk (including IDE, Package) Extraction code: n8td

GitHub program download (only programs and libraries included)

  1. Controlled by the ESP12 chip, written in Arduino C language, based on the Blinker IoT platform, a Micro USB burning interface is added, and the CH340C chip performs USB to TTL without the need for an external crystal oscillator, making the burning program more convenient
  2. It can be perfectly placed in the 86 junction box and can be connected with an external self-reset button as a local button.
  3. Add a neutral terminal to completely solve the problem of light flickering after turning off the lights.
  4. Added WIFI control function, placed in the junction box to connect to a router 20 meters away, the theoretical control distance is infinite (an antenna can also be added using ESP07)
  5. Supports Xiaomi Xiaoai/Tmall Genie and other voice assistants and mobile phone control
  6. Using HK4100 relay, the size is reduced, and the maximum AC load is 3A 250V (the 5.3-2 version uses ALDP105 relay, and the load capacity is increased to 5A)

5.2-1 Update plan

  1. Compressed volume
  2. Add programming interface
  3. Delete IPEX, extension part, and optocoupler part
  4. Remove redundant LEDs
Thanks to the design plan provided by Liang Zili, the UP owner of Station B.
log
2020-5-27

Version 5.3-1 PCBIMG_20200527_220938.jpg


2020-6-5

The following problems were found in version 5.3-1:

  1. The buzzer is connected to IO2, which is the onboard LED interface. The onboard LED is active low and the buzzer is active high. The pull-down resistor of the buzzer circuit causes the LED to stay on. If you change the NPN transistor to a PNP transistor, you must Remove the pull-down resistor, which can cause false alarms from the buzzer
  2. Button packaging error
  3. The terminal posts are too abrupt, so I have to find a way to retract them.

Therefore, version 5.3-2 will be updated, but due to my busy schedule, the update process will be slowed down.

2020-6-6

Completed 5.3-2 schematic update and PCB layout in progress

2020-6-8

JLC is extremely fast, completing the shipment of black boards in 22 hours, and the express delivery is also very fast. It only took 21 hours from Zhuhai to Dongguan, and the smallest system part was welded by the way.

2020-6-13

The on-board LED of the ESP12 does not flash when powered on. I always thought it was a power supply problem. After troubleshooting for a long time, I finally found out that the ESP12 was broken and had to wait again.

2020-6-19

The situation is extremely sad. The operating temperature of LDO and ESP12 has reached 45°C. It may be a welding problem or the LDO power is too low. Version 5.3-3 is now released and is expected to be updated as follows:

  1. Replace LDO package
  2. Improve the PCB layout to ensure that the 86-type self-reset switch can be installed (the AC-DC module just happens to hold it up every time, resulting in the cover not being able to be closed)
  3. Change buzzer drive level
  4. At the request of friends, add filter capacitors
2020-6-25

Version 5.3-3 PCBQQ picture 20200625100213.jpg

Note: "ESP12_5.3-2.html" and "ESP12_5.3-3.html" in the attachment are the HTML version of the BOM table, and the download address of the BOM table generation tool is

Component U1 "AC220V to DC5V" link

Video 2 uses a SLR manual focus, so there is blurry focus, please understand.
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-06 06:06:39
  • [Novice FPGA VHDL Learning Post] Post 9 Buzzer
  • 51 Programs Giveaway
  • Keyboard scan code conversion problem
  • [Nucleo-F413ZH Review] 2 Development Board Review_Simple Power Consumption Test
  • How to configure and start 2410 (Yangchu board)
  • Characteristics of embedded systems

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号