Go Down

Topic: I can't use the H-Resolution Mode2 on my BH1750 light sensor (Read 35 times) previous topic - next topic

Winsu

Hello at all,

I have been using the H-Resolution Mode without any problem, I got a code done and It does a write with this valour 0x10 to set the H-Resolution Mode( the code explain that that mode is which is used).

In the datasheet BH1750, if you read how to set different modes, you notice that you should write this 0x20 to set H-resolution Mode, but in fact It measures each 1 lux writing 0x10, so that mode is set.This is the datasheet:

http://www.dfrobot.com/image/data/SEN0097/BH1750FVI.pdf

Maybe there will be somewhat when you use the wire to set a mode that I dont know, or something else, this is the part of code that set the mode:

void configure_BH1750()
{
  Wire.beginTransmission(BH1750_Device);
  Wire.write(0x10);        //set resolution to 1 lux  countinouosly H-resolution mode,each 120ms make a measure
  Wire.endTransmission();
}

To set H-Resolution Mode2 I would write : wire.Write(0x21), but It doesnt work, the sensor doesnt measure.

anybody knows what's going on??

Thank you!!!

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy