ADC continually samples input at 1kHz writing samples into a circular buffer storing 1000 values (1 second). On voltage change the programme stores the previous second of data and continues to sample for a further 5 seconds at 1kHz. Programme reorders the data stored in the circular buffer so last sample recorded is the 1000th sample and the sample stored after the last sampled value before the voltage change (oldest recorded sample) is set as the 1st sample in the 1 second of data previous to voltage change. All data is then written sequentially from sample 1 to 6000 onto a micro SD card.

Dependencies:   SDFileSystem mbed

Fork of BoyProject_ADC_Compression_Test by John Toner

Download repository: zip gz

Files at revision 2:c71033edc110

Name Size Actions
[up]
SDFileSystem.lib 68 Revisions Annotate
main.cpp 7680 Revisions Annotate
mbed.bld 66 Revisions Annotate