Raspberry Pi Controls 3D-Printed Pan Tilt Camera with Mouse

If you’re looking for a fun way to control your camera module with the Raspberry Pi, take a closer look at this mouse-operated camera system created by maker and developer Erwin Chin. With a custom web app and 3D printed housing, he’s devised a simple interface for changing what the camera is focused on using nothing more than mouse input. Likening the project to a first-person shooter game, users are able to look around through the camera with crosshairs overlaying the video feed.

While this is the first Raspberry Pi project we’ve seen from Chin, a quick look at his GitHub history indicates experience with Python—the go-to choice for many developers on the Raspberry Pi. This also appears to be the first 3D-printed project Chin has shared to Thingiverse.

Article continues below

A Raspberry Pi 3B+ is used to operate the camera and run the web app, but there’s no reason you couldn’t use a Pi 4 module. A Zero W might pull off the project as well, but you’ll have better luck with a bit of extra memory from the bigger Pi models. The camera module used is a Raspberry Pi Camera v2.1 mounted to a custom 3D-printed frame. This frame also houses a couple of RDS3115mg servo motors and an Adafruit 16ch PWM HAT to help drive them.

If you’d like to recreate this Raspberry Pi project, check out the original project thread on Reddit, and be sure to follow Chin for more projects and any future updates on this one. 

Ash Hill
Contributing Writer