Search |
||
Adding a Humidity Sensor to Sun SPOTPosted by lucastorri on January 8, 2008 at 9:02 AM PST
Happy new year for everybody! Last month I got a Sun SPOT from a friend that came back from US and I can say that the kit is very cool. Now, in my way to learn more about it I decided to add a Humidity Sensor to the board. This was my first experience on extending the SPOT hardware so in the beginning I was a little petrified but the process showed to be very simple. I got a free sample Humidity Sensor from Sensirion . I didn't imagined it was so little. After wiring up the sensor and adding the necessaries resistor and capacitor I powered it, but there was no way to know if it was working, so I started to implement the Sensor communication protocol using Java. The component has 4 connectors: VDD, for power supply; GND for ground; DATA , for bidirectional data transfer and for last SCK that is clock signal for controlling the transfer. I decided to use +3V and GND available in the SPOT board and D0 e D1 for SCK and DATA respectively. The result program you can download here. This program is responsible for achieving the Sensor data and convert it using the formulas given by Sensirion. Then, I connect the wires of the Sensor circuit to the SPOT board, programmed the software and surprisingly I got the expected results, showing that current temperature is near 29 Celsius degrees and the relative humidity is in 79%. SOrh and SOt are the values got directly from the Sensor. All this got me less than 2 hours. Using the Sensor Data Sheet and SPOT Javadoc and documentation as reference I can say that this task was incredibly easy to do. »
Comments
Comments are listed in date ascending order (oldest first)
Submitted by zjhz221 on Tue, 2008-01-08 21:44.
å¤§å®¶è¦æœ‰æ‰“å·¥æ„识。ä¸è¦æ€»è°ˆ
æå·žè£…饰
æ¬å®¶å…¬å¸
装饰公å¸
æå·žè£…修公å¸
装潢公å¸
办公室装修
æå·žå®¶æ”¿å…¬å¸
æå·žè£…饰公å¸
办公室装修
æå·žå¼€é”
æå·žè£…饰公å¸
æå·žå¼€é”æœåŠ¡
æå·žç©ºè°ƒç»´ä¿®
æå·žå¸‚装潢公å¸
å¼€é”å…¬å¸
æå·žè£…修网
æå·žæ´—衣机维修
写嗿¥¼è£…ä¿®
æå·žå®¶æ”¿
æå·žç©ºè°ƒç»´ä¿®ä¸å¿ƒ
æå·žæ´—衣机维修
æå·žè£…潢公å¸
æå·žå®¶æ”¿å…¬å¸
æå·žè£…修公å¸
装饰网
æå·žå®¶å±…装修
新房装修设计
æå·žè£…ä¿®
æå·žæ²¹çƒŸæœºç»´ä¿®
æå·žè£…饰
æå·žç©ºè°ƒç»´ä¿®éƒ¨
装修公å¸
室内装潢
装饰设计公å¸
æå·žç©ºè°ƒç»´ä¿®
æå·žè£…饰公叿„Ÿæƒ…,关键是è¦çœ‹è‡ªå·±èƒ½ä¸èƒ½æœ‰å‘展
Submitted by wenchun on Wed, 2008-05-21 21:29.
If you added a temperature and humidity sensor, you could get a pretty credible weather map of the US refreshed at a rate that's not even thought about now.
Digital Frames |
||
|
|