The microcontroller used on the Preon32 radio module provides a large number of internal ADCs (Analog-to-Digital Converters). After an appropriate configuration, analog voltage values can be recorded at the connection contacts of the microcontroller.

In this example for the PreonVM, 1 of 2 instances of the ADC is used in the microcontroller on the radio module Preon32. Each ADC has several channels, with 6 out of 16 channels collecting data at this point. The memory space of 1024 bytes provided is continuously filled with measurement data. The ADCSamplerListener creates events for certain fill levels of the memory. The TriggeredADCSampler converts the acquisition of the measured values in parallel. For this, the channel list, the memory area and the time interval for the sampling are transferred.

Copy to Clipboard