Multiple people have recently shared this exciting demonstration (nitter) with us – visualizing airflow using a smartphone, called ‘background-oriented schlieren’. On a hot summer day, you might see waves in the air – caused by air changing density as it warms up, and therefore refracting the light differently. Schlieren photography is an general set of techniques for visualizing fluid flow, but of course, it can also be applied to airflow. In this case, using some clever optical recognition tricks, this schlieren method lets you visualize flow of air using only your Android smartphone’s high resolution camera and a known-pattern printed background! Continue reading “Observe Airflow Using Smartphone And Background-Oriented Schlieren”
digital cameras hacks938 Articles
Use AprilTags To Let Guests Open Your Front Gate
[Herb Peyerl] is part of a robotics team, and in his robotics endeavours, learned about AprilTags; small QR-code-like printable patterns that are easily recognizable by even primitive machine vision. Later on, when thinking about good ways to let his guests through his property’s front gate, the AprilTags turned out to be a wonderful solution. Now all he needs to do is send his guest a picture of the appropriate AprilTag, which they can present to the camera at his front gate using their smartphone.
He used an OpenMV board for this – thanks to its wide variety of available libraries, the AprilTag recognition is already baked in, and the entire script is merely a hundred lines of MicroPython. An old surveillance camera gave up its dome-shaped housing, and now the OpenMV board is doing guest access duty on a post in front of his property’s front gate. He’s shared the code with us, and says he’s personally running a slightly modified version for security reasons — not that a random burglar is likely to stumble upon this post anyway. Besides it looks like the gate would be easy for a burglar to jump over without any need for security bypass, and the convenience benefits of this hack are undeniable.
In the unlikely chance a burglar is reading this, however, don’t be sad. We do happen to have a bunch of hacks for you, too. There’s far less secure systems out there, from building RFID keyfobs to gated community access control systems, sometimes all you need is a 12 V battery. If you’re not into burglary, that’s okay too — we’ve covered other guest access hacks before, for instance, this ESP8266-powered one.
Converting A Sigma Lens To Canon, Digital Functionality Included
These days, camera lenses aren’t just simple bits of glass in sliding metal or plastic housings. They’ve often got a whole bunch of electronics built in as well. [Dan K] had just such a lens from Sigma, but wanted to get it working fully with a camera using the Canon EF lens fitting. Hacking ensued.
The lens in question was a Sigma 15-30mm f/3.5-4.5 EX DG, built to work with a Sigma camera using the SA mount. As it turns out, the SA mount is actually based on the Canon EF mount, using the same communications methods and having a similar contact block. However, it uses a mechanically different mounting bayonet, making the two incompatible.
[Dan] sourced a damaged EF lens to provide its mount, and modified it on a lathe to suit the Sigma lens. A short length of ribbon cable was then used to connect the lens’s PCB to the EF mount’s contacts. When carefully put back together, the lens worked perfectly, with functional auto-focus and all.
It goes to show that a little research can reveal possibilities for hacking that we might otherwise have missed. [Dan] was able to get his lens up and running on a new camera, and has taken many wonderful pictures with it since.
We’ve seen some great lens hacks over the years, from 3D printed adapters to anamorphic adapters that create beautiful results. If you’ve got your own mad camera hacks brewing up, drop us a line!
ESP32 Camera Slider Build Keeps Things In Perspective
We’ve seen a lot of camera slider builds here at Hackaday, and for good reason: having one really lets you take your project documentation, especially videos, to the next level. It’s one of those force multiplier builds — after you’ve completed it, it can help you make all your future projects just that much better. But we’re also no strangers to seeing these projects become overly complex, which can often make it difficult for others to replicate.
But that’s not the case here. The motorized camera slider that [Sasa Karanovic] recently sent our way does exactly what you’d expect, and little else. That’s not meant as a dig — sometimes the best approach is to keep it simple. Unless you’re a professional photographer or videographer, it’s unlikely you need a complicated motion rig. This design is perfect for the hacker or maker who wants to spruce up their project videos, but doesn’t want to spend months fiddling with the design. Continue reading “ESP32 Camera Slider Build Keeps Things In Perspective”
DIY Night Vision, Where Four Is Better Than Two
Night vision projects are great, and the hardware available to hobbyists just gets better and better. [Just Call Me Koko] shows off just such a build using four low-light, IR-sensitive cameras, four displays, and four lenses in 3D printed enclosures mounted to a helmet. Why four? Well, mounting two cameras and displays per eye is the easiest way to yield a wider field of view, and for bonus points, it sure looks extra weird.
At its heart, each of the four segments is the same. A Foxeer Night Cat 3 camera is mounted at the front, its output is connected directly to a 2″ diagonal NTSC/PAL display, and at the rear is a DCX (double convex) lens 38 mm in diameter with a 50 mm focal length. Add a printed enclosure, and the result is a monocular night vision display. Do it three more times and arrange them around one’s eyeballs, and one can make a night vision system with a panoramic view that probably takes only a little getting used to.
How well does it work? [Just Call Me Koko] does some walking around and also tries some target practice while wearing them, and concludes that while they don’t have nearly the clarity of the real deal (the 320×240 resolution displays limit the details one can perceive), they do work fairly well for what they are. Also, the cost of parts is a small fraction of the cost of the real thing, making it a pretty enjoyable project in the end.
The kind of hardware available to hobbyists today is what makes this kind of night vision project accessible, but there’s always the good old high-voltage analog method.
Continue reading “DIY Night Vision, Where Four Is Better Than Two”
Scratch-Built Industrial Camera’s Modular Design Really Stacks Up
The news here isn’t so much that [Guarav Singh] built this high-quality industrial digital camera from scratch, but it’s in the way it was accomplished. That plus the amount of information that’s packed into the write-up, of course. And the excellent photography.
Modularity was one of [Guarav]’s design goals, with the intention of being able to swap out the sensor as the technology changes. To that end, [Guarav] came up with a stack of three PCBs. The middle board of the stack contains a Lattice FPGA chip along with two 16-MB RAMs and the FPGA config flash. The sensor board lies on one side of the FBGA board, while the USB 3.0 board is on the other. Each six-layer board is a masterpiece of high-density design, and the engineering that went into interfacing them and getting everything squeezed into a 3D-printed case with an integrated aluminum C-mount ring is pretty impressive.
[Guarav]’s write-up goes into a great deal of detail on processing the sensor data on the FPGA. Also, there’s quite a bit of practical information on implementing MIPI (Mobile Industry Processor Interface) and the CSI (Camera Serial Interface) specification. We’ve delved into this world before, but this project is a great hands-on explanation that might really help move your MIPI project along.
Thanks for the tip, [STR-alorman].
Hackaday Prize 2022: Multispectral Smartphone Camera Reveals Paintings’ Inner Secrets
Multispectral imaging, or photography using wavelengths other than those in ordinary visible light, has various applications ranging from earth observation to forgery detection in art. For example, titanium white and lead white, two pigments used in different historical eras, look identical in visible light but have distinct signatures in the UV range. Similarly, IR imaging can reveal a painting’s inner layers if the pigments used are transparent to IR.
Equipment for such a niche use is naturally quite pricey, so [Sean Billups] decided to transform an older model smartphone into a handheld multispectral camera, which can help him analyze works of art without breaking the bank. It uses the smartphone’s camera together with a filter wheel attachment that enables it to capture different spectral ranges. [Sean] chose to use a Google Pixel 3a, mainly because it’s cheaply available, but also because it has a good image sensor and camera software. Modifying the camera to enable IR and UV imaging turned out to be a bit of a challenge, however.
Image sensors are naturally sensitive to IR and UV, so cameras typically include a filter to block anything but visible light. To remove this filter from the Pixel’s camera [Sean] had to heat the camera module to soften the adhesive, carefully remove the lens, then glue a piece of plastic to the filter and pull it out once the glue had set. Perfecting this process took a bit of trial and error, but once he managed to effect a clear separation between camera and filter it was simply a matter of reattaching the lens, assembling the phone and mounting the filter wheel on its back.
The 3D-printed filter wheel has slots for four different filters, which can enable a variety of IR, UV and polarized-light imaging modes. In the video embedded below [Sean] shows how the IR reflectography mode can help to reveal the underdrawing in an oil painting. The system is designed to be extendable, and [Sean] has already been looking at adding features like IR and UV LEDs, magnifying lenses and even additional sensors like spectrometers.
We’ve seen a handful of multispectral imaging projects before; this drone-mounted system was a contestant for the 2015 Hackaday Prize, while this project contains an excellent primer on UV imaging.