Emerging Interfaces
Ultrasonic Distance Sensing: Getting Started With the HC-SR04
The HC-SR04 ultrasonic sensor measures distance by timing a sound pulse's round trip, and it's still one of the simplest, cheapest ways to add proximity sensing to an interactive installation. This tutorial covers how it actually works, the wiring, the code, and when you'd reach for something else instead.