Depth Multitool: turning a USB webcam into a depth sensor
Depth Multitool turns an ordinary USB webcam into an interactive depth sensor. Samuel Alexander’s project estimates the distance of every pixel from a single image, at 20 frames per second. No stereo camera, infrared projector or LiDAR sensor is needed: all the processing happens locally on the NPU of the Arduino VENTUNO Q.
The heart of the system is the Depth Anything V2 Small model, with 25 million parameters. Inference runs on the Qualcomm Dragonwing NPU and takes about 16 milliseconds. As a result, the eight CPU cores of the VENTUNO Q stay free for video capture, interface drawing and audio generation.
336×252 input and three threads to keep up with 20 FPS
The model is configured with a 336×252 pixel input and full floating-point precision. Alexander chose to lower the resolution rather than quantize to 8 bit, because quantization introduced depth artifacts and flattened the near field.
Camera capture, inference and rendering are split across three threads. This way the NPU can start processing the next image while the current result is shown on screen. The stream stays smooth even with a cheap webcam.

Rebuilding the project takes only a few parts:
- Arduino VENTUNO Q, with its Qualcomm Dragonwing NPU
- a common USB webcam
- a 10-inch display
- a USB-C power bank for power
The software is developed in Arduino App Lab, the environment that lets you load the model and run it on the NPU.
Heatmap, Slicer, Flood and Sonar: the four depth reading modes
The estimated depth is presented through four interactive modes. Each one reads the same map differently, so the same hardware tells the scene in different languages.
- Heatmap: the depth map overlaid on the webcam image
- Slicer: highlights only the objects that fall within a selected depth range
- Flood: virtual filling of the scene from the background towards the camera
- Sonar: converts depth into sounds, with low clicks on the left and high clicks on the right, faster as objects get closer

The Sonar mode is the most surprising, because it turns an optical measurement into an audio signal. The Slicer mode, on the other hand, is the most useful when you need to isolate an object at a certain distance and ignore everything else.
Power draw: 11.8 watts at 20 FPS, 15.2 watts pushing to 30 FPS
Consumption depends on how hard the NPU is pushed. At around 30 frames per second the board rises to 15.2 watts. Limiting the application to 20 FPS and using the NPU’s balanced power mode, consumption drops to 11.8 watts.
This margin makes the project portable: a USB-C power bank is enough to power the board, the webcam and the 10-inch display. What’s more, the drop in frame rate does not compromise interactive use, because the NPU still processes each frame quickly.
Anyone who wants to follow the project’s development will find the details of the work on the NPU and the tests of the four modes on maker Samuel Alexander’s site.
Source: https://projecthub.arduino.cc/samy_alxndr/depth-multitool-on-the-arduino-ventuno-q-75f09d
The post Depth Multitool: turning a USB webcam into a depth sensor appeared first on Open Electronics.