<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Microwave Radar Module as PIR replacement.]]></title><description><![CDATA[<p dir="auto"><a href="http://www.cnx-software.com/2016/04/04/tiny-microwave-radar-module-detects-movements-up-to-9-meters-away-for-2/" rel="nofollow ugc">http://www.cnx-software.com/2016/04/04/tiny-microwave-radar-module-detects-movements-up-to-9-meters-away-for-2/</a></p>
<p dir="auto">Has anyone used these? They could decrease the profile size of a PIR style sensor.  Also 3.3V. Thoughts?</p>
]]></description><link>https://forum.mysensors.org/topic/3568/microwave-radar-module-as-pir-replacement</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 07:13:07 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/3568.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 05 Apr 2016 09:41:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Thu, 16 Aug 2018 22:35:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alowhum" aria-label="Profile: alowhum">@<bdi>alowhum</bdi></a><br />
Now I remembered that I once shot a video about this sensor. In the description below the video there are links to sketches that work with such sensors. But for this video I did not do subtitles in English, in sketches comments also seem to be in Russian. But I think it won't be a problem.</p>
<p dir="auto"><a href="https://www.youtube.com/watch?v=Q0sxeT0VsVg" rel="nofollow ugc">https://www.youtube.com/watch?v=Q0sxeT0VsVg</a></p>
<p dir="auto"><a href="https://www.youtube.com/watch?v=NdrU0byfbvI" rel="nofollow ugc">https://www.youtube.com/watch?v=NdrU0byfbvI</a></p>
]]></description><link>https://forum.mysensors.org/post/92673</link><guid isPermaLink="true">https://forum.mysensors.org/post/92673</guid><dc:creator><![CDATA[berkseo]]></dc:creator><pubDate>Thu, 16 Aug 2018 22:35:49 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Thu, 16 Aug 2018 22:33:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alowhum" aria-label="Profile: alowhum">@<bdi>alowhum</bdi></a></p>
<p dir="auto">I when the tested here is such:</p>
<p dir="auto"><a href="https://ru.aliexpress.com/item/5-8GHZ-Microwave-Radar-Sensor-Module-Smart-Sensoring-Switch-6-9M-Home-Control-New-Electric-Unit/32752738026.html?spm=a2g0v.search0204.3.182.51813dffPLeG2R&amp;ws_ab_test=searchweb0_0,searchweb201602_1_10152_5013111_10151_10065_10344_10068_10342_10343_316_10340_10341_10696_10084_10083_10618_10307_5723511_10301_10059_5013411_100031_10103_10624_10623_10622_10621_10620_5013311_5013211,searchweb201603_2,ppcSwitch_3_ppcChannel&amp;algo_expid=6975e011-d892-4cfb-9b54-88979e999308-25&amp;algo_pvid=6975e011-d892-4cfb-9b54-88979e999308&amp;transAbTest=ae803_2&amp;priceBeautifyAB=0" rel="nofollow ugc">https://ru.aliexpress.com/item/5-8GHZ-Microwave-Radar-Sensor-Module-Smart-Sensoring-Switch-6-9M-Home-Control-New-Electric-Unit/32752738026.html?spm=a2g0v.search0204.3.182.51813dffPLeG2R&amp;ws_ab_test=searchweb0_0,searchweb201602_1_10152_5013111_10151_10065_10344_10068_10342_10343_316_10340_10341_10696_10084_10083_10618_10307_5723511_10301_10059_5013411_100031_10103_10624_10623_10622_10621_10620_5013311_5013211,searchweb201603_2,ppcSwitch_3_ppcChannel&amp;algo_expid=6975e011-d892-4cfb-9b54-88979e999308-25&amp;algo_pvid=6975e011-d892-4cfb-9b54-88979e999308&amp;transAbTest=ae803_2&amp;priceBeautifyAB=0</a></p>
<p dir="auto">They work great on an almost standard PIR MOTION sketch</p>
<p dir="auto">..By the way why no one makes these motion sensors MW for MySensors on openhardware, it seems there is nothing complicated?</p>
]]></description><link>https://forum.mysensors.org/post/92672</link><guid isPermaLink="true">https://forum.mysensors.org/post/92672</guid><dc:creator><![CDATA[berkseo]]></dc:creator><pubDate>Thu, 16 Aug 2018 22:33:44 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Tue, 14 Aug 2018 15:30:46 GMT]]></title><description><![CDATA[<p dir="auto">It depends a lot on the sensor type so minor changes need to be made on sketch to make it handle the inverse logic.</p>
]]></description><link>https://forum.mysensors.org/post/92569</link><guid isPermaLink="true">https://forum.mysensors.org/post/92569</guid><dc:creator><![CDATA[gohan]]></dc:creator><pubDate>Tue, 14 Aug 2018 15:30:46 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Tue, 14 Aug 2018 14:48:45 GMT]]></title><description><![CDATA[<p dir="auto">Does anyone have a complete MySensors sketch for these that they would be willing to share?</p>
<p dir="auto">I tried to create a wildlife sensor with it a while ago.. but the signal seemed to always be high.</p>
]]></description><link>https://forum.mysensors.org/post/92563</link><guid isPermaLink="true">https://forum.mysensors.org/post/92563</guid><dc:creator><![CDATA[alowhum]]></dc:creator><pubDate>Tue, 14 Aug 2018 14:48:45 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Mon, 13 Aug 2018 20:16:02 GMT]]></title><description><![CDATA[<p dir="auto">I did not get what you meant</p>
]]></description><link>https://forum.mysensors.org/post/92535</link><guid isPermaLink="true">https://forum.mysensors.org/post/92535</guid><dc:creator><![CDATA[gohan]]></dc:creator><pubDate>Mon, 13 Aug 2018 20:16:02 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Mon, 13 Aug 2018 18:25:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gohan" aria-label="Profile: gohan">@<bdi>gohan</bdi></a> Can you help how to bypass this sensor without changing of sensor ....</p>
]]></description><link>https://forum.mysensors.org/post/92529</link><guid isPermaLink="true">https://forum.mysensors.org/post/92529</guid><dc:creator><![CDATA[pandeyg]]></dc:creator><pubDate>Mon, 13 Aug 2018 18:25:28 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Sun, 07 May 2017 08:53:56 GMT]]></title><description><![CDATA[<p dir="auto">It's a review of some radar sensors if anyone is interested.</p>
<p dir="auto"><a href="https://youtu.be/9WiJJgIi3W0" rel="nofollow ugc">https://youtu.be/9WiJJgIi3W0</a></p>
]]></description><link>https://forum.mysensors.org/post/66048</link><guid isPermaLink="true">https://forum.mysensors.org/post/66048</guid><dc:creator><![CDATA[gohan]]></dc:creator><pubDate>Sun, 07 May 2017 08:53:56 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Sat, 22 Apr 2017 19:20:28 GMT]]></title><description><![CDATA[<p dir="auto">Are there any new updates on these sensors? I noticed there are some "new" one that have 2 potentiometers like the standard PIR sensors.</p>
]]></description><link>https://forum.mysensors.org/post/65044</link><guid isPermaLink="true">https://forum.mysensors.org/post/65044</guid><dc:creator><![CDATA[gohan]]></dc:creator><pubDate>Sat, 22 Apr 2017 19:20:28 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Mon, 22 Aug 2016 17:24:38 GMT]]></title><description><![CDATA[<p dir="auto">Currently I don't plan to make a library .. a library implies that the sensor is very <strong>easy to use</strong> .. plug in + import library.</p>
<p dir="auto">The FC1816 is <strong>not such a sensor</strong>.</p>
<ul>
<li>Needs Voltage-Supply filter (RC Section)</li>
<li>Need separate cable to grab the signal at the 2nd amplification stage</li>
<li>Need potentiometer to lower the amplification</li>
<li>Is very prone to random noise (in fact even entering RF24 or ATMEGA328 low power mode might increase noise floor a lot)</li>
</ul>
<p dir="auto">Using a "simple to use" library and not getting the expected result of an "easy"-sensor would be very disappointing. For now I would say this is an advanced sensor with some pitfalls.</p>
<p dir="auto">I update this thread with my findings to hopefully make everybodys life a bit easyer if you want to tinker with the FC1816 although you now know it is a little beast ;-)</p>
<p dir="auto">If you need any help just ask here and I will support you the best I can.</p>
]]></description><link>https://forum.mysensors.org/post/45921</link><guid isPermaLink="true">https://forum.mysensors.org/post/45921</guid><dc:creator><![CDATA[cimba007]]></dc:creator><pubDate>Mon, 22 Aug 2016 17:24:38 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Mon, 22 Aug 2016 16:24:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cimba007" aria-label="Profile: cimba007">@<bdi>cimba007</bdi></a> awesome to read about all the research and debugging you did on this topic!<br />
Did you consider pouring the code into a library,  so it can be reused and updated easily?</p>
]]></description><link>https://forum.mysensors.org/post/45919</link><guid isPermaLink="true">https://forum.mysensors.org/post/45919</guid><dc:creator><![CDATA[Yveaux]]></dc:creator><pubDate>Mon, 22 Aug 2016 16:24:41 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Mon, 22 Aug 2016 15:29:14 GMT]]></title><description><![CDATA[<p dir="auto">After a few more days of testing I noticed these ugly "PEAKS" from my FC1816 readings. I added lots of capacitors and RC and LC sections but still .. nasty little peaks (left side in the beginning)</p>
<p dir="auto"><img src="/uploads/files/1471879147230-upload-a9d03c1d-941a-4179-9306-7fb6eb708a7b" alt="0_1471879150498_upload-a9d03c1d-941a-4179-9306-7fb6eb708a7b" class=" img-fluid img-markdown" /></p>
<p dir="auto">In my previous post replace this line:</p>
<pre><code>stdev_sum += mw_s.pop_stdev();
</code></pre>
<p dir="auto">with this:</p>
<pre><code>  // Ignore the first 3 peaks within short succession
  // Real movement should mean there are more peaks/activity over a long time
  static uint8_t peakcount = 0;
  if(mw_s.pop_stdev() &gt; 30 &amp;&amp; peakcount &lt; 3)
  {
    peakcount++;
  }
  else
  {
    stdev_sum += mw_s.pop_stdev();
    stdev_sum *= 0.92; //
    if (stdev_sum &gt;= 7)
      stdev_sum -= 7; // Default background noise
    if (stdev_sum &gt; 512)
      stdev_sum = 512;    

    if(peakcount &gt; 0)
      peakcount--;
  }
