veebch / photon

A DIY incident light meter
GNU General Public License v3.0
490 stars 42 forks source link

BH1750 instead of BH1745 #16

Closed Mojojojooo closed 8 months ago

Mojojojooo commented 1 year ago

Hi, I'm planning to build this and currently BH1745( Colour and luminance sensor) has been unavailable for a long time. Since the calculation part just shows that luminance is used. Can BH1750 which is just a luminance sensor be used instead of BH1745 ?

veebch commented 1 year ago

I'm pretty sure it can be. There are a few lines that are using the colour info from the BH1750 but they could be refined a bit. The other option is to use basic components (photodiode) with the speed needed for a flash mode. Maybe someone could chip in on how to refine the light measurement.

Mojojojooo commented 1 year ago

How are the RGB values being used for calculation? As 1750 won't have RBG values any idea how can we bypass it ?

veebch commented 1 year ago

They are only used in determining the colour of the EV reading. It should be easy to bypass.

Mojojojooo commented 1 year ago

Do you recommend any default value for RGB ?

veebch commented 1 year ago

I would just set it to white (255,255,255)

polygonfuture commented 1 year ago

@Mojojojooo BH1745 is not unavailable.

Pimoroni keeps it in stock regularly: https://shop.pimoroni.com/products/bh1745-luminance-and-colour-sensor-breakout?variant=12767599755347

Mojojojooo commented 1 year ago

@polygonfuture I mean to say it's hard to get it in India. So I was looking for an alternative.

veebch commented 1 year ago

Figuring out what hardware we need to use to add a flash mode would be good. I will retry my experiments with a basic photodiode, but I am still hoping someone with experience of working at such high speeds will chip in.

veebch commented 8 months ago

No one chipped in, but I made an alternative. I'll share it as soon as it's ready

preview