Arduino Library for Sensirion SHT1x Humidity and Temperature Sensors. The library block SHT1x reads the relative humidity [%] and temperature [°C] from a SHT1x sensor connected to an Arduino board, DATA pin from SHT1x is connected to digital "Pin 6" and SCK pin to "Pin7". Library block also provides error message.
A sample model is provided to show how to use the library block to read the values from a SHT15 sensor connected to an Arduino Duemilanove and send them over the serial port; a serial terminal is then used to monitor temperature and humidity on a PC.
Note: This library doesn't use the Simulink built-in support for Arduino, it uses the "Embedded Coder Support for Arduino Hardware", it can be downloaded here http://www.mathworks.com/matlabcentral/fileexchange/30277-embedded-coder-support-package-for-arduino
The target supports many Arduino boards like Uno, Mega 2560 and Duemilanove.
Since we are not able to publish executable files (mex) on File Exchange, we need to compile
the S-Function in the library block before use it. Read the "readme.txt" for instructions.
Antonio Beltran (2023). Arduino Library for Sensirion SHT1x Humidity and Temperature sensors. (https://www.mathworks.com/matlabcentral/fileexchange/44432-arduino-library-for-sensirion-sht1x-humidity-and-temperature-sensors), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!