New fast data logging sketches

Be sure to look at this logger http://arduino.cc/forum/index.php/topic,153598.0.html.

It logs multiple analog pins to a text file.

It can log two or three analog pins on a Due at 1000 Hz and all Due analog pins at about 500 Hz.

All 16 Mega analog pins can be logged at 100 Hz.

Here is an example Mega file with all 16 pins read every 10 ms. The pins are floating so the values trend to zero due to charging the ADC sample and hold cap.

PERIOD_USEC,10000 ADC0,ADC1,ADC2,ADC3,ADC4,ADC5,ADC6,ADC7,ADC8,ADC9,ADC10,ADC11,ADC12,ADC13,ADC14,ADC15,Overruns 528,466,429,402,388,372,362,352,370,356,361,350,339,346,341,342,0 407,414,409,398,389,376,365,352,352,347,349,344,335,337,334,337,0 365,380,387,386,383,376,368,354,345,342,343,340,333,333,330,332,0 345,355,364,368,371,369,366,352,343,341,342,340,335,335,333,335,0 329,333,339,343,347,348,348,338,328,326,326,325,321,321,318,322,0 329,330,333,337,341,343,344,335,328,328,328,327,324,324,321,321,0 315,315,316,318,321,324,325,320,315,315,315,315,313,313,313,313,0 311,310,311,311,313,315,316,311,307,307,307,307,305,305,304,303,0 305,304,305,306,307,308,310,305,303,304,305,305,304,305,304,302,0 292,291,291,291,292,292,293,290,288,288,288,288,287,288,288,286,0

before taking a text to the Wiki I started with a google document, which everyone with the link can edit directly or put comments in . https://docs.google.com/document/d/1lGFHpHPfvfGxSzjU8yo5DBLjO2pM0Bl7nwp85h4pftI/edit?usp=sharing

pls have a first look, put your comments in that and then we can decide to create a (sticky?) post in Arduino:Storage to promote this document and the ongoing work on it. As soon as we collaboratively decide, that it`s kind of ready for the wiki, we can copy or link it there. Maybe over time we can identify some named editors keeping the edit access and everyone else can only comment. Let´s see how this works, it´s also the first public worldwide community document editing for me :)

And everyone please feel free to edit, modify, restructure whatever you want in this document. In the worst case we can revert to any previous version thanks to the cloud :o)

As this document is stored under my account @ google I hereby reserve all rights to remove any inappropriate, abusive or whatsoever unhelpful stuff that may come in; but of course the technical content remains owned by the community.