Microwave Radar Module as PIR replacement.
-
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)
In my previous post replace this line:
stdev_sum += mw_s.pop_stdev();with this:
// 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() > 30 && peakcount < 3) { peakcount++; } else { stdev_sum += mw_s.pop_stdev(); stdev_sum *= 0.92; // if (stdev_sum >= 7) stdev_sum -= 7; // Default background noise if (stdev_sum > 512) stdev_sum = 512; if(peakcount > 0) peakcount--; }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.
I have invested like 10-20hours into testing and debugging the FC1816 and I can say .. this thing is .. peculiar ..
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 ..
I can detect my foot beckoning 2-3meters apart in my bed :D
An example of the code snipped in action:
Here you can see the big spikes in the beginning completely ignored (1)
-
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)
In my previous post replace this line:
stdev_sum += mw_s.pop_stdev();with this:
// 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() > 30 && peakcount < 3) { peakcount++; } else { stdev_sum += mw_s.pop_stdev(); stdev_sum *= 0.92; // if (stdev_sum >= 7) stdev_sum -= 7; // Default background noise if (stdev_sum > 512) stdev_sum = 512; if(peakcount > 0) peakcount--; }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.
I have invested like 10-20hours into testing and debugging the FC1816 and I can say .. this thing is .. peculiar ..
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 ..
I can detect my foot beckoning 2-3meters apart in my bed :D
An example of the code snipped in action:
Here you can see the big spikes in the beginning completely ignored (1)
-
Currently I don't plan to make a library .. a library implies that the sensor is very easy to use .. plug in + import library.
The FC1816 is not such a sensor.
- Needs Voltage-Supply filter (RC Section)
- Need separate cable to grab the signal at the 2nd amplification stage
- Need potentiometer to lower the amplification
- Is very prone to random noise (in fact even entering RF24 or ATMEGA328 low power mode might increase noise floor a lot)
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.
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 ;-)
If you need any help just ask here and I will support you the best I can.
-
It's a review of some radar sensors if anyone is interested.
-
Does anyone have a complete MySensors sketch for these that they would be willing to share?
I tried to create a wildlife sensor with it a while ago.. but the signal seemed to always be high.
-
Does anyone have a complete MySensors sketch for these that they would be willing to share?
I tried to create a wildlife sensor with it a while ago.. but the signal seemed to always be high.
I when the tested here is such:
They work great on an almost standard PIR MOTION sketch
..By the way why no one makes these motion sensors MW for MySensors on openhardware, it seems there is nothing complicated?
-
Does anyone have a complete MySensors sketch for these that they would be willing to share?
I tried to create a wildlife sensor with it a while ago.. but the signal seemed to always be high.
@alowhum
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.