# Faster Analog Read?

**URL:** <https://forum.arduino.cc/t/faster-analog-read/6604>\
**Category:** Frequently-Asked Questions\
**Created:** [April 20, 2008, 6:18pm UTC](https://forum.arduino.cc/t/faster-analog-read/6604 "2008-04-20T18:18:13Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [January 10, 2011, 1:30pm UTC](https://forum.arduino.cc/t/faster-analog-read/6604/21 "2011-01-10T13:30:28Z")

</div>

> Is it possible to get an analog result faster than 13 ADC clocks

No. Not according to the datasheet

> Does Arduino have separate sample-and-hold circuitry for each analog input pin

No. The channels are multiplexed. I wonder if you might have better luck with an external A/D converter.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [January 10, 2011, 3:49pm UTC](https://forum.arduino.cc/t/faster-analog-read/6604/22 "2011-01-10T15:49:18Z")

</div>

On this thread, someone succeeded in analog sampling at 360kHz (actually, he was operating the ADC at 8MHz--instead of the usual 1MHz--to achieve 360kHz), though I believe at reduced precision:  
[http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1242967991](http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1242967991)  
(I believe they also achieved 10 bits precision at 124kHz).  
Also of note is that gabebear is sending data at 2Mbit/s.

These figures are what we should be shooting for. Now that it has been shown to be possible, we can do it.

Since it appears the analog input pins don't each have dedicated sample-and-hold circuitry, I'll have to live with non-simultaneous sampling for multiple inputs. That's okay.

As far as using a dedicated ADC... As long as I'm running it through an Arduino, I don't think it will help my performance considerably, since it still has to be put through the serial connection, which seems to be able to do 2Mbit/s if you tweak it just right (but no more, at least not considerably more).

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [January 12, 2011, 3:49am UTC](https://forum.arduino.cc/t/faster-analog-read/6604/23 "2011-01-12T03:49:22Z")

</div>

> > Does Arduino have separate sample-and-hold circuitry for each analog input pin
> 
> No. The channels are multiplexed. I wonder if you might have better luck with an external A/D converter.

After thinking about it for a little while, I realized that my application (a phased array of microphones, with the processing done on the PC-side) doesn't require simultaneous sampling, as long as I know which analog input is being sampled and at what time. I would still have to interpolate between samples when combining the signals even if simultaneous sampling were possible.

And I've looked at different A/D chips and acquisition interfaces. No commercially sold and packaged DAQ device comes close to an Arduino (IF I can sample 8 analog signals at least at 8-bits and, say, 8kHz each... while streaming to my PC at almost 2Mbit/s) or some similar kind of microcontroller for a similar price. Since the Arduino seems to have such a rich community and because I like the relatively-easy-learn environment and because it's so cheap, I think it's a pretty good fit. I hope to later do some similar work with ultrasound in the \>1MHz range, but for that I will need a different microcontroller (or, actually, many microcontrollers, with the data captured initially onto their on-board SRAM, since I don't think I'll be able to stream that much data continuously at full duty cycle), since the typical Arduino-type microcontrollers don't support that many samples per second.

If I had thousands of dollars to spend, I would just buy myself some NI high-speed DAQ equipment and LabView (that's what I did before... I'm trying to replicate my senior thesis project using equipment that I own instead of my alma mader's equipment which I no longer have access to). But I don't have much of a disposable income right now.

Eventually, though, I'd like to get into the \>100MHz range so I can do some phased array imaging with radiowaves (underground imaging for amateur archeology). But that is clearly out of the realm of microcontrollers. I will need either a different approach or more money for that. Perhaps an arduino driving some programmable analog delay lines.

DAQ equipment (and software like Labview) is expensive. Arduino and associated software are far cheaper.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 6, 2021, 6:38pm UTC](https://forum.arduino.cc/t/faster-analog-read/6604/24 "2021-05-06T18:38:16Z")

</div>

Closed on May 6, 2021, 6:38pm UTC



[Previous page](https://forum.arduino.cc/t/faster-analog-read/6604.md?page=1)
