Smart curtains based on Tuya Smart IoT
Without further ado, here are the actual pictures:
========================================= Text segmentation ======= =================================
1. Project introduction
One day I saw a post from a public account, and I thought I had nothing to do, so I decided to learn it! So we got in the car! I am an electronics enthusiast and like to DIY various electronic products (except I can’t program), especially the Internet of Things. I clicked here to view the details and sign up (I didn’t make it to the last training camp, and I didn’t know where to sign up at the time. This time I caught up ~hehehe ), and then I went to learn about the Tuya platform and found that I can bind Xiao Ai (because I am a rice fan and have done some Internet of Things platforms before (Yiweilian Jizhiyun Lighting Technology), All can be connected to Xiaoai classmates, but some can be connected ... but the desired effect is not achieved, and there are still many platforms that are not open to individual developers, so ... ) With excitement, I started exploring Tuya. ... So I started the smart curtain project that I have always wanted to do. Referring to the mature solutions in the market , I found that smart curtains are basically implemented using guide rails and timing belts, and the product prices are hundreds or even thousands. , for DIY electronics enthusiasts, cheap prices are the key. Combined with owning a 3D printer, I decided to model and make my own and transform the curtains at home into automatic curtains. Wouldn’t that be a joy? So I took this opportunity to implement a smart curtain design in the simplest way and at the lowest cost! Thanks again to Lichuang EDA and Tuya Smart for providing learning opportunities !
[Link to Tuya IoT development platform] https://auth.tuya.com/?from=https://www.tuya.com/cn/&_source=cbc30f99f7a6c4aebca6755c2fab437f (contains detailed development documents)
2. Implementation principle
The principle of this project is very simple. First, I modeled and printed two 2GT synchronous wheel transmission components and a synchronous belt closer. I used an N20 motor and a synchronous wheel to drive the synchronous belt to open and close the curtains... The following are the components produced:
3. Tuya APP panel display
Below is the panel I customized. The on/off icon is relatively simple, but it is clear, intuitive and practical. The APP has timer switch and motor position calibration functions. It can set the middle open and full open modes to open the curtains, and the local PCB The panel buttons can be used to turn on/off/stop, and the indicator light shows the status...
4. Some problems encountered during the process and their solutions
Generally speaking, there are no big problems, they are all caused by small details and temporary negligence. The main ones are as follows:
1. The CEN pin of the WB3S module is a reset pin without a button, so the subsequent secondary distribution network needs to be shorted to GND to enter the redistribution mode . During normal operation, the CEN pin should be pulled high or floating ( Due to negligence, I did not read the official manual carefully , and the official reference schematic diagram did not reflect it)
2. I originally thought that I could use Bluetooth control when there was no network, but who knew it wouldn’t be possible, so I didn’t add a wireless control locally. I had to force it when there was no network!
3. Later optimization direction, the motor was replaced with a stepper motor to reduce noise, the closer was changed to a pulley module to reduce friction, and local wireless control was added...
5. Tuya module firmware configuration
6. Demonstration video
++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++
Welcome to watch the finished product demonstration video of this work ~~
Demonstration video is attached at the end
Okay, the project is over here, goodbye everyone! ++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++
---Water is over---
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