Hi, I'm currently trying to determine the power consumption of my nrf51DK during different states of my program using an oscilloscope. To do so, I am using an external power supply in series with a resistor on the external power supply pins, and then using an oscilloscope to measure the voltage across the resistor. Here is a picture of my setup:
Regardless of whether I turn on Bluetooth advertising or not or use the ADC or not, the voltage on the oscilloscope looks like the following picture
I am not sure why there is a periodic signal with a period of ~2ms, despite there being nothing in the code that executes at that frequency (That I set up, at least). Is there any issue of the way I am trying to measure power?
Any help would be greatly appreciated! Thanks