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
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
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.
Using that field effect transistor can also be used at high levels through flying wires
Vgs is turned on, DS is turned on, and the RGB light is on.
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. . .
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
Select Lighting-Light Strip-Zero Code Development, as shown in the figure
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
Follow the lead. OK, next step. .
Template, choose it yourself, according to your own preferences.
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. .
At this time, you need to purchase modules and choose debugging and R&D.
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:
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)
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