Category: Security

Evaluation of Occupancy / Motion Sensors for Perimeter Security

— Work in Progress —

I am evaluating range, sensitivity, immunity from false triggering, and power requirements, for various projects around the house. In particular, I would like to be notified when a person or a vehicle comes down my driveway, so I can light the way if it’s dark.

Sensors Considered

  1. Passive Infrared (PIR)
    1. AM312 3.3 or 5V, active low
    2. SB0072 Futurelec MINI_PIR_MOD_B 5-20V, adjustable delay time
  2. Microwave Doppler
    1. RCWL-0516
    2. RCWL-9192
  3. Ultrasonic (SONAR)
    1. RCWL-1655 board and waterproof ultrasonic distance sensor

TLDR;

PIR produces many false triggers with sunlight and moving foliage.

Microwave Doppler is pretty short-range

Ultrasonic is pretty short-range

Testing

Passive Infrared (PIR)

Microwave Doppler

Ultrasonic (SONAR) – RCWL-1655

Range: Quoted as up to 5 meters; detects humans up to about 1.5 meters

Immunity from false triggering: Once I filtered out zero-responses, I only see false triggering when there is a target too small or too far away to reliably register.

Power requirements: Currently testing with a 1500 mAh LiPo battery; started the test on 2024-09-22 at 21:00 or so.

Test routine:

  • take a reading “ping”
  • if result is different than before, take repeated readings until two in a row match within 10%
  • if this new “clean” reading is different than before, report it with a JSON message transmitted via LoRa
  • sleep for 0.25 seconds (originally 1 second). Since the processing takes 120ms or so, sleeping for 250ms cuts power consumption by perhaps two thirds.

Chuck’s SDP Links

Articles especially pertinent to Senior Design Projects

Please share the problems you encounter!

U.Illinois Robotic Systems book – work in progress. In particular, this book already has nice sections on forward and reverse kinematics.

Switching Mains Power – not fully investigated yet. A place to start your investigation.

Sonoff S31 Mains Power Switches

Sonoff S40 Mains Power Switches

Adafruit Power Relay Module

Surface-mount soldering tutorial

“Ideal Diodes”: Protect Your Project from Reversed Polarity Power

Don’t use Nyquist as your only criterion for choosing a sampling rate

RP2040 resources from Cornell from their microprocessor design course ECE 4760

Wearable sensor for continuous analysis of sweat

Astrophotography and the new HD Raspberry Pi Camera

Raspberry Pi HD Camera for astrophotography

AstroPitography | Dr Adam Luke Baskerville

My DIY 8″ Telescope & Raspberry Pi HQ Camera

Astrophotography with Raspberry Pi HQ Camera and Celestron Astromaster 130 EQ

New Pi camera – any good for Astrophotography?

I2CWrapper – Using microcontrollers to translate I2C for non-I2C devices

System for digital signing of photographs

… and breaking the system for digital signing of photographs

Forest-deployed wildfire sensing and reporting system

New series of ATtiny µP eliminates requirement for dedicated pins

 

Blogs and Vlogs

 

Engineering, specifically EE, CompE

Eric Bogatin – Practical EE/CompE fundamentals and practical skills

Andreas Spiess – LoRa, low-power, sensor networks, ESP8266, ESP32

David Jones – EEVblog; instrumentation, troubleshooting, repair

Bil Herd – electrical engineer, designer at Commodore; CPLD, PLL

Moritz Klein – Audio electronics

Fran Blanche – FranLab; Apollo flight computer, DSKY, FranTone audio pedals

Big Clive – tear-downs

Ben Krasnow – Applied Science; including electronics; how he built his own electron microscope

Alan [w2aew] – tutorials on components; ham radio; RF

 

Security

Steve Gibson – Security Now podcast – a MUST for computer security folks; good episodes on internet components

 

Science & Math

Michael Stevens – Vsauce, The Mind Field

Grant Sanderson – 3Blue1Brown; math concepts, including a good visualization of Fourier analysis

Ben Sparks, Holly Krieger – Numberphile; math concepts, including large numbers and number theory

Matt Parker – Stand-Up Maths, lectures at Royal Institution

Brady Heywood – Understanding Complexity, complexity theory

Grady Hillhouse – Practical Engineering, particularly civil engineering

Collin Cunningham – “Lab Notes”, quick videos about electrical components and Adafruit products

 

Making, Robots, and Machinery

Adam Savage – amazing maker, MythBusters

Simone Giertz – general making, silly projects

Jeremy Fielding – general EE topics; built a cool robot arm

Tim Hunkin – very fun arcade game maker – machining tips

 

Other Sites of Topical Interest

The Cave Pearl Project – remote underwater sensing; excellent documentation of battery systems, sensors, builds

Interesting circuit uses only two wires for power and status (not TWI)

Comparison of manufacturers of PCBs in small quantities (incl. PCBWay, OSHPark, and JLCPCB)

How to use a thermal camera to troubleshoot electronics projects

Car security systems

Failures are important, and sharing them is more so

An interesting cascade of failures

NASA failure analysis

More NASA failure analysis

Mechanical analog fire-control computers

FloodNet – distributed flood sensing system for NYC

Arduino debugging

Acoustic detection of water leaks

Circuit board for a differential oscilloscope probe

Three designs for bidirectional voltage level shifting

Orange Pi 3b vs. Raspberry Pi

Battery monitoring

Introduction to Kalman Filters, useful for combining data from multiple sources

Ongoing project documentation

(Mis)using LoRa nodes to sense soil moisture

Mechanical neural network

Microphone array to isolate individual voices

Interesting uses of diodes

The Matter IoT Standard

Using the Matter protocol on ESP32

Building or buying contact piezo microphones

 

Internet Black Hole – Danger!

Destin Sandlin – SmarterEveryDay; how stuff works, including helicopters, nuclear subs, the James Webb space telescope

Derek Muller (PhD Physics) – Veritasium

Mark Rober – e.g. squirrel obstacle course, glitter bomb, world’s smallest Nerf gun

Markus Voelter – Omega Tau podcast; aviation, gliders, rides in fighters. Half of his podcasts are in English; the other half in German

 

Scary (but interesting) stuff – Don’t do this at home (nor at M5, nor for SDP)!!!

Mehdi Sadaghdar – ElectroBOOM; high-voltage stuff; fun to watch

Colin Furze – crazy powerful builds

Plasma Channel – plasma thrusters

Styro Pyro – big scary lasers

 

Thoughts on serial communications

Maybe these issues have been solved in the past. I don’t think there is necessarily a very good solution, though.

The problem is that serial communications is imperfect. Characters get messed up in transit between two devices. When they do, that in turn messes up carefully thought out protocols, like “Capture characters in a buffer until you see the linend; then process the buffer as a single message.”

[Read More...]

Teensy, touch sensing, and ESP8266 – via MQTT and Raspberry Pi

Whee!

I have a demo/development setup on a small breadboard which powers an ESP-01 ( the small, cheap, 8-pin breakout board for an ESP8266 chip ). In addition to being a programming board, it has 3v3 voltage regulation, a pot, a temperature sensor, a simple LED, and a WS2812 3-color LED. I have the installed ESP8266 running a program to subscribe to an MQTT broker and light the LEDs according to publications on a certain topic.

[Read More...]

Securing a Raspberry Pi IoT Gateway

I believe that the UMass IT policy forbids “rogue” WiFi gateways in order to prevent anonymous Internet access, so that nefarious actors can be identified.

I needed to create an IoT server for my lab, M5, and it needed to be accessible via WiFi. It also needed to have Internet access so that I could keep its Linux firmware up to date.

[Read More...]