In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
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.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.