Si7051 Temp Sensor

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

MarkW
Flowcode v5 User
Posts: 115
Joined: Thu Sep 17, 2009 1:30 pm
Has thanked: 3 times
Been thanked: 11 times
Contact:

Si7051 Temp Sensor

Postby MarkW » Fri Dec 15, 2017 11:26 am

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

User avatar
LeighM
Matrix Staff
Posts: 1231
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 310 times
Been thanked: 447 times
Contact:

Re: Si7051 Temp Sensor

Postby LeighM » Fri Dec 15, 2017 12:08 pm

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:
Attachments
Si7050.fcfx
(7.46 KiB) Downloaded 4 times

MarkW
Flowcode v5 User
Posts: 115
Joined: Thu Sep 17, 2009 1:30 pm
Has thanked: 3 times
Been thanked: 11 times
Contact:

Re: Si7051 Temp Sensor

Postby MarkW » Fri Dec 15, 2017 1:28 pm

Hi Leigh

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

User avatar
LeighM
Matrix Staff
Posts: 1231
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 310 times
Been thanked: 447 times
Contact:

Re: Si7051 Temp Sensor

Postby LeighM » Fri Dec 15, 2017 1:30 pm

Yes, I spotted that. Why, is it giving you problems?

MarkW
Flowcode v5 User
Posts: 115
Joined: Thu Sep 17, 2009 1:30 pm
Has thanked: 3 times
Been thanked: 11 times
Contact:

Re: Si7051 Temp Sensor

Postby MarkW » Fri Dec 15, 2017 1:55 pm

will try it little later....just asking FC vers for now