</code></pre>
<p dir="auto">With this code the first 3 peaks are essentially removed .. if there is really some movement it should last for a few seconds and would still be detected.</p>
<p dir="auto">I have invested like 10-20hours into testing and debugging the FC1816 and I can say .. this thing is .. <strong>peculiar</strong> ..</p>
<p dir="auto">I hate it cause of the spikes, the amplification which has to be manually altered with a pot .. but at the same time I love it ..</p>
<p dir="auto">I can detect my foot beckoning 2-3meters apart in my bed :D</p>
<p dir="auto">An example of the code snipped in action:</p>
<p dir="auto"><img src="/uploads/files/1471879615798-upload-a3996be3-43b2-417d-ab69-e2545d288fd3" alt="0_1471879619120_upload-a3996be3-43b2-417d-ab69-e2545d288fd3" class=" img-fluid img-markdown" /></p>
<p dir="auto">Here you can see the big spikes in the beginning completely ignored (1)</p>
<p dir="auto"><img src="/uploads/files/1471879710295-upload-3031e15c-37cb-4799-8b4a-ea6c3193f6bf" alt="0_1471879713596_upload-3031e15c-37cb-4799-8b4a-ea6c3193f6bf" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.mysensors.org/post/45911</link><guid isPermaLink="true">https://forum.mysensors.org/post/45911</guid><dc:creator><![CDATA[cimba007]]></dc:creator><pubDate>Mon, 22 Aug 2016 15:29:14 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Wed, 17 Aug 2016 11:31:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cimba007" aria-label="Profile: cimba007">@<bdi>cimba007</bdi></a> Thanks for the update :+1: Very interesting numbers!<br />
The 'sleep' current of 1.5mA rules out the microwave module as battery powered PIR replacement for me...<br />
As a mains powered sensor they're still very interesting, though!</p>
]]></description><link>https://forum.mysensors.org/post/45472</link><guid isPermaLink="true">https://forum.mysensors.org/post/45472</guid><dc:creator><![CDATA[Yveaux]]></dc:creator><pubDate>Wed, 17 Aug 2016 11:31:33 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Wed, 17 Aug 2016 10:44:31 GMT]]></title><description><![CDATA[<p dir="auto">All things from my previous post regarding the wiring are still needed:</p>
<p dir="auto">Here is a stripped down example on how to use the FC1816 Microwave Sensor. You need the following library:</p>
<p dir="auto"><a href="https://github.com/RobTillaart/Arduino/tree/master/libraries/Statistic" rel="nofollow ugc">https://github.com/RobTillaart/Arduino/tree/master/libraries/Statistic</a></p>
<pre><code>#include "Statistic.h"

