TinyOS (probomega128) and Sensiron SHT sensor

Status
Not open for further replies.

h0wi3

Newbie level 2
Joined
Aug 3, 2009
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,300
sensirion sht10 tinyos

Hi,

I am really desperate for help now

I have a crumb128 module with an ATmega128 processor (TinyOS 1) https://www.chip45.com/download/Infosheet_Crumb128_080715.pdf and a sensirion sht10 digital temperature and humidity sensor **broken link removed**

What confuses me is how am I going to read the data ? I connected the serial data port to the MOSI PB2 port and am using the probomega128 platform. I have looked up on reading data off MOSI, but most of the them are for Mica2.

Anyone care to start me off ? an example will be greatly appreciated !!!

Thanks in advance.
 

sensiron

Don't use the hardware spi.
Simply do it by hand - you need to connect data to one pin and clk to another pin (any general i/o pins will do).
Now just send appropriate commands like:
1.set/reset data bit
2.change clk pin
3.change clk pin
4.repeat 1 untill command is send

Few lines of code and it works like charm in software.
Remember that you need to wait xx ms before you can read down measurement results (time depends on measurement precision - see datasheet)
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…