Design a board that can control the lights at home through a mobile phone APP.
1. Hardware: USB power supply, WIFI control, relay (with load within 100W)
2. Embedded: Respond to the instructions of the WIFI module to perform corresponding actions and control the WIFI module to enter the corresponding state.
3. Mobile APP: Different users can configure the network, control the relay status, read the relay status, and manage multiple devices.
4. Server: Can link WIFI module and mobile phone, can maintain user information, and is not easy to crash.
1. The TYPE-C interface provides power and can be used for program burning. The USB to TTL conversion uses the CH340E chip, which has a simple circuit, is reliable and durable.
2. Use two push buttons. SW1 is the STC15 microcontroller power push button to facilitate program downloading; SW2 is a function push button. A short push is to control the relay switch, and a long push is to enter the distribution network mode.
3. Use 4 LED indicators. LED1, 2, and 3 flash quickly to indicate the network distribution mode, and LED 4 flashes quickly to indicate successful network distribution.
1. USB to TTL. Adopt CH340E classic circuit.
2. LDO reduces voltage. WIFI and microcontroller are powered separately to ensure stable power supply for the communication module. Choose an LDO with an enable pin to facilitate the STC15 microcontroller to download the program.
3. DS18B20. A DS18B20 interface is reserved for easy access to the temperature sensor.
4. Relay drive circuit. The inverter ensures that the relay is reliably turned off when the MCU is powered on, and the NUD3124 ensures that the relay is reliably driven.
5. WIFI module EMW3080. A highly reliable commercial WIFI module, the access to Alibaba Cloud has passed official rigorous testing.
1. After the welding is completed, it is found that the power supply of the microcontroller is only 1.8V. After checking the schematic diagram, it is found that pin 1 of ME6215 is not connected to VCC. The schematic diagram and PCB have been corrected.
2. After distributing the network, it was found that the mobile phone could not control the relay. After checking the relevant program code, it was found that the identifier of the switch did not match the one on the Life IoT platform, and it can be used after modification.
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet