- #1
Stonestreecty
- 20
- 3
- TL;DR Summary
- How read a sensor (acs712) a number of times, add them all up, then divide them by the number of reads?
Hi,
I would like to read a sensor (acs712) a number of times (20), add them all up, then divide them by the number of reads. So I can get an average. to give me a sort of analogue "debounce". Am I guessing the sum function?
I sincerely appreciate any advice you can all give me, I'm incredibly excited about learning all of this! Many thanks.
I would like to read a sensor (acs712) a number of times (20), add them all up, then divide them by the number of reads. So I can get an average. to give me a sort of analogue "debounce". Am I guessing the sum function?
I sincerely appreciate any advice you can all give me, I'm incredibly excited about learning all of this! Many thanks.