<?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>Regarding nRF51822 RSSI to Distance Calculation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2549/regarding-nrf51822-rssi-to-distance-calculation</link><description>Hi All. 
 I made my PCB with nRF51822 and achieved around 150 Feet range (LoS). My target is to calculate a approximate distance (in Feet) from RSSI values. 
 I did a field test and measured some data and observed its quite non-linear to determine a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 May 2014 18:54:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2549/regarding-nrf51822-rssi-to-distance-calculation" /><item><title>RE: Regarding nRF51822 RSSI to Distance Calculation</title><link>https://devzone.nordicsemi.com/thread/10148?ContentTypeID=1</link><pubDate>Mon, 19 May 2014 18:54:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bbc1b8d-0294-4fea-9f61-b1badb3de12a</guid><dc:creator>Dan Danknick</dc:creator><description>&lt;p&gt;It&amp;#39;s just a simple infinite impulse response filter using fast integer math.&lt;/p&gt;
&lt;p&gt;The equivalent with floating point, which you more typically see, is:&lt;/p&gt;
&lt;p&gt;strength = 0.0625f;
signal = (1.0f - strength)&lt;em&gt;signal + strength&lt;/em&gt;new_signal;&lt;/p&gt;
&lt;p&gt;Dan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding nRF51822 RSSI to Distance Calculation</title><link>https://devzone.nordicsemi.com/thread/10147?ContentTypeID=1</link><pubDate>Sat, 17 May 2014 22:55:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e68816de-f39e-4812-a67b-00d8f1187bb8</guid><dc:creator>Nazmus Sakib</dc:creator><description>&lt;p&gt;Hi Dan.&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;I know its quite challenging task plus its value will be approximate.&lt;/p&gt;
&lt;p&gt;Could you please explain more about your given formula?&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding nRF51822 RSSI to Distance Calculation</title><link>https://devzone.nordicsemi.com/thread/10146?ContentTypeID=1</link><pubDate>Sat, 17 May 2014 20:55:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffa96733-ba88-448a-88ab-ab4e572304b2</guid><dc:creator>Dan Danknick</dc:creator><description>&lt;p&gt;I&amp;#39;ve experimented with this quite a bit. If you want to believe RSSI-to-distance then more/good data is your friend.&lt;/p&gt;
&lt;p&gt;More = increased advertising or connected measurements per second
Good = throwing away outliers and smoothing what remains&lt;/p&gt;
&lt;p&gt;To start, I suggest tossing the bottom and top 10% of readings. And then applying an IIR filter with a ratio like:&lt;/p&gt;
&lt;p&gt;signal = (15*signal + new_signal) &amp;gt;&amp;gt; 4;&lt;/p&gt;
&lt;p&gt;giving you a good confidence after say, 30 iterations.&lt;/p&gt;
&lt;p&gt;RSSI is messy and noisy due to a myriad of physical phenomenae. Welcome to the world of converting noisy sensors into meaningful data!&lt;/p&gt;
&lt;p&gt;Dan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>