[琪琪雜貨舖]

2016年2月14日 星期日

【CHICHI ETUTOR@ARM/MIPS/PPC】TEMPERATURE MOnitoring _ SHT20 _ HWMON



1. Introduction : Adding temperature monitoring function into boards with SHT20 humidity and temperature sensor.

2. SHT20 : Datasheet

3. SHT20 modules:  (from CYESS)



4.  SHT20 drivers :  compile it to SHT20.ko (modified the original one and could be loaded as a HWMON) 




5. Run in filesystem and  monitoring the temperature : 

//load the driver
root@ubuntu:/home/lawrence# insmod  sht20.ko 

//check if the temperature can be read
root@ubuntu:/home/lawrence# sensors
sht20-i2c-1-40
Adapter: s3c2410-i2c
temp1:         +26.10 C  


6. Graphic monitoring in ubuntu:
root@ubuntu:/home/lawrence# sudo apt-get install hardinfo   , show the temperature in ubuntu "system profiler and benchmark"






0 意見:

張貼留言

[琪琪雜貨舖]