#define MICRO_SENSOR_ANALOG_PIN A1

void setup()
{
  
  Serial.begin(57600);
  Serial.print("begin");
  
  // Microwave
  pinMode(5,OUTPUT);        // VCC BISS0001
  digitalWrite(5,HIGH);
  
  pinMode(6,OUTPUT);        // Enabled
  digitalWrite(6,LOW);      // DISABLE PLEASE!
  
  pinMode(7,OUTPUT);        // GND
  digitalWrite(7,LOW);

  pinMode(A1,INPUT);        // PIR 2nd amplification stage

  pinMode(A0,OUTPUT);       // UPD microwave generator
  digitalWrite(A0,HIGH);

}

void loop()      
{     
  // Report Microwave
  static Statistic mw_s;
  static uint16_t stdev_sum = 0;
  //mw_s.clear();

  //digitalWrite(8,HIGH);
  //delay(100);
  analogRead(MICRO_SENSOR_ANALOG_PIN);
  uint16_t reading;
  for(int i = 0; i &lt; 200; i++)
  {
    reading = analogRead(MICRO_SENSOR_ANALOG_PIN);
    mw_s.add(reading);
    //Serial.println(reading);
    //Serial.flush();
    //delay(50);
    //LowPower.powerDown(SLEEP_60MS, ADC_ON, BOD_OFF);  
    //delay(1);
  }
  Serial.print(mw_s.minimum());   Serial.print(",");
  Serial.print(mw_s.average());   Serial.print(",");
  Serial.print(mw_s.maximum());   Serial.print(",");
  Serial.print(mw_s.pop_stdev()); Serial.print(",");
  stdev_sum += mw_s.pop_stdev();
  Serial.print(stdev_sum); //Serial.print(",");
  Serial.println();
  stdev_sum *= 0.9;
  mw_s.clear();
}
</code></pre>
<p dir="auto">I just had the idea to sum up the std-dev and decrease it by 10% every round. Thus the code is less prone to peaks.</p>
<p dir="auto"><img src="/uploads/files/1471429468850-upload-9c26c9f3-6ccd-4aaf-9bcc-797ad4c03be4" alt="0_1471429474464_upload-9c26c9f3-6ccd-4aaf-9bcc-797ad4c03be4" class=" img-fluid img-markdown" /></p>
<p dir="auto">stdev_sum  is the lower dark blue line which can now be much easier compared to a threshold.</p>
<p dir="auto">Some measurement with my µCurrent-Gold:</p>
<p dir="auto">Unmodified code as above, power LED removed from ProMini @ 8Mhz internal osci with LDO desoldered<br />
<strong>4,8mA</strong></p>
<p dir="auto">I tried to put the FC1816 into sleep by disable the power to the Microwave generator but this doesn't work.<br />
I modified the fuses for 8Mhz with 0ms wakeup delay for stabelizing the oscillator. No risk no phun ;-)</p>
<p dir="auto">The most practical solution I got to replace a PIR (still nothing as close as a PIR ;-ö)</p>
<p dir="auto"><strong>1530µA</strong></p>
<p dir="auto">with this code:</p>
<p dir="auto">Note that the radar generator just can't be disable as it needs 10-15seconds to stabelize after power up</p>
<pre><code>#include &lt;LowPower.h&gt;

