{"id":399,"date":"2018-04-11T13:28:38","date_gmt":"2018-04-11T13:28:38","guid":{"rendered":"https:\/\/peterklemperer.com\/blog\/?p=399"},"modified":"2018-04-11T13:28:38","modified_gmt":"2018-04-11T13:28:38","slug":"fast-analog-read-on-arduino","status":"publish","type":"post","link":"https:\/\/peterklemperer.com\/blog\/2018\/04\/11\/fast-analog-read-on-arduino\/","title":{"rendered":"Fast Analog Read on Arduino"},"content":{"rendered":"<p>The Arduino AnalogRead(pin) function is simple to use, but can&#8217;t be called faster than about 10 kHz. Audio needs sample rates closer to 40 kHz.<\/p>\n<p>This post will be a notepad of resources and notes related to high speed analog input on Arduino.<\/p>\n<p>Analog Read Library Performance Comparison<\/p>\n<p>Arduino Analog Read &#8211; 10kHz<br \/>\nAVDWeb AnalogReadFast &#8211; ___ kHz<br \/>\nManually Adjusting Prescaler &#8211; 1 MHz<\/p>\n<p>Related Links:<\/p>\n<ul>\n<li><a href=\"http:\/\/www.avdweb.nl\/arduino\/libraries\/fast-10-bit-adc.html\">AVDWeb analogReadFast() Documentation<\/a>\u00a0(20 kHz Range)<\/li>\n<li><a href=\"http:\/\/yaab-arduino.blogspot.com\/2015\/02\/fast-sampling-from-analog-input.html\">Example of Manual Prescaler Adjustment and Interrupts<\/a><\/li>\n<li><a href=\"http:\/\/www.robotplatform.com\/knowledge\/ADC\/adc_tutorial_4.html\">Explanation of ADC Registers (Warning Atmega8)<\/a><\/li>\n<li><a href=\"http:\/\/www.instructables.com\/id\/Arduino-Audio-Input\/\">Fast Analog Read Configuration with Clipping Indicator<\/a><\/li>\n<li><a href=\"https:\/\/blog.yavilevich.com\/2016\/08\/arduino-sound-level-meter-and-spectrum-analyzer\/\">Spectrum Analyzer Example<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The Arduino AnalogRead(pin) function is simple to use, but can&#8217;t be called faster than about 10 kHz. Audio needs sample rates closer to 40 kHz. This post will be a notepad of resources and notes related to high speed analog &hellip; <a href=\"https:\/\/peterklemperer.com\/blog\/2018\/04\/11\/fast-analog-read-on-arduino\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[67,6],"tags":[91],"class_list":["post-399","post","type-post","status-publish","format-standard","hentry","category-programming","category-projects","tag-arduino"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1VqWo-6r","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/peterklemperer.com\/blog\/wp-json\/wp\/v2\/posts\/399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/peterklemperer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peterklemperer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peterklemperer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/peterklemperer.com\/blog\/wp-json\/wp\/v2\/comments?post=399"}],"version-history":[{"count":0,"href":"https:\/\/peterklemperer.com\/blog\/wp-json\/wp\/v2\/posts\/399\/revisions"}],"wp:attachment":[{"href":"https:\/\/peterklemperer.com\/blog\/wp-json\/wp\/v2\/media?parent=399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peterklemperer.com\/blog\/wp-json\/wp\/v2\/categories?post=399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peterklemperer.com\/blog\/wp-json\/wp\/v2\/tags?post=399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}