-
Newbie level 2
sensirion sht10 tinyos
Hi,
I am really desperate for help now 
I have a crumb128 module with an ATmega128 processor (TinyOS 1) http://www.chip45.com/download/Infos...128_080715.pdf and a sensirion sht10 digital temperature and humidity sensor http://www.sensirion.com/en/pdf/prod...nsor-SHT1x.pdf
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.
-
Advertising
-
Newbie level 6
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)
-
Advertising