#include "Statistic.h"

#define MICRO_SENSOR_ANALOG_PIN A1

void setup()
{
  
  Serial.begin(57600);
  Serial.print("begin");
  
  // Microwave
  pinMode(5,OUTPUT);        // VCC BISS0001
  digitalWrite(5,HIGH);
  
  pinMode(6,OUTPUT);        // Enabled
  digitalWrite(6,LOW);      // DISABLE PLEASE!
  
  pinMode(7,OUTPUT);        // GND
  digitalWrite(7,LOW);

  pinMode(A1,INPUT);        // PIR 2nd amplification stage

  pinMode(A0,OUTPUT);       // UPD microwave generator
  digitalWrite(A0,HIGH);

}

void loop()      
{     
  // Report Microwave
  static Statistic mw_s;
  static uint16_t stdev_sum = 0;
  //mw_s.clear();

  
  //delay(100);
  analogRead(MICRO_SENSOR_ANALOG_PIN);
  uint16_t reading;
  for(int i = 0; i &lt; 10; i++)
  {
    LowPower.powerDown(SLEEP_15Ms, ADC_ON, BOD_OFF);  
    reading = analogRead(MICRO_SENSOR_ANALOG_PIN);
    mw_s.add(reading);
    //Serial.println(reading);
    //Serial.flush();
    //delay(50);
    LowPower.powerDown(SLEEP_15Ms, ADC_ON, BOD_OFF);  
    //delay(1);
  }
  Serial.print(mw_s.minimum());   Serial.print(",");
  Serial.print(mw_s.average());   Serial.print(",");
  Serial.print(mw_s.maximum());   Serial.print(",");
  Serial.print(mw_s.pop_stdev()); Serial.print(",");
  stdev_sum += mw_s.pop_stdev();
  Serial.print(stdev_sum); //Serial.print(",");
  Serial.println();
  Serial.flush();
  stdev_sum *= 0.9;
  mw_s.clear();
  
}
</code></pre>
]]></description><link>https://forum.mysensors.org/post/45470</link><guid isPermaLink="true">https://forum.mysensors.org/post/45470</guid><dc:creator><![CDATA[cimba007]]></dc:creator><pubDate>Wed, 17 Aug 2016 10:44:31 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Mon, 25 Jul 2016 20:20:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cimba007" aria-label="Profile: cimba007">@<bdi>cimba007</bdi></a> I know, I also used serial plotting for some projects. Very handy, very unstable (at that time). Probably improved since then, as I haven't used it recently.</p>
]]></description><link>https://forum.mysensors.org/post/43786</link><guid isPermaLink="true">https://forum.mysensors.org/post/43786</guid><dc:creator><![CDATA[Yveaux]]></dc:creator><pubDate>Mon, 25 Jul 2016 20:20:08 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Mon, 25 Jul 2016 20:31:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yveaux" aria-label="Profile: Yveaux">@<bdi>Yveaux</bdi></a> From my oppinion the radar modules are not suited for battery usage. Their drain something like 3-5mA and are not easy to put to sleep. Remember the warm-up period of the BISS. It seems to be like 10-15seconds.</p>
<p dir="auto">The plots are from another sketch, not the one I posted but using them is pretty straight forward.</p>
<p dir="auto">In my sketch have a look at these parts:</p>
<pre><code>  Serial &lt;&lt; "| mw_min: ";
  int minimum = mw_s.minimum();
  p(F("%4d"),minimum);
  Serial &lt;&lt; " ";
