Try the new version of ChibiOS/Nil. It has major improvements and a new API. https://github.com/greiman/ChNil NilRTOS is a tiny RTOS library for AVR Arduino boards. The base code for NilRTOS was written by Giovanni Di Sirio, the author of ChibiOS/RT. http://www.chibios.org/dokuwiki/doku.php To install NilRTOS, copy the NilAnalog, NilRTOS, NilTimer1, and TwiMaster folders to your Arduino/libraries folder. The data logger examples requires a version of the SdFat library that is newer than 20130701. A newer version of SdFat is included in the libraries folder. The latest versuin of SdFat is at: https://github.com/greiman/SdFat SD logger examples require a quality SD card to avoid overruns. Adjust the number of ADC channels and the interval between data points to match the capabilities of your SD card. Please read NilRTOS.html for more information. diff_ru.txt is a diff of the original files with the library version.