I am relatively inexperienced with electronics so be gentle please. I
I am trying to interface a VEML7700 photodiode sensor with a firebeetleFirebeetle ESP32 using platform.io and arduino framework. The
The connection and library usage was very straightforward so iI got it up and running almost immediately. The
The schematic is onin the image
The problem is when iI tried to measure the power consumption. According to the datasheet, the VEML7700 should consume around 40-60uA60 µA. When iI measure the power consumption with it connected on the esp32 iI get 540uA540 µA. If iI disable the sensor iI get a 480uA480 µA consumption, which means that it turns off, and there is a 480uA480 µA draw somewhere.
The strangest thing happens when you disconnect the Vcc. The sensor still works and outputs data.
If iI do the same thing with another sensor (BME280 barometric sensor) connected on its own, iI get an equivalent consumption (around 500uA500 µA)
if iIf I connect both of them in series, iI get double the power consumption (around 1mA1 mA).
theThe same consumption happens even if iI dont initialize the i2c bus. Or even if iI have the SDA & SDL completely disconnected.
ifIf you connect the sensors that to a power supply directly with 3.3V anand Vin, you get the consumption that they say on the datasheet (around 50uA50 µA each), so iI am off by an order of magnitude, even if iI have the sensors disabled on the code.
I tried the same thing on an arduino NANO with a single sensor and iI get 80uA80 µA with the sensor enabled and 20uA20 µA with the sensor disabled, so this appears to be working correctly.
Anyone hasDoes anyone have any idea what may the reason may be? Thank
Thank you.
Edit: the same thing happens with the esp32 dev kit 4 which is the official dev kit