super_star

[Training Camp] Tuya Smart IoT Lantern-743488A

 
Overview
* **Project Introduction** **1. Introduction:** The PCB design of this project is completed through Lichuang EDA software, and Tuya smart modules are used for network control. Tuya Smart APP can simply light up and change colors. This Tuya Smart module is a zero-code development module that can be developed quickly without programming experience. It is very suitable for beginners to learn the IoT design process. **Featured functions:** 1. Use Tuya Smart APP to light up LED lights on your mobile phone 2. Change the color of RGB lights 3. Various interesting scene changes 4. Support music rhythm function 5. Support color temperature adjustment and brightness adjustment 6 . Extension pins are reserved to support the use of external RGB light strips![5fbfbe7e00d0cc97.png] ![IMG_20201205_122546.jpg] ![IMG_20201205_122448.jpg] **2. Introduction to the use of smart IoT lanterns:** Use common micro_usb. Power supply can be easily completed using a mobile phone charger or power bank. A power indicator light indicates whether the power supply is normal. PCB size is 6x6cm, easy to carry. When distributing the network, you can choose wifi or Bluetooth. When WiFi distribution is difficult, Bluetooth can also complete the network distribution function. The Tuya smart app can be used to control the lights on and off, color change and brightness adjustment. It is easy to operate and configure the network. **3. Device Selection:** 1. The Tuya smart module is selected as WB3S, which is Tuya’s first recommended module. The module is a development-free device. Supports WIFI and Bluetooth, cheap and powerful. When configuring the hardware, pay attention to selecting the level of the module pin output. This circuit controls the conduction of the mos tube for high-level output. 2. Use the micro_usb interface for power supply, which is simple and convenient. If you prefer the type-c interface, you can directly replace it. 3. The switch uses a toggle switch, which is cheap, compact and easy to operate. 4. Use ams1117-3.3 as a 5v to 3.3v linear regulator to power the Tuya module, which can provide a maximum current of 1A to meet the power supply needs. 5. The LED light is a three-way RGB light with three colors: red, green and blue. RGB lights are connected in parallel and light up lamp beads of the same color at the same time. You can continue to add some RGB lights for more creative arrangements and combinations. 6. AO3400A is an N-MOS tube, (Vgs=10V) can pass 5.8A current. ![IMG_20201205_123124.jpg] ![IMG_20201205_123048.jpg] **IV. Things to note when drawing PCB:** 1. When placing the filter capacitor, try to place it as close as possible to the pins of the device that require filtering. 2. When placing the USB connector, the outermost side should be a little beyond the PCB frame, otherwise the USB may be difficult to connect. 3. The width of the power line should be set at 10~20mil to meet the power supply needs of the circuit, or you can set it according to your own habits. 4. Set the signal line to 10mil. 5. The components layout can be distributed horizontally, vertically, and at equal intervals, and the PCB space can be used rationally to make the PCB more beautiful. 6. This circuit has few components and sufficient space, so the components can be placed directly on the top layer. 7. When laying out the buttons, try to place them as close to the edge of the PCB as possible, and farther away from larger devices, so that it is easier to click the switch. 8. The circuit components are reduced, and the use of vias can be minimized when drawing PCB, so that the bottom layer can obtain a more complete copper skin when laying copper. 9. When placing Tuya modules, follow the design instructions provided by Tuya officials. Try not to lay copper in the openings in the module antenna area and under the module (top and bottom layers) to obtain the best signal. Note: The board was drawn in a hurry and there are many messy places. For example, the position of C6 is not very reasonable. It should be placed on the wire directly connected to the interface and switch. Later, some minor adjustments were made to the PCB. **5. Welding process:** 1. The filter capacitors on the board are all non-polar capacitors and can be welded directly regardless of positive or negative polarity. 2. Resistors are soldered directly regardless of polarity. 3. The green dot on the front end of the power indicator light is the negative pole, and the notched end of the LED rectangular screen printing on the corresponding PCB is the negative pole. 4. When welding the Tuya module, you can use tape to fix it to prevent it from moving during welding, and then adjust the position exactly before welding. 5. The three-way RGB lamp has a small mark on one side of the PCB, which corresponds to the recessed triangular pin on the front of the three-way RGB lamp. When soldering, pay attention to the correct pin correspondence. 6. You can use a small-blade soldering iron for welding. The blade-blade soldering iron makes it easier to weld chip components. ![IMG_20201205_162323.jpg] ![IMG_20201205_162313.jpg]
6. Tuya smart module hardware configuration: You can directly refer to the Tuya IoT development platform help manual to complete the firmware selection, [Tuya IoT development platform link] [https://auth.tuya .com/?from=https://www.tuya.com/cn/&\_source=cbc30f99f7a6c4aebca6755c2fab437f](https://auth.tuya.com/?from=https://www.tuya.com/cn/ &\_source=cbc30f99f7a6c4aebca6755c2fab437f 7. Tuya Smart Distribution Network Introduction: 1. Open Tuya Smart APP and click the red plus sign in the upper right corner![12b2438cf6495f24.png] 2. Select the lighting column in the left column of the manual addition page. ![65794f521e27fb97.png ] 3. Click to select the light source (Bluetooth + WIFI) 4. Click the Wi_Fi quick connection in the upper right corner to switch to Bluetooth configuration! [2edf7dc39f9eb4ef.png] 5. After switching to Bluetooth configuration, click the middle of the screen to try to configure the network according to the steps! [5b840ecc92ff64da .png] 6. Follow the prompts to reset the device ① Connect the device to the power supply for 10 seconds, then turn off the power and then connect the power again. Click Next after completion! [-55ec513bb471177a.png] ② Turn on the lights - turn off the lights - turn on the lights - turn off the lights - Turn on the light (the interval should not be too short, the light must be on before turning off)! [3d4ac1e3d8e388b1.png] After completion, click Next ③ Confirm that the light has flashed or breathed. Click the circle to confirm that the light has flashed or breathed! [289bd12283c1e17d.png] After completion Click Next 7. At this time, nearby Bluetooth devices will be searched. When the device appears, click the name to connect to the device. 8. Then when prompted to connect to WIFI, select your own wifi and enter the password. After confirmation, the network configuration will be completed successfully. ** Eight , Summary: ** Through this project, I learned about the development process of the Internet of Things. The use of development-free modules reduces a lot of difficulty. There is no need to develop embedded code. You only need to click on the configuration method online to build a developer's Firmware shortens the development cycle. It is suitable for many people who are not familiar with programming to quickly develop an Internet of Things product of their own, which increases their interest in learning the Internet of Things. In the future, you can have an in-depth understanding of the control methods of more complex MCUs and use MCUs to improve Customize product needs and develop more innovative and distinctive smart IoT projects.
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-07-06 15:51:45

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号