Page 1 of 1

BH1750FVI - i2c light sensor?

Posted: Tue Nov 24, 2020 11:53 am
by viktor_au
Has anybody have had an experience with this i2c device?

Re: BH1750FVI - i2c light sensor?

Posted: Thu Nov 26, 2020 12:03 pm
by Benj
Hello,

I've had a quick look and it looks fairly straightforward. You need to pay attention to the DVI pin when initialising, this needs to be pulled low for at least 1us before pulling it high to startup the device.

Page 10 of the datasheet shows how to write a command op code and how to read a measurement using I2C commands.

Let us know how your getting on.

Re: BH1750FVI - i2c light sensor?

Posted: Fri Nov 27, 2020 11:41 am
by viktor_au
Thank you Ben.
I didn't expect you to write... thanks.
I thought someone might used this sensor in the project.
I have ordered one module and will try to use it in a few weeks.
The reason I posted a question about it - that I have an interest in in using this sensor behind the rear window of a motor-home. Sensor does allow to change the MTreg ( measurement time regisiter ) value, to change the sensitivity as well. I read somewhere on Arduino forum about possibilty to adjust sensor to work behind the glass (create some kind of a compensation?)
I thought someone might did it.
Thanks again.
Will keep reading the datasheet.

Re: BH1750FVI - i2c light sensor?

Posted: Fri Nov 27, 2020 3:51 pm
by Benj
I've written a v9 component for it now and can port it to v8 if it would be useful but there's not much code there so should be doable with the I2C master component.

Let me know how you're getting on and if your finding it tough then I'll see what I can do for you.

Re: BH1750FVI - i2c light sensor?

Posted: Fri Nov 27, 2020 10:01 pm
by viktor_au
Understood Ben.
Good news for V9 FC users: more components!