Image

Build an easy LED circuit that senses “hot and cold” distances.

In this project, you’ll combine an Arduino micro-controller, a Ping ultrasonic sensor, and LEDs to build a circuit that senses distances as “hot” and “cold.” Then you’ll run 3 Arduino programs (called “sketches”) that use this “hot/cold” information in very different ways. It’s an easy project that requires no soldering, so it’s perfect for beginners. And it’s a great way to learn how a single circuit in hardware can be made to perform all kinds of tricks in the software that runs on the microcontroller.

Sketch 1 measures distance from the sensor. When you’re far away, the “cold” ...

Get Make: Ultimate Guide to 3D Printing 2014 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.