Fork me on GitHub

Project Notes

#424 VL53L0X/TheToneRanger

A simple modification of the basic VL53L0X example to add audio indication of range.

Here’s a quick demo..

clip

Notes

The VL53L0X is a very small Time-of-Flight (ToF) ranging sensor. It can be used for measurement up to 2m (in long distance mode).

This is a simple modification of the vl53l0x.ino example from the Adafruit_VL53L0X library.

It adds a tone output at a frequency that is inversely proportional to the distance.

In VL53L0X default mode, this results in a frequency range of about 1000Hz (about half a meter away) to 1480Hz (close in). The actual range can be adjusted by changing the calculation that converts distance into frequency.

Construction

Breadboard

Schematic

I’ve actually used a Maker UNO board for this demo, as it has the piezo buzzer built-in:

TheToneRanger_module

Build

Credits and References

About LEAP#424 ArduinoSensorsAudio

This page is a web-friendly rendering of my project notes shared in the LEAP GitHub repository.

Project Source on GitHub Return to the LEAP Catalog
About LEAP

LEAP is my personal collection of electronics projects - usually involving an Arduino or other microprocessor in one way or another. Some are full-blown projects, while many are trivial breadboard experiments, intended to learn and explore something interesting.

Projects are often inspired by things found wild on the net, or ideas from the many great electronics podcasts and YouTube channels. Feel free to borrow liberally, and if you spot any issues do let me know or send a pull-request.

NOTE: For a while I included various scale modelling projects here too, but I've now split them off into a new repository: check out LittleModelArt if you are looking for these projects.

Project Gallery view the projects as an image gallery Notebook reference materials and other notes Follow the Blog follow projects and notes as they are published in your favourite feed reader