<?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 get I and Q data from the antenna array for direction finding purpose?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97494/how-to-get-i-and-q-data-from-the-antenna-array-for-direction-finding-purpose</link><description>Hello, 
 I am currently working on bluetooth direction finding using AoA. I have a doubt regarding the math involved in the calculation of AoA. It&amp;#39;s pretty clear that we need I/Q data in order to find the phase difference between the antennae to further</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Mar 2023 04:40:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97494/how-to-get-i-and-q-data-from-the-antenna-array-for-direction-finding-purpose" /><item><title>RE: How to get I and Q data from the antenna array for direction finding purpose?</title><link>https://devzone.nordicsemi.com/thread/414804?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2023 04:40:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a31af1c-53cb-4218-89cf-eaf188432c2f</guid><dc:creator>Rishitha</dc:creator><description>&lt;p&gt;Hello Swathy,&lt;/p&gt;
&lt;p&gt;Thankyou so much for the reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get I and Q data from the antenna array for direction finding purpose?</title><link>https://devzone.nordicsemi.com/thread/414571?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2023 09:43:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a0926f3-74fb-4c30-bc22-302bec84cb28</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi Rishitha,&lt;/p&gt;
&lt;p&gt;You will need to make necessar changes in cte_recv_cb() in main.c to print the I and Q samples.&lt;/p&gt;
&lt;p&gt;You can take a look at this ticket:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/86399/aoa-antenna-switch-pattern-and-iq-sampling-via-nrf52833/361037"&gt;RE: AOA: Antenna switch pattern and IQ sampling via nrf52833&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You always have to convert the IQ data into a vector, and then examine this to get a useful positioning data. Some formulas for calculating with IQ signals translating between polar and rectangular forms can be found here: &lt;a title="https://www.pe0sat.vgnet.nl/sdr/iq-data-explained/" href="https://www.pe0sat.vgnet.nl/sdr/iq-data-explained/" rel="noopener noreferrer" target="_blank"&gt;https://www.pe0sat.vgnet.nl/sdr/iq-data-explained/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Peak Amplitude A = (I²+Q²)½&lt;/p&gt;
&lt;p&gt;Phase Angle ϕ = tan⁻¹(Q/I)&lt;/p&gt;
&lt;p&gt;I = A⋅cos(ϕ)&lt;/p&gt;
&lt;p&gt;Q = A⋅sin(ϕ)&lt;/p&gt;
&lt;p&gt;Converting IQ Data to a plain signal: I is the original signal.&lt;/p&gt;
&lt;p&gt;Euler form: A⋅eiϕ = A⋅(cos(ϕ) + i⋅sin(ϕ)) = I + Qi&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;-Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>