I am planning on revisiting the ADC. Essentially, I want to try and get fast sample rates, on multiple channels, writing to uSD card. But initially I will work with a moderate sample rate on a single channel, writing to uSD card.
In the past, I have gotten fast sample rates to write to SDcard (50ksps), but was not able to get sufficiently clean ADC. And I'd like to get a list of things to try and see if I can make some progress. I suspect the biggest problem is the intermittent power draw of the uSD writing, and an impedance mismatch. In the past I used IntervalTimer to sample and place in a memory buffer, and within the loop checked for filled buffers to write to sdcard using sdfat library.
I've read through the various related postings, and have come across various suggestions. Many of them from Constantin's and Jp3141 posts. I've put them down as a list of things to try, and am looking on some further tips, but more importantly, help in prioritizing the list. Any input appreciated. I know it's possible to get a separate ADC, but I see this also as a learning experience. I'll try and document as a go, and post something more useful when I'm done.
Not that it matters too much, but I'll be working with T3.1 instead of T3.0 this time around.
A. No electrical connections to PC or other things with power sources. No USB, etc.
B. battery power for T3
b1. deliver power at 3.3V
b2. capacitors: 0.1uF/100uF
b3. Voltage Regulator or LDO? Best type to manage a battery source with these current levels?
C. direct battery power for uSD adapter (rather than from T3)
c1. deliver power at 3.3V
c2. capacitors: 0.1uF/100uF
D. bypass the 5V->3.3V converter (74cx125) on uSD adapter, and deliver power directly. Not sure best way to do this.
E. Use differential ADC (A10/A11 || A12/A13)
F. Use Internal Reference (1.2V)
G. Use a voltage reference chip. LM4132: http://www.ti.com/lit/ds/symlink/lm4132.pdf
H. Use a buffer for the ADC. AD8137: http://www.analog.com/static/imported-files/data_sheets/AD8137.pdf
I assume a buffer essentially acts as a continuous sample & hold.
As I'm writing this, I think I should try filling up RAM with the samples, and then writing to uSD card. And compare that to writing to uSD card in 512 byte blocks as I go. At least it will give me a good idea if it's really the uSD card power draws that are creating problems.
In the past, I have gotten fast sample rates to write to SDcard (50ksps), but was not able to get sufficiently clean ADC. And I'd like to get a list of things to try and see if I can make some progress. I suspect the biggest problem is the intermittent power draw of the uSD writing, and an impedance mismatch. In the past I used IntervalTimer to sample and place in a memory buffer, and within the loop checked for filled buffers to write to sdcard using sdfat library.
I've read through the various related postings, and have come across various suggestions. Many of them from Constantin's and Jp3141 posts. I've put them down as a list of things to try, and am looking on some further tips, but more importantly, help in prioritizing the list. Any input appreciated. I know it's possible to get a separate ADC, but I see this also as a learning experience. I'll try and document as a go, and post something more useful when I'm done.
Not that it matters too much, but I'll be working with T3.1 instead of T3.0 this time around.
A. No electrical connections to PC or other things with power sources. No USB, etc.
B. battery power for T3
b1. deliver power at 3.3V
b2. capacitors: 0.1uF/100uF
b3. Voltage Regulator or LDO? Best type to manage a battery source with these current levels?
C. direct battery power for uSD adapter (rather than from T3)
c1. deliver power at 3.3V
c2. capacitors: 0.1uF/100uF
D. bypass the 5V->3.3V converter (74cx125) on uSD adapter, and deliver power directly. Not sure best way to do this.
E. Use differential ADC (A10/A11 || A12/A13)
F. Use Internal Reference (1.2V)
G. Use a voltage reference chip. LM4132: http://www.ti.com/lit/ds/symlink/lm4132.pdf
H. Use a buffer for the ADC. AD8137: http://www.analog.com/static/imported-files/data_sheets/AD8137.pdf
I assume a buffer essentially acts as a continuous sample & hold.
As I'm writing this, I think I should try filling up RAM with the samples, and then writing to uSD card. And compare that to writing to uSD card in 512 byte blocks as I go. At least it will give me a good idea if it's really the uSD card power draws that are creating problems.