太白金星

tuya temperature and humidity detection

 
Overview

1. Arduino nano+Tuya wb3s module implements Tuya smart temperature and humidity meter, and integrates OLED to display temperature and humidity.

2. I have the nrf24l01 module on hand. If I add nrf24l01, I can change it to a 2.4G spectrum analyzer.

3. The wb3s module has the same size as the esp8266-1 module, so an esp8266-1 pin header is defined.

2010-02-20 

(1) Since the Tuya module also uses serial port communication, the arduino upload program needs to be pulled out from the baseboard.

(2) At first, the rest pin of SHT30 was not connected directly to the ground, causing the temperature and humidity reading to fail. Fortunately, the circuit board can be cut off. Shorting the rest pin to 3.3V can still work normally. Normally, a 10K resistor needs to be connected to 3.3v. The circuit has been updated correctly

        https://github.com/ControlEverythingCommunity/SHT30/tree/master/Arduino This is the code of sht30. Directly compiling the serial port can input temperature and humidity normally.

        Next, let’s debug the oled and Tuya modules.

(3) I wanted to debug the software during the Chinese New Year, but it turned out that the domestic arduino nano could not be programmed after several times of programming. There was no way to use Uno to re-program the bootloader of the nano during the holidays and revive it.

(4) At present, the code for sht30 and oled display has been copied and pasted (it is difficult to write the code, the original copyright is still there, I do not retain any copyright, you can use it if it suits you, the code file sht30_oled.ino)

         Tuya Unicom doesn't have time to do it right now, it's too busy with work. There is no way to catch up on the Tuya homework. I will continue to complete it when I have time. Thank you Tuya for the coupons and Lichuang for the coupons.

(5) Follow-up updates are continuing. .

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2024-11-22 20:57:28

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

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号