Hackaday Prize 2023: Eye Tracking On A Budget

There is a lot to be learned from the experience of building something functional, and even better if doing so doesn’t break the bank. [Sergej Stoetzer]’s 20€ DIY-Eyetracker aims to be an educational process that covers everything from hardware to functional software in an accessible way.

Hardware based on an economical USB endoscope, and can be used as-is or repackaged with IR illumination.

The eye tracker is based on an economical USB endoscope, which is a small camera optimized for up-close applications. By attaching the camera to a pair of common safety glasses so that it looks at one’s eye, some OpenCV and Python code can do simple tracking and interfacing with other projects.

Basic eye tracking — like determining whether a user is looking up, down, left, or right — can be all that’s needed depending on one’s application. That means that it’s possible to get something working with very little hardware and some easy-to-use OpenCV functions.

Even better performance can be had by adding IR illumination and repackaging the camera into a 3D printed enclosure. The pupil of the eye is an aperture in the iris that appears as a black circle, and that’s even more true under IR illumination which is invisible to the naked eye. If you’re curious about what’s inside those USB endoscope cameras and how to remove their IR filter, there are some good pictures of that process in this project.

The ability to get something prototyped quickly and working well enough to learn new things is a valuable skill, and that’s why re-engineering Education is one of the challenges in the 2023 Hackaday Prize.

USB Webcams Out Of Stock? Make One With A Raspberry Pi And HQ Camera Module

More people working from home has had an impact on the cost and availability of USB webcams, so [Jeff Geerling] got around the issue with a DIY solution that rang in around $100. It consists of a Raspberry Pi and HQ camera module acting as a USB webcam, and there is no messy streaming of ffmpeg over the network masquerading as a camera device or anything. It works just as a USB camera should.

[Jeff] chose a Raspberry Pi Zero and HQ camera module for his unit, making a tidy package that might not be quite as small as commercial webcams, but is certainly perfectly respectable as a USB camera. That being said, there are a few drawbacks, namely the lack of a microphone or autofocus, latency issues at higher resolutions, and the need to shut down the Pi cleanly.

Check out the GitHub repository for everything needed to set up your own, including a complete hardware list and some options for mounting. [Jeff] also tested whether the camera would work with the new keyboard-embedded Raspberry Pi 400, and it absolutely does. Embedded below is a video walkthrough and demonstration of the whole project, so check it out.

Continue reading “USB Webcams Out Of Stock? Make One With A Raspberry Pi And HQ Camera Module”

Shop-built Inspection Camera Lends Optical Help On A Budget

As your builds get smaller and your eyes get older, you might appreciate a little optical assistance around the shop. Stereo microscopes and inspection cameras are great additions to your bench, but often command a steep price. So this DIY PCB inspection microscope might be just the thing if you’re looking to roll your own and save a few bucks.

It’s not fancy, and it’s not particularly complex, but [Saulius]’ build does the job, mainly because he thought the requirements through before starting the build. MDF is used for the stand because it’s dimensionally stable, easy to work, and heavy, which tends to stabilize motion and dampen vibration. The camera itself is an off-the-shelf USB unit with a CS mount that allows a wide range of lenses to be fitted. A $20 eBay macro slider allows for fine positioning, and a ring light stolen from a stereo microscope provides shadow-free lighting.

We’d say the most obvious area for improvement would be a linkage on the arm to keep the plane of the lens parallel to the bench, but even as it is this looks like a solid build with a lot of utility – especially for hackers looking to age in place at the bench.