This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52840 VBUS state when on battery power

Hello,

I have custom board with nRF52840. Most of the time It works on USB power, but it also has a battery. It has some peripherals that powered via USB too (LED w2812b array). When USB is disconnected I want it to go to power save mode, so I need to shut down LEDs. I can do it via LED control pin. But I see that on the LED power pin I still have 2.5V (maybe battery is not fresh).

Is it possible that battery current goes through VBUS into USB circuit?

Parents Reply Children
  • I use an array of w2812b RGB LEDs. They are controlled via commands. I use SPIM to deliver commands. LED changes its color after receiving a command, and stays in this state until it receives command with new color. Particular command is basically a sequence of bits representing RGB color bytes.

    I don't think that leakage occurs in the LEDs, because even if all LEDs are physically disconnected, I have current around 2.5V on the power pin for those LEDs.

  • Ok, then I don't know what the problem is. But in general if you remove the power to an external device, you must also disconnect the data lines between the nRF52 chip and the external device, otherwise you might power the external peripheral through the data lines.

    What you can do is to set all GPIOs on the nRF52 to inputs, then they will all be disconnected, and you can be sure that no leakage current is going out from the GPIOs. If you still see 2.5V on the 5V line there must be something external to the nRF52 that is leaking.

Related