nRF52840 DK and BME280 with vcc from pin

Hello I use nrf52840 and BME280. I plugged it 
GND GND
SDA 45 (P1.13)
SCL 47 (P1.15)
VCC 32 (P1.00)

I use timer to refresh data and on the first line of the code I init gpio as output I set HIGH state (my voltage meter show me 3V on this pins) and my BME280 I successfully inited (I don't turn off the power on this pin) When I made a measure I receive 50% humidity and 21 temperature which is wrong values. When I connect vcc with vdd on dk board I got correct values. I remove voltage regulator from bme280. Where can be a problem ?

Here is a pin init code 

I use SetGpio to move on on high.

Parents
  • Hi,

     

    If you are to power anything directly from a GPIO, please ensure that the external device isn't exceeding the current consumption that a GPIO can deliver. If you see high ripple, please ensure that the GPIO configuration is in "high drive".

     

    When I connect vcc with vdd on dk board I got correct values. I remove voltage regulator from bme280. Where can be a problem ?

    This points towards the voltage on the external sensor needs time to settle. Have you ensured that there is a delay between the voltage rising to a valid level and first sampling? Those parameters can be found in the BME280 datasheet.

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    If you are to power anything directly from a GPIO, please ensure that the external device isn't exceeding the current consumption that a GPIO can deliver. If you see high ripple, please ensure that the GPIO configuration is in "high drive".

     

    When I connect vcc with vdd on dk board I got correct values. I remove voltage regulator from bme280. Where can be a problem ?

    This points towards the voltage on the external sensor needs time to settle. Have you ensured that there is a delay between the voltage rising to a valid level and first sampling? Those parameters can be found in the BME280 datasheet.

     

    Kind regards,

    Håkon

Children
Related