The Source for Java Technology Collaboration
User: Password:



Lucas Torri

Lucas Torri's Blog

Adding a Humidity Sensor to Sun SPOT

Posted by lucastorri on January 08, 2008 at 09:02 AM | Comments (2)

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.

07012008(007).jpg

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.

Captura_da_tela-Terminal-1.png

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.

08012008.jpg


Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • 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

    Posted by: wenchun on May 21, 2008 at 09:29 PM

  • 大家要有打工意识。不要总谈
    杭州装饰
    搬家公司
    装饰公司
    杭州装修公司
    装潢公司
    办公室装修
    杭州家政公司
    杭州装饰公司
    办公室装修
    杭州开锁
    杭州装饰公司
    杭州开锁服务
    杭州空调维修
    杭州市装潢公司
    开锁公司
    杭州装修网
    杭州洗衣机维修
    写字楼装修
    杭州家政
    杭州空调维修中心
    杭州洗衣机维修
    杭州装潢公司
    杭州家政公司
    杭州装修公司
    装饰网
    杭州家居装修
    新房装修设计
    杭州装修
    杭州油烟机维修
    杭州装饰
    杭州空调维修部
    装修公司
    室内装潢
    装饰设计公司
    杭州空调维修
    杭州装饰公司感情,关键是要看自己能不能有发展

    Posted by: zjhz221 on January 08, 2008 at 08:44 PM



Only logged in users may post comments. Login Here.


Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds