- Sat Jul 08, 2017 6:46 am
#68070
Ok, here's a question for you:
If a single radar sensor has a reflected range of 25m, would that range be...
a. Improved
b. Worsened
c. Make no difference
if a second sensor was added a few inches away from the first?
So what do you think - and don't cheat! ... guess your answer now before looking for me to tell you.
Well, I had to find out didn't I, so I opened out the petals of another folding cauliflower blanching dish to create a radar reflector, then tie-wrapped an esp module plus 2 radar sensors side by side (insulated in some loose thin foam packing) a couple of inches apart.
I've included the modified program below, which simply defines 2 different interrupt pins, both of which branch to the same interrupt handler routine to trigger the same red or green indicator.
Right, you can find the results at the bottom...
Code: Select allmemclear
sensorpin1 = 5 ' from Radar 1 module OUTput
sensorpin2 = 4 ' from Radar 2 module OUTput
alertpin = 12 'to LED indicator (RED on my RGB led)
okpin = 15 ' (GREEN on my RGB led)
alerts = 0
warning = 0
warningcss = "background: red;width:100%;height:85%"
meter warning, 0,10
cssid htmlid(), warningcss
html "<BR><BR>"
textbox alerts
cssid htmlid(), "margin:auto;width:100%;text-align:center;font-size:30px;color:blue;"
interrupt sensorpin1, [TRIGGERED]
interrupt sensorpin1, [TRIGGERED]
'io(po,13,0)
wait
[TRIGGERED]
if io(laststat,sensorpin) = 1 then
io(po,alertpin,1)
io(po,okpin,0)
alerts = alerts + 1
warning = 0
else
io(po,alertpin,0)
io(po,okpin,1)
warning = 10
endif
wait
The SECOND place prize goes to... ... ... the
single sensor which reached
25mTherefore FIRST prize goes to ... drum roll ...
TWIN sensors, which reached an astonishing range of
41mI'm sure it could easily have done more with some adjusting of sensor separation and positiong etc... but repeating experimental 82m round trips is for more enthusiastic youngens.