Add new sensor (Ambient Light Sensor - VEML6030)

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
knighToFdemonS
New user
Posts: 9
Joined: 23 Mar 2024, 16:44

Add new sensor (Ambient Light Sensor - VEML6030)

#1 Post by knighToFdemonS » 24 Apr 2024, 14:27

Can you add support for the VEML6030 Light Sensor?
You can find the library here: https://github.com/sparkfun/SparkFun_Am ... no_Library
(the lowpower/sleep-mode is not important)

I know its not as easy as the Adafruit-Sensor.

Thank you in advance!

User avatar
Ath
Normal user
Posts: 3557
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Add new sensor (Ambient Light Sensor - VEML6030)

#2 Post by Ath » 24 Apr 2024, 14:52

What's special about this sensor that you can't get from either the already supported VEML6040, VEML6070 or VEML6075 ?
/Ton (PayPal.me)

knighToFdemonS
New user
Posts: 9
Joined: 23 Mar 2024, 16:44

Re: Add new sensor (Ambient Light Sensor - VEML6030)

#3 Post by knighToFdemonS » 25 Apr 2024, 10:33

Thank you, ive added the plugins to my build but after trying these sensor-configs, i noticed they only have address 0x10/0x11 available (i'd have to bridge the pins to change the address to 0x10, default is 0x48).
And 2nd, one is a sensor for rgb-color and the other one is a UVA/UVB sensor...but my sensor is a luxmeter. they all return different values, so i guess i cannot use any of the suggested sensors.

User avatar
Ath
Normal user
Posts: 3557
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Add new sensor (Ambient Light Sensor - VEML6030)

#4 Post by Ath » 25 Apr 2024, 11:04

Ah, I got the impression you could calculate the lux from available values, but that's not the case.

I've ordered a VEML7700, that appears to be compatible in lux range with the VEML6030 but is quite a bit cheaper :?, and have to check specs if they are also (fully) software-compatible.
Any reason for using a VEML6030 over a VEML7700? (At quick glance the specs seem quite compatible)

Don't understand what you are trying to say about I2C addresses, as that requirement is determined by the sensor, not by the driver, and the plugin usually supports what is available on the sensor side.
/Ton (PayPal.me)

knighToFdemonS
New user
Posts: 9
Joined: 23 Mar 2024, 16:44

Re: Add new sensor (Ambient Light Sensor - VEML6030)

#5 Post by knighToFdemonS » 25 Apr 2024, 11:15

Looks compatible, yeah. Just raw ambient light and lux.
No particular reason, just grabbed the first lux-sensor on a breakout board (by sparkfun) while i was ordering other stuff. Yes, i should have done more research in advance.

sorry, i was just saying that the default-address was not available from any of the other sensor-plugins.

(im trying to create a new sensor and do it myself :? but ive just managed to create my own build, so dont bank on me)

thank you for your help!

User avatar
Ath
Normal user
Posts: 3557
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Add new sensor (Ambient Light Sensor - VEML6030)

#6 Post by Ath » 25 Apr 2024, 22:55

We already have 3 Light/Lux sensors supported, P010 - BH1750, P015 - TSL2561 and P074 - TSL2591. Only P015 has RTD documentation available, and P010 has the old Wiki docs available.
They don't have a max. lux range comparable to the VEML6030/VEML7700 but are fine sensors, and are available in nearly all ESPEasy builds.
/Ton (PayPal.me)

knighToFdemonS
New user
Posts: 9
Joined: 23 Mar 2024, 16:44

Re: Add new sensor (Ambient Light Sensor - VEML6030)

#7 Post by knighToFdemonS » 13 May 2024, 11:44

Thank you for your help. Ive ordered and switched in the TSL2591, works out of the box. Ive taken a deeper dive into the lux-calculation and noticed some flaws with this sensor.
So if I could. i'd rather still use the VEML6030/VEML7700, if you can manage to add them. Thank you for all this help so far!! Really appreciate all the helps and developement you guys are doing. I will show my whole project when its kindof done, none of would be possible without the flexibility of ESPEasy <3

TD-er
Core team member
Posts: 8778
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Add new sensor (Ambient Light Sensor - VEML6030)

#8 Post by TD-er » 13 May 2024, 12:04

What kind of flaws?
Is it something we can work around in software?

For some sensors I added some "overdrive" mode where I detect 'clipping' of the IR channel and then just assume the same ratio as before the clipping and then extend the calculations for high Lux values like today.
Today it is > 120'000 Lux where some sensors start clipping before or around 65k.

You can also add some cheap ND filter in front of the sensor.
Those typically are sold with an "attenuation" or "darkening" factor on them like 2x.
This means you simply need to multiply the measured values in the formula field with this factor (e.g. %value%*2 for 2x ND filter)

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests