Page 1 of 1

Si7051 Temp Sensor

Posted: Fri Dec 15, 2017 11:26 am
by MarkW
Hello

has anyone perhaps used the Si7051 temp sensor from Silabs?

having a hassle trying to get data out of this guy, uses I2C
but i cannot really make sense of their protocol

Also i am not sure what address to use...they say they
have 7 bit base address (0x40)...with 8th bit as W/R
100 0000 base addr
1000 0000 WR address is 0x80 for write
1000 0001 RD address is 0x81 for read

Is this correct assumption for starters?

Then first u need to set config register.....ask it to do temp reading.....collect data

i cant even get past setting the config register....hangs

Thanks

Mark

Re: Si7051 Temp Sensor

Posted: Fri Dec 15, 2017 12:08 pm
by LeighM
Hi Mark,
Yes, you are correct about the addresses.
I've done a quick starter, and attached, hope it helps (and hope it does not have bugs :wink:

Re: Si7051 Temp Sensor

Posted: Fri Dec 15, 2017 1:28 pm
by MarkW
Hi Leigh

Thanks....is that file for FC6? i am trying this on FC6

Re: Si7051 Temp Sensor

Posted: Fri Dec 15, 2017 1:30 pm
by LeighM
Yes, I spotted that. Why, is it giving you problems?

Re: Si7051 Temp Sensor

Posted: Fri Dec 15, 2017 1:55 pm
by MarkW
will try it little later....just asking FC vers for now