I'm trying to understand how to data log based on events instead of set time intervals. I would like to record the number of times a particular digital pin goes HIGH, the duration of time in HIGH, and the peak voltage of the analog in that commands the digital pin. I've looked at many data logging videos but they all seem to be based on timed intervals rather than events. Do you know of a resource that can help me understand how to data log based on events? Thanks
Yes- you want to use interrupts instead. I explore that in this video : ua-cam.com/video/H20QEC0Hgtk/v-deo.html . Rather than triggering telemetry, interrupts can be used to write data.
I'm trying to understand how to data log based on events instead of set time intervals. I would like to record the number of times a particular digital pin goes HIGH, the duration of time in HIGH, and the peak voltage of the analog in that commands the digital pin. I've looked at many data logging videos but they all seem to be based on timed intervals rather than events. Do you know of a resource that can help me understand how to data log based on events? Thanks
Yes- you want to use interrupts instead. I explore that in this video : ua-cam.com/video/H20QEC0Hgtk/v-deo.html . Rather than triggering telemetry, interrupts can be used to write data.
Thanks! Good tutorial.
Glad it was helpful!