That's brilliant, a massive THANKYOU !!
It's an SE95D temp sensor, (in it's datasheet it says its a direct, more accurate replacement for an LM75, but I'd missed there was an LM75 example)
I have borrowed heavily from the TMP102 library on the site to write a library.
Which I shall publish. If we all publish libraries for anything we use, suddenly we'll all have loads of bits we can just pick up and use !
Now, it will go out to 13 bits ! (I shall see if I can get it working at 13 bits!)
I had it datalogging the temperature in my dining room overnight last night (at 8 bits / 1 degrees C resolution).
it came up with an 11k .csv file, containing a record of temperature against time, taken at one minute intervals overnight.
I have a nice graph in excel this morning. You can see when the heating came on at 7 !
Tonight, it's getting a battery and going in the shed. What fun eh?!
cheers
Dave.
Hi all..
a C Question.
I'm reading 2 bytes out of a register on an I2C chip.
I put them in 2 char fields.
data[0], data[1]
The value is a 2's complement number, and its 11 bits (naturally left justified), with the remaining 5 bits not used.
How on earth do I get those 11 bits into a float.
Google (after 4 hours googling) has just not been my friend.
any help would be much appreciated.