</code></pre>
<p dir="auto">To use the arduino plotting all you ahve to do is send a string like this:</p>
<p dir="auto">0,10,534,123 .. whatever .. beware that no other serial output should happen if you want to use the arduino build-in plotting. Using the streaming library ( <a href="http://arduiniana.org/libraries/streaming/" rel="nofollow ugc">http://arduiniana.org/libraries/streaming/</a> ) it all boils down to a single line:</p>
<pre><code>Serial &lt;&lt; mw_s.minimum() &lt;&lt; "," &lt;&lt; mw_s.maximum() &lt;&lt; "," &lt;&lt; mw_s.pop_stdev() &lt;&lt; endl;
</code></pre>
<p dir="auto">In addition to the power consumption my approach requires sampling the analog input for a whole second .. or the more the better.</p>
<p dir="auto">This might be improved if you can prevent the FC1816 from retriggering itself. I had some serious problems as during the "inhibitor" period the analogOutput from the 2nd amplification stage was quite high often instantly retrigger the biss-output after the inhibition period ended.</p>
<p dir="auto">One solution might be this:</p>
<p dir="auto">Try this if you want to look down this approch:</p>
<ul>
<li>Power the FC1816 VCC and UDP through an RC-Section (100Ohm Resistor and after that (on the side of the FC1816) an capacitory ~100-220µF)</li>
<li>Replace amplification resistor from 105 to eg. 154 (lowering the amplification)</li>
</ul>
<p dir="auto">To find the best value I used an variable resistor parallel to the 105-Ohms SMD-Resistor</p>
<p dir="auto"><strong>But</strong> .. don't forget the benefits of *he microwave sensor. You can mount it straight to a door and it would detect persons in front of the door without them noticing. For this reason I try to build an "Alarm-node" that can be hidden inside the house. Later I might improve the FC1816 with some aluminium foil for shielding as suggested earlier.</p>
<p dir="auto">I would suggest using an PIR if you need a battery powered node. Have a look at ( <a href="http://kavacky.lv/bypassing-sen-08630-pir-motion-sensors-voltage-regulator-to-work-with-3-3-v" rel="nofollow ugc">http://kavacky.lv/bypassing-sen-08630-pir-motion-sensors-voltage-regulator-to-work-with-3-3-v</a> ). Some PIRs have a Regulator which might not be suited if you are running on battery using 3,3Volt.</p>
]]></description><link>https://forum.mysensors.org/post/43784</link><guid isPermaLink="true">https://forum.mysensors.org/post/43784</guid><dc:creator><![CDATA[cimba007]]></dc:creator><pubDate>Mon, 25 Jul 2016 20:31:37 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Mon, 25 Jul 2016 20:02:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cimba007" aria-label="Profile: cimba007">@<bdi>cimba007</bdi></a> wow, you did some serious research there!  (I see you make good  use of the arduino plot function)<br />
I'll certainly come back to your research once I start with this sensor (so much to choose from...)<br />
Any ideas about current consumption? Is this a viable alternative to battery powered pir sensors?</p>
]]></description><link>https://forum.mysensors.org/post/43780</link><guid isPermaLink="true">https://forum.mysensors.org/post/43780</guid><dc:creator><![CDATA[Yveaux]]></dc:creator><pubDate>Mon, 25 Jul 2016 20:02:30 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Mon, 25 Jul 2016 19:28:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yveaux" aria-label="Profile: Yveaux">@<bdi>Yveaux</bdi></a> I did some extensive testing on the FC1816 module and I thought I might drop my experience:</p>
<p dir="auto"><a href="http://electronics.stackexchange.com/questions/226031/pinout-of-microwave-motion-sensor-fc1816" rel="nofollow ugc">http://electronics.stackexchange.com/questions/226031/pinout-of-microwave-motion-sensor-fc1816</a></p>
<p dir="auto">In the end I used an 150ohm Series resistor + ~100µF cap behind this to power the FC1816. This eliminated much of the leftover noise. If this is not enough I presented a way to lower the module amplification. In the end I deactivated the biss-trigger output alltogether and grabbed the raw signal. Doing some manual processing:</p>
<ol>
<li>take 100 reads</li>
<li>get the stddev (statistics library)</li>
<li>high stddev = high fluctuation in values = movement</li>
</ol>
<p dir="auto">Take a look at my current working copy of my code for the FC1816:</p>
<p dir="auto">Some notes:</p>
<p dir="auto">I power the VCC of the FC1816 from some arduino pins. Thus I can deactivate the microwave sensor at will. This is still not recommended. If you visit the previous link you can see that the BISS has some kind of "warmup"-Period.</p>
<p dir="auto">I use 3,3Volt to power the NRF24, the arduino and the FC1816 and suffered no strange consequences so far.</p>
<p dir="auto">Get get some insight about the link quality of the NRF24 I made the function RF24_getObserverTX() accessible from user-space:</p>
<p dir="auto">MySensors\drivers\RF24\RF24.cpp</p>
<pre><code>uint8_t RF24_getObserveTX(void)
{
	return RF24_readByteRegister(OBSERVE_TX);
}
</code></pre>
<p dir="auto">MySensors\drivers\RF24\RF24.h</p>
<pre><code>uint8_t RF24_getObserveTX(void);
</code></pre>
<p dir="auto">The Idea behind the OBSERVE_TX register is that the lower byte presents the number of retrys the NRF24 used in the last send.<br />
The upper 4 bits present the number of total failed packets. I suggest using (0x0F &amp; RF24_getObserveTX()) to get a usable number 0-15 presenting the retry-count. Anything &gt; 0 suggests a packetloss on your link. 15 most likely will mean you ran into an complete fail as the max number of retrys was exhausted.</p>
<p dir="auto">This number might be capped by</p>
<pre><code>// ARD, auto retry count
#define RF24_ARC 15
</code></pre>
<p dir="auto">from the RF24.h driver-file.</p>
<p dir="auto">TO not run into compiling errors you might need:</p>
<p dir="auto"><a href="http://arduiniana.org/libraries/streaming/" rel="nofollow ugc">http://arduiniana.org/libraries/streaming/</a><br />
<a href="https://github.com/RobTillaart/Arduino/tree/master/libraries/Statistic" rel="nofollow ugc">https://github.com/RobTillaart/Arduino/tree/master/libraries/Statistic</a></p>
<p dir="auto">MicrowaveRadarSensor.ino</p>
<pre><code>#include &lt;Streaming.h&gt;
#include "Statistic.h"


