MCC Melody Example Components: ADCC Spike Detect, Polled- from Callbacks-Implementation

Опубликовано: 02 Октябрь 2024
на канале: Microchip Developer Help
77
2

Solution project for this video on GitHub: https://github.com/microchip-pic-avr-...
Getting Started with MCC Melody Example Components playlist:    • Getting Started with MCC Melody Examp...  

In the ADCC Spike Detection Example, ADC with Computation Spike Detection is visualized with the Data Streamer. The spike detection can be modified to observe the change in sensitivity to the rate of change of the ADC samples. Here, a change (above a set threshold) in the ADC result between successive conversions represents a "spike". Every 100 ms delay starts an ADC conversion and sends a Data Streamer frame. The code continuously checks for a spike and updates the adcResult_lastSpike and adcSpikeCount when spikes are detected. The video starts with the Callbacks Design Pattern of this example, moving to a Polled implementation.

Solution project for this video on GitHub: https://github.com/microchip-pic-avr-...