I am very happy to participate in the Lichuang Open Source Platform event. This is my first time to participate in the event. Before, I always made some small designs based on my own hobbies.
I see that many people are making RGB lanterns, but I have made ESP32 WS2812B lanterns before, and it would be too boring to make another one.
I have been studying zigbee communication recently and found that this communication method has really low power consumption. I also bought a wireless zigbee gateway on Tuya before, and after thinking about it I decided to start a zigbee related project.
What I didn't expect was that Tuya completely contracted my code, and I only needed to draw the PCB according to the DEMO and that was it.
Thinking of the temperature sensor that comes with the clock at home has always made me decide, and I don’t have any other wet temperature sensors (except the Arduino module), so I decided to make a wet temperature zigbee node.
Note!!! Students who do not have a zigbee gateway should not do this, because it requires a zigbee gateway for communication. If not, you will not be able to connect.
But you can replace the module with a WIFI module. It has 0 code anyway. Just select WIFI communication when selecting the module.
Project requirements:
1. Low power consumption operation requires disposable batteries to run for more than one year.
2. The size is very small, at least no more than 10cmx10cm.
3. Humidity temperature detection should be as accurate as possible.
First of all, in order to save power consumption, I omitted the LDO and directly used the battery to power the module. The voltage of the disposable lithium battery is exactly 3.6v, which is within the voltage range of the module, so there is no need for LDO voltage stabilization at all.
But considering that some places are powered by power, I added a micro usb interface and provided a 3.6v output LDO
First, add an energy storage filter to the external power supply, and then use the anti-backflow diode
Next, consider how to switch between battery and external power supply. A CDSN blog gave me a DEMO as shown in the picture.
The following circuit diagram can be drawn according to the official DEMO.
Purchase of modules
Log in to Tuya official website www.tuya.com
Click on the upper right corner to enter the IOT platform
Log in. If you don’t have an account, it’s easy to register one.
After entering, click Product Development in the left column
Then click Create Product on the right
Then select the security sensing category
choose
Choose communication method zigbee. If you don’t have a zigbee gateway, you can choose WIFI.
Then fill in the name and model and create the product. Select the functions you want.
Next APP page Because we are not enterprise users, so
Next, choose the module model because there is only one
Then!!!Attention!!!You need to configure the firmware
Select the corresponding pins for these two. Remember, if you choose the wrong one, it will be overturned. When the time comes, connect it with flying wires. Don’t ask me why my actual picture shows a module with flying wires.
Then you will find that you can't click Next because you haven't debugged it yet.
Just take a quick look and that's it. Skip the next step of cloud configuration.
Scan the QR code in the next app and click "I'm done testing," and you can start trial production in batches.
Click to purchase the trial production module and you’re done.
Actual pictures provided
After connecting, the mobile APP page
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