/**
 * The MySensors Arduino library handles the wireless radio link and protocol
 * between your home built sensors/actuators and HA controller of choice.
 * The sensors forms a self healing radio network with optional repeaters. Each
 * repeater and gateway builds a routing tables in EEPROM which keeps track of the
 * network topology allowing messages to be routed to nodes.
 *
 * Created by Henrik Ekblad &lt;henrik.ekblad@mysensors.org&gt;
 * Copyright (C) 2013-2015 Sensnology AB
 * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors
 *
 * Documentation: http://www.mysensors.org
 * Support Forum: http://forum.mysensors.org
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * version 2 as published by the Free Software Foundation.
 *
 *******************************
 *
 * REVISION HISTORY
 * Version 1.0 - Henrik EKblad
 * 
 * DESCRIPTION
 * Example sketch showing how to measue light level using a LM393 photo-resistor 
 * http://www.mysensors.org/build/light
 */

#define MY_NODE_ID 10
#define MY_BAUD_RATE 57600

// Enable debug prints to serial monitor
//#define MY_DEBUG 

// Enable and select radio type attached
#define MY_RADIO_NRF24
//#define MY_RADIO_RFM69

#include &lt;SPI.h&gt;
#include &lt;MySensors.h&gt;  

#define LIGHT_SENSOR_ANALOG_PIN A3
#define MICRO_SENSOR_ANALOG_PIN A1

unsigned long SLEEP_TIME = 1000; // Sleep time between reads (in milliseconds)

#define CHILD_ID_LIGHT 0
#define CHILD_ID_MICRO 0
#define TRIPPED_THRESHOLD 50

MyMessage msg_light(CHILD_ID_LIGHT, V_LIGHT_LEVEL); // 23
MyMessage msg_micro(CHILD_ID_MICRO, V_TRIPPED);     // 16
MyMessage msg_micro_debug(0,V_VAR1);   // 24
MyMessage msg_obstx_debug(0,V_VAR2);   // 25

void before()
{
  // LightSensor
  pinMode(A3,INPUT_PULLUP);
  pinMode(A2,OUTPUT);
  digitalWrite(A2,LOW);  

  // Microwave
  pinMode(5,OUTPUT);        // VCC BISS0001
  digitalWrite(5,HIGH);
  
  pinMode(6,OUTPUT);        // Enabled
  digitalWrite(6,LOW);      // Enable
  
  pinMode(7,OUTPUT);        // GND
  digitalWrite(7,LOW);
  
  pinMode(8,OUTPUT);        // VCC Radar
  digitalWrite(8,HIGH);

  pinMode(A1,INPUT);        // PIR 2nd Amplification Stage

  // Other
}
void setup()
{
 
}
void presentation()  {
  // Send the sketch version information to the gateway and Controller
  sendSketchInfo("Microwave+Light", "1.0");

  // Register all sensors to gateway (they will be created as child devices)
  // https://www.mysensors.org/download/serial_api_20#sensor-type
  present(CHILD_ID_LIGHT, S_LIGHT_LEVEL);
  present(CHILD_ID_MICRO, S_MOTION);
  //present(0, S_ARDUINO_NODE);
  
}

