Post about your Basic project here

Moderator: Mmiscool

User avatar
By Electroguard
#67167 In 7 lines of Esp-Basic and 3 easy connections... how crazy is that!
My esp dev module even offers a 5v connection to make things super easy.
Code: Select allsensorpin = 12 ' from Radar module OUTput
alertpin = 13 'to LED indicator

interrupt sensorpin, [TRIGGERED]
wait

[TRIGGERED]
if io(laststat,sensorpin) = 1 then io(po,alert,0) else io(po,alert,1)
wait


Connect module GND and Vin (5V) and OUTput to Esp gpio input

Cheap module (£1 each or 5 for £2:50 - free delivery of course!).
Works from within a sealed enclosure (not a nuclear bunker), out-performs pir sensors, appears to have an option for LDR night-time-only operation. Looks like a game-changer.

http://www.ebay.co.uk/itm/5-10-20Pcs-RCWL-0516-Microwave-Radar-Sensor-Switch-Module-Body-Induction-Module/122432080819?_trksid=p2047675.c100005.m1851&_trkparms=aid%3D2220072%26algo%3DSIM.MBE%26ao%3D2%26asc%3D44293%26meid%3D6974052a59d44a90b9c5f666a617b480%26pid%3D100005%26rk%3D1%26rkt%3D6%26sd%3D191945278637
User avatar
By trackerj
#67169
Electroguard wrote:In 7 lines of Esp-Basic and 3 easy connections... how crazy is that!
My esp dev module even offers a 5v connection to make things super easy.
Code: Select allsensorpin = 12 ' from Radar module OUTput
alertpin = 13 'to LED indicator

interrupt sensorpin, [TRIGGERED]
wait

[TRIGGERED]
if io(laststat,sensorpin) = 1 then io(po,alert,0) else io(po,alert,1)
wait


Connect module GND and Vin (5V) and OUTput to Esp gpio input

Cheap module (£1 each or 5 for £2:50 - free delivery of course!).
Works from within a sealed enclosure (not a nuclear bunker), out-performs pir sensors, appears to have an option for LDR night-time-only operation. Looks like a game-changer.

http://www.ebay.co.uk/itm/5-10-20Pcs-RCWL-0516-Microwave-Radar-Sensor-Switch-Module-Body-Induction-Module/122432080819?_trksid=p2047675.c100005.m1851&_trkparms=aid%3D2220072%26algo%3DSIM.MBE%26ao%3D2%26asc%3D44293%26meid%3D6974052a59d44a90b9c5f666a617b480%26pid%3D100005%26rk%3D1%26rkt%3D6%26sd%3D191945278637


Nice finding. What's the wiring for your example.
How is about the false positives? For example I have PIR units that will not drive me crazy when my cats decide to run a footbal championship in the middle of the night.
User avatar
By Electroguard
#67174 Only got it this afternoon, so not had time to do anything other than quickly do a program to get it working then post it up.
Here's how I wired it to my Ser Dev Kit 202 module using it's 5v (battery input) pin.
Image
Simply a matter of module output (yellow)to esp gpio12 input, and the 0v and 5v supplies of course.

Works well so far - reliably detects my body from 4 m across the room, and can detect just a finger movement on the desk, and so far it has not detected any false positive movements, unlike PIRs which detect swirling hot air currents and lethal dog farts.
PIRs detect heat from bare skin such as each end of an animal, but its not too hard to insulate oneself to defeat PIR detection.
These Radar detectors receive the bounced back signal that gets reflected from metal or water, and even cats are basically bags of water, but I think I saw something about reducing sensitivity using a resistor, although I'm not 100% sure.

I've got a tractor clutch to replace and also need to come up with my own air suspension sensor arrangement for my ex-ambulance camper, but when I get the chance I want to try adding a radar sensor into a pir sensor to see how effective that combination might be for giving reliable sensitivity without false triggers.

I've seen mention of the fact that radar sensors can detect movement from under the table and behind windows etc, which should be very useful for creating weatherproof external sensors.
It also means it should be possible to create covert sensors that don't advertise their presence to potential undesirables.
Much experimenting to be done.