fish001

[Training Camp][Internet of Things Practical Combat]-Smart RGB Lamp-699720A

 
Overview

Due to my personal circuit skills and learning reasons, I will not design too many circuits. I learned the circuit diagram of Mogong. Although it is very simple, it also allowed me to learn a lot of new knowledge.

Summarize this yourself and give feedback on your learning results, as follows, divided into expected functions, circuit principles, circuit debugging, module configuration and networking, and Tuya Smart App network control.

1. Expected functions of the circuit

  1. Control RGB brightness, color changes, etc. through the WB3S IoT module of the Tuya smart platform;
  2. Perform network distribution reset, stepless dimming and other operations through buttons;
  3. Control light switches, color changes, and brightness adjustments through Tuya APP;

2. Circuit composition and basic principles

This smart IoT RGB lamp is based on Tuya Smart's WB3S dual-protocol (WIFI + Bluetooth) module as the controller, uses 5V driven RGB lamps with NOMS field effect tubes, and uses PWM (pulse width modulation technology) using Tuya APP , using the commonly used USB interface to supply 5V, and using the AMS1117-3.3V low voltage dropout voltage regulator chip to generate 3.3V voltage to power the module, realizing the mobile phone network to control the brightness and color of the light.

3. Circuit debugging

  1. Power test
  2. Device testing
  3. Function joint debugging

First, test the voltage of the welding power source to be normal, then weld the components and modules. After the welding is completed, check the solder joints and find the correct ones. Then you find that the light does not light up, and you start to feel depressed. . . . I thought my schematic was wrong,

At first I thought that the diagram for studying Mo Gong was incorrect, because many students used 12V. I was actually confused, which meant that I had to scrape off the copper foil, so I asked other students and checked the chip manual myself, and tested the flying leads. I found that RGB can light up using a voltage of 5V. The parameter screenshots are as follows, which proves that the lamp is not broken.

aeVx5bcoTgDa8c3wEwyH0ecf32cK0TbhosoSTQDu.png

 

Using that field effect transistor can also be used at high levels through flying wires

SdRhTzPIza9kqMEujUBPimJIwlV8dPV2KszT4gOi.png

wCL4H4aVik3tBCrTZDUDMzSFy93h49UAUMBcdanf.png

Vgs is turned on, DS is turned on, and the RGB light is on.

rc90pkYr9Kcl7mf38IvQEoRf1eTYDbYGgzx8GIby.png

Through troubleshooting, it was found that the module firmware configuration was incorrect.

An RGB is a three-way light, you can choose one path by yourself. I almost wanted to give up after looking at the time, because the module stocking was still slow, and at the same time, it was strange to have a module distribution network. It succeeded for the first time, but it kept failing after that. . , and therefore myself. . . But in the end, I used the module without welding to test it. The previously configured pins can light up a lamp. At the same time, the board module was successfully reconfigured, so that all three PWM signals required for the RGB lamp can be controlled directly. take off. . .cHxVJ8J659ZQNEo7sL564DZrIvBsyj68i7rkJVZb.png

 

GC7oawXr0RD9XKXnnGQBOT1EhFyRlz4Pr0ySykVl.png

I just use three modules to complete the functions of one module. . It’s a waste, but understanding the complex colors composed of the three primary colors is also another gain. .

4. Module configuration and networking, Tuya Smart App networking control

1. Module configuration

Enter the Tuya development platform and create products

kvzvB5mt3YJLAkwiXv35NRBxLskv4lM5GXJpXrQq.png

Select Lighting-Light Strip-Zero Code Development, as shown in the figure

5WdxNgcPGsXBlr6utaSXEUCqCWK0DzyHf6v68XaW.png

Because three RGB lights are superimposed on each other, dual protocols must be used. It is recommended to use (Bluetooth + WIFI), a three-way RGB light strip solution, and the wrong one can be used as a light strip. . . Same as me, wasted. Because there is zero code, it is difficult to re-burn the firmware. For individuals, it is not cost-effective, and carefulness is the most important. . . , and named at the same time

cUYAW56SyjuZkTYBEZZJ20LHo3lY6pfzgatiUnaK.png

WHh435xlwJRmn8qP3196RsTgYuS48P5rBTDpcIFs.png

Follow the lead. OK, next step. .

aH3EKuBO5aeTQJzvAJkXBSxmXbXZ9pqhV5iA1kCg.png

Template, choose it yourself, according to your own preferences.

0TzLM84seUhAQiidnves06XMnJkPd8oZa1qOJpTG.png

According to the default recommendation, use the WB3S module and view the simple schematic diagram. . It is better to leave the firmware parameters as default, otherwise it will be easy for novices to overturn. .

gUOm6oIxGx2SH5Niq4DKtYOSgyXtgZ7B4OWuTkcN.png

droPJE6Q1UW10hT6fSbiuO3Z72vFfNbUGm3grR6T.png

At this time, you need to purchase modules and choose debugging and R&D.

HPbFuoOUtNykqfCVTSxmh5L6r1YNnIzduYoA6Xza.png

Just place the order and confirm it, but it's not perfect because of the wrong firmware configuration. . . All we have to do is wait for the new module.

Distribution network, simple.

2020.12.7

The new module has arrived and the finished product is welded as follows:

X0edqL1acVCCkcp70BeazAmFvBKbFWleUT5V5Cme.png

nURUMYt35OJKrTSjIDTOxXTtkYpQQJEnqREUFsvE.png

e5kEfsYpANVg1rkBJsrm6iku2lg7NTLbBW1pyDDI.png

y3mVJNBkTeAM0KSvC7DGxSjF8bvq2GErDuDPg3uN.png

Basically, I have completed the basic requirements of the training camp here, learned a lot of new knowledge, and have a better understanding of my own shortcomings, lack of knowledge and abilities.

Finally, I would like to thank Tuya and Lichuang for their support. I basically didn’t spend any money. . . . Comfortable. . . . Thanks~!

Upload some attachment resources for reference by novices

[Link to Tuya IoT development platform] https://auth.tuya.com/?from=https://www.tuya.com/cn/&_source=cbc30f99f7a6c4aebca6755c2fab437f (contains detailed development documents)

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-20 22:23:34

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号