void loop()      
{     
  // Report VCC
  static long vcc = readVcc();
  static int vccpercent = map(vcc,1800,3280,0,100);
  sendBatteryLevel(max(min(vccpercent,100),0),false);
  Serial &lt;&lt; "| vcc: ";
  p(F("%4d"),vcc);
  Serial &lt;&lt; " ";
  // Required for ack
  //wait(100);

  // Report LightLevel
  analogRead(LIGHT_SENSOR_ANALOG_PIN);
  int lightLevel_raw = analogRead(LIGHT_SENSOR_ANALOG_PIN);
  int lightLevel = (1023-lightLevel_raw)/10.23; // as of 1023 !!
  Serial &lt;&lt; "| light_raw: ";
  p(F("%4d"),lightLevel_raw);
  Serial &lt;&lt; " ";
  Serial &lt;&lt; "| light: ";
  p(F("%3d"),lightLevel);
  Serial &lt;&lt; " ";
  send(msg_light.set(lightLevel),false);

  // Report WirelessLink Information
  Serial &lt;&lt; "| observe_tx: ";
  uint8_t obstx = RF24_getObserveTX();
  p(F("%X"),obstx);
  Serial &lt;&lt; " ";
  send(msg_obstx_debug.set(0x0F&amp;obstx),false);
 
  // Report Microwave
  Statistic mw_s;
  mw_s.clear();
  
  delay(90);
  analogRead(MICRO_SENSOR_ANALOG_PIN);
  delay(10);
  for(int i = 0; i &lt; 1000; i++)
  {
    mw_s.add(analogRead(MICRO_SENSOR_ANALOG_PIN));
    delay(1);
  }
  Serial &lt;&lt; "| mw_raw: ";
  int stddev = mw_s.pop_stdev();
  p(F("%4d"),stddev);
  Serial &lt;&lt; " ";
  
  Serial &lt;&lt; "| mw_min: ";
  int minimum = mw_s.minimum();
  p(F("%4d"),minimum);
  Serial &lt;&lt; " ";

  Serial &lt;&lt; "| mw_max: ";
  int maximum = mw_s.maximum();
  p(F("%4d"),maximum);
  Serial &lt;&lt; " ";
  
  Serial &lt;&lt; "| mw: " &lt;&lt; (stddev &gt; TRIPPED_THRESHOLD ? "1" : "0") &lt;&lt; " ";
  send(msg_micro_debug.set(stddev),false);
  while(!send(msg_micro.set(stddev &gt; TRIPPED_THRESHOLD ? "1" : "0"),true))
  {
    wait(10);
  }
  
  if(isTransportOK()) 
    wait(100);
  else
    wait(1000);
  Serial &lt;&lt; endl;
  //mysleep(500);

}
// https://forum.mysensors.org/topic/3463/m_ack_variable-or-m_set_variable/2
void receive(const MyMessage &amp;message) {
  if (message.isAck()) {
      Serial.print("| GW ack");
      }
}
</code></pre>
<p dir="auto">Helper.ino</p>
<pre><code>long readVcc() {
  // Read 1.1V reference against AVcc
  // set the reference to Vcc and the measurement to the internal 1.1V reference
  #if defined(__AVR_ATmega32U4__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
    ADMUX = _BV(REFS0) | _BV(MUX4) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1);
  #elif defined (__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__)
    ADMUX = _BV(MUX5) | _BV(MUX0);
  #elif defined (__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__)
    ADMUX = _BV(MUX3) | _BV(MUX2);
  #else
    ADMUX = _BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1);
  #endif  

  delay(2); // Wait for Vref to settle
  ADCSRA |= _BV(ADSC); // Start conversion
  while (bit_is_set(ADCSRA,ADSC)); // measuring

  uint8_t low  = ADCL; // must read ADCL first - it then locks ADCH  
  uint8_t high = ADCH; // unlocks both

  long result = (high&lt;&lt;8) | low;

  result = 1125300L / result; // Calculate Vcc (in mV); 1125300 = 1.1*1023*1000
  //result *= 1.0637;
  return result; // Vcc in millivolts
}

#include &lt;stdarg.h&gt;
void p(const __FlashStringHelper *fmt, ... ){
  char buf[128]; // resulting string limited to 128 chars
  va_list args;
  va_start (args, fmt);
#ifdef __AVR__
  vsnprintf_P(buf, sizeof(buf), (const char *)fmt, args); // progmem for AVR
#else
  vsnprintf(buf, sizeof(buf), (const char *)fmt, args); // for the rest of the world
#endif
  va_end(args);
  Serial.print(buf);
}

