<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to use Line In on nRF5340 Audio DK to record audio?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110980/how-to-use-line-in-on-nrf5340-audio-dk-to-record-audio</link><description>Hi, 
 
 I have a piezo microphone with analog output and would like to record from it using the Line In AUX on nRF5340 Audio DK. 
 
 Currently, I am using the break out pins from the AUX and sampling analog signal using SAADC. However, the sampling rate</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 May 2024 14:31:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110980/how-to-use-line-in-on-nrf5340-audio-dk-to-record-audio" /><item><title>RE: How to use Line In on nRF5340 Audio DK to record audio?</title><link>https://devzone.nordicsemi.com/thread/483547?ContentTypeID=1</link><pubDate>Wed, 15 May 2024 14:31:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1584cddc-43cb-4052-9b57-c591f0d43161</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Thank you for your extreme patience with this - I have been out of office for some days, but now I am back.&lt;/p&gt;
[quote user=""]Currently, I am using the break out pins from the AUX and sampling analog signal using SAADC. However, the sampling rate is not stable and not high enough.[/quote][quote user=""]Could anyone let me know if there is a good way to record audio from Line In jack on the DK with consistent sampling rate, and somehow able to export the data to a PC? Thank you![/quote]
&lt;p&gt;Which configuration are you currently using for you SAADC and TIMER setup, and what are your requirements to the sampling frequency of the SAADC?&lt;br /&gt;You mention that the sampling frequency is not stable and not high enough, could you elaborate on what you mean by this?&lt;/p&gt;
[quote user=""]The program crashes before executing the first line in main()[/quote]
&lt;p&gt;Please share the error message / output log from the instance where this occurs.&lt;br /&gt;Is the build and flashing completing successfully, or are there any warnings?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>