I wrote this sketch that instead of reading each analog value and
sending it through serial, it stores the values in RAM and then sends
them which it is a lot faster. With a 16 prescaler i could achieve
61Ks/s and with a 8 prescaler 94Ks/s but this is over the maximum spec
ADC clock of 1Mhz stated in the datasheet, so it must be done under
your own risk. For me it worked grate.
here is the file:
https://www.box.com/s/50860b6dcef77407fa0e
How I measured the sample rate: i had a ds1307 breakout board so i set
the square wave output to a frequency of 4096hz and using a serial
console i sent the commands and counted the samples per waveform.
Results:
16 prescaler: 15 samples per wave form
8 prescaler: 23 samples per wave form
Limitations
Only one channel A0
Disabled PWM output
Max 1024 samples (could be more but risking it to eat all available
RAM)
Because the change in the sample rate the software shows incorrect
frequency and time values because it has a fixed setting to 12Ks/s, so
if you want to actually measure time or frequency yo have to do the
math to correct the value that is shown.
Useful feature i would like to have but i dont know how:
Setting to change the 12ks/s in the pc software
Overlapping waveform
Waveform averaging
PD: May this project is not any more in development, if this is the
case maybe someone could orient me to other similar projects
Sorry for my english, im from Argentina
and Thanks for this great software.