How to configure to wake up from SYSTEM_ON and SYSTEM_OFF using RTC2 (periodically) and from GPIO pin change

Hi,

I need to configure an nRF52832 to wake up periodically from SYSTEM_ON and SYSTEM_OFF and, also, when a GPIO pin changes.

Where can I find sample code and docs for this?

I'm using nRF Connect SDK version 1.9.1 and Visual Studio Code.

BR

Parents
  • Hi

    If you have matched the voltage for the PPK and DK (~2.7V) in the first image that measurement should be correct, but it looks very strange indeed, and there shouldn't be any current measurements looking like this, so it does indeed look like the PPK might have some issue with it. To confirm, can you try with the PPK2 in Ampere mode as well, using a clean supply to power the DK as I explained in my last reply.

    You can't power the DK just from the PPK like in image 2, that won't result in a correct current measurement or behavior. 

    Best regards,

    Simon

  • Hi, let's see if it is better now.

    I inserted the coin cell battery, PPK-II in Ampere meter mode and connected like below:

    I started capturing data and pressed BTN1 for taking the SoC out from POWER_OFF.

    Here is how it looks like (full data set and close-up):

    The spikes are periodic, and in between them the current seems to fall to what is expected. I suppose the noise originates in the PPK's current sense signal-chain and the long sensing wires, as expected.

    The full dataset is attached here.

    According to your experience/knowledge, what's the origin of those peaks? They have a fast rise time and a slow exponential-like decay, like in a low-ESR capacitor charge discharge cycle.

    Thanks again.

    BR

    ppk-20220504T160437-data-logger.zip

Reply
  • Hi, let's see if it is better now.

    I inserted the coin cell battery, PPK-II in Ampere meter mode and connected like below:

    I started capturing data and pressed BTN1 for taking the SoC out from POWER_OFF.

    Here is how it looks like (full data set and close-up):

    The spikes are periodic, and in between them the current seems to fall to what is expected. I suppose the noise originates in the PPK's current sense signal-chain and the long sensing wires, as expected.

    The full dataset is attached here.

    According to your experience/knowledge, what's the origin of those peaks? They have a fast rise time and a slow exponential-like decay, like in a low-ESR capacitor charge discharge cycle.

    Thanks again.

    BR

    ppk-20220504T160437-data-logger.zip

Children
No Data
Related