Electronic – Embedded system-current draw logging

current measurementdataloggerembeddedvoltage measurement

I have an embedded application that wakes up every 15 minutes and performs some specific function for a period of two minutes.

I need to log the current consumption of this specific function on the embedded board say for a period of two weeks and see if there was any unwanted current consumptions caused due to some unknown software cases.

I am thinking of buying a cheap NI DAQ. I would like to have some suggestion on how to go about this task.

Best Answer

My initial presumption is that software cases that will lead to increased current consumption are those that result in subsystems being powered for longer than expected.

At a first-pass (and without needing any extra hardware) I would suggest that in firmware you log the amount of time that the processor is "awake". This will check that you are in fact only in full-speed mode for 2 minutes. The longer you spend in full-speed mode, the higher the average current draw.

Also look for peripherals whose power is controlled by your embedded system and log their on/off periods. Again, any logged event that is longer than an expected deviation may be indicative of a problem.