void mysleep(int SLEEP_TIME)
{
    if(isTransportOK()){
      Serial &lt;&lt; "| wait ";
      wait(25);
      Serial &lt;&lt; "| zZz &gt; ";

      sleep(SLEEP_TIME);
      Serial &lt;&lt; "| &lt; zZz " &lt;&lt; endl;
    } 
    else {
      wait(1000);
    }
}
</code></pre>
]]></description><link>https://forum.mysensors.org/post/43776</link><guid isPermaLink="true">https://forum.mysensors.org/post/43776</guid><dc:creator><![CDATA[cimba007]]></dc:creator><pubDate>Mon, 25 Jul 2016 19:28:49 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Thu, 30 Jun 2016 10:09:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gregl" aria-label="Profile: gregl">@<bdi>gregl</bdi></a><br />
Thanks for good link :-)<br />
Yes offcurse I'm so sloooooow we need a proper waveguide or a hornet antenna, so ensure correct directionality ;-)</p>
<p dir="auto">This might not be needed, but a hint what could be done:  <a href="http://hforsten.com/horn-antenna-for-radar.html" rel="nofollow ugc">http://hforsten.com/horn-antenna-for-radar.html</a></p>
<p dir="auto">When my doppler radar arrives I will make a trial with a small tinbox I don't know about using alufoil is good for a long periode used outside<br />
<a href="http://hackaday.com/2014/02/24/guest-post-try-radar-for-your-next-project/#jp-carousel-115578" rel="nofollow ugc">http://hackaday.com/2014/02/24/guest-post-try-radar-for-your-next-project/#jp-carousel-115578</a></p>
]]></description><link>https://forum.mysensors.org/post/42016</link><guid isPermaLink="true">https://forum.mysensors.org/post/42016</guid><dc:creator><![CDATA[bjacobse]]></dc:creator><pubDate>Thu, 30 Jun 2016 10:09:00 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Tue, 28 Jun 2016 11:17:03 GMT]]></title><description><![CDATA[<p dir="auto">There has been some chat about these modules over on Pete Scargill's site.<br />
Seems that using some aluminium foil you can create a shield so there are at least directional.</p>
<p dir="auto">Here is the thread ( starting at the relevant comment)</p>
<p dir="auto"><a href="http://tech.scargill.net/microwave-radar/#comment-16685" rel="nofollow ugc">http://tech.scargill.net/microwave-radar/#comment-16685</a></p>
<p dir="auto">I have not tested this myself yet...</p>
]]></description><link>https://forum.mysensors.org/post/41858</link><guid isPermaLink="true">https://forum.mysensors.org/post/41858</guid><dc:creator><![CDATA[gregl]]></dc:creator><pubDate>Tue, 28 Jun 2016 11:17:03 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Mon, 27 Jun 2016 13:53:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/luke-corkill" aria-label="Profile: Luke-Corkill">@<bdi>Luke-Corkill</bdi></a> said:</p>
<blockquote>
<p dir="auto">I've bought a couple of these and in many ways have been impressed.<br />
My only issue is that I find them far too sensitive (e.g. Detecting movement through wallls)<br />
Has anyone managed to reduce the sensitivity?</p>
</blockquote>
<p dir="auto">To reduce sensitivity workaround - Can you place them high and point them in an angle pointing downwards to ground? will this work?</p>
]]></description><link>https://forum.mysensors.org/post/41776</link><guid isPermaLink="true">https://forum.mysensors.org/post/41776</guid><dc:creator><![CDATA[bjacobse]]></dc:creator><pubDate>Mon, 27 Jun 2016 13:53:13 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Sat, 25 Jun 2016 14:46:18 GMT]]></title><description><![CDATA[<p dir="auto">I've bought a couple of these and in many ways have been impressed.<br />
My only issue is that I find them far too sensitive (e.g. Detecting movement through wallls)<br />
Has anyone managed to reduce the sensitivity?</p>
]]></description><link>https://forum.mysensors.org/post/41691</link><guid isPermaLink="true">https://forum.mysensors.org/post/41691</guid><dc:creator><![CDATA[Luke Corkill]]></dc:creator><pubDate>Sat, 25 Jun 2016 14:46:18 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Mon, 13 Jun 2016 10:32:00 GMT]]></title><description><![CDATA[<p dir="auto">Seems like these modules are using the BISS0001 so it will probably not be possible to run them on a battery node because the BISS has a 3V minimum voltage demand. The current consumption is anyhow also a bit to high for battery application (3mA).</p>
<p dir="auto"><img src="/uploads/files/1465813904013-wp_20160613_13_16_48_pro.jpg" alt="0_1465813900381_WP_20160613_13_16_48_Pro.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.mysensors.org/post/40923</link><guid isPermaLink="true">https://forum.mysensors.org/post/40923</guid><dc:creator><![CDATA[korttoma]]></dc:creator><pubDate>Mon, 13 Jun 2016 10:32:00 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Sun, 15 May 2016 19:56:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/drock1985" aria-label="Profile: drock1985">@<bdi>drock1985</bdi></a>, Didn't test it yet. I was playing with the other module I bought. Too bad that the other module only seems to work stable from 6V and up (I should have known it, as it was listed on ebay as 7-12v). I was just hoping that it would work at lower voltages. So I will probably stick with the first module for now.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vil1driver" aria-label="Profile: vil1driver">@<bdi>vil1driver</bdi></a>, Yes, detection works through wall and door. I only tested it at a distance of about 5 meter with a brick indoor wall between me and the sensor. I also had to walk around before the sensor picked me up (just lifting my arm wasn't enough).</p>
]]></description><link>https://forum.mysensors.org/post/39081</link><guid isPermaLink="true">https://forum.mysensors.org/post/39081</guid><dc:creator><![CDATA[danta]]></dc:creator><pubDate>Sun, 15 May 2016 19:56:10 GMT</pubDate></item><item><title><![CDATA[Reply to Microwave Radar Module as PIR replacement. on Mon, 16 May 2016 10:06:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/danta" aria-label="Profile: danta">@<bdi>danta</bdi></a>, this device can detect you when you are in another room ?</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/drock1985" aria-label="Profile: drock1985">@<bdi>drock1985</bdi></a>,<br />
detection delay can be adjusted from 1 second to hundreds of second (two minutes max) by adjusting R6 resistor on the board as explained on this Taobao page (Chinese). By default there’s no resistor and the delay is 30 seconds, and you can adjust the delay by using 1K to 250K resistor.</p>
]]></description><link>https://forum.mysensors.org/post/39037</link><guid isPermaLink="true">https://forum.mysensors.org/post/39037</guid><dc:creator><![CDATA[vil1driver]]></dc:creator><pubDate>Mon, 16 May 2016 10:06:57 GMT</pubDate></item></channel></rss>