ebeowulf17
- Joined Aug 12, 2014
- 3,307
You could use both rising and falling edge interrupts to detect when each cycle starts and how long it lasts. This would give you duty cycle. If you multiply peak current times duty cycle, you'll have average current, right? This way you you don't need so many samples to get meaningful averages.