Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to solve many problems of arduino SHT1x

Shulou Source: shulou.com Published: 2022-06-01 17:19:05 10月03日 Update

This article introduces you how to solve many problems of arduino SHT1x, the content is very detailed, interested friends can refer to, hope to be helpful to you.

About solving the problem that arduino SHT1x library cannot be compiled on arduino1.0+ and the error in temperature and humidity measurement

The code cannot be compiled successfully on android IDE 1.0 +

You need to modify the SHT1x.h and SHT1X.cpp files to put the following code

# include "WProgram.h"

Modified to:

# if defined (ARDUINO) & & ARDUINO > = 100

# include "Arduino.h"

# else

# include "WProgram.h"

# endif

Also: there is a modified library in the attachment. Http://yun.baidu.com/s/1sjDaEzb

During the measurement, Temperature:-40.0099983215C /-40.0180015563F. Humidity:-4.44%

Need to troubleshoot the problem:

Whether the data and clock connections of arduino and SHT1x are correct

Whether 10k pull-up resistor is connected to the data pin of SHT1x or not, some of the resistors in this position on the pcb board are missed, which directly causes the program compiled on IDE1.0+ to be unable to measure correctly.

Many problems about how to solve arduino SHT1x are shared here. I hope the above content can help you to some extent and learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Questions measurements editing code content more resistors help yes success location interests guys partners files articles knowledge programs articles processes Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Huawei Xiaomi Microsoft vpn