ESP32 Video Input Using I2S

Computer engineering student [sherwin-dc] had a rover project which required streaming video through an ESP32 to be accessed by a web server. He couldn’t find documentation for the standard camera interface of the ESP32, but even if he had it, that approach used too many I/O pins. Instead, [sherwin-dc] decided to shoe-horn a video into an I2S stream. It helped that he had access to an Altera MAX 10 FPGA to process the video signal from the camera. He did succeed, but it took a lot of experimenting to work around the limited resources of the ESP32. Ultimately [sherwin-dc] decided on QVGA resolution of 320×240 pixels, with 8 bits per pixel. This meant each frame uses just 77 KB of precious ESP32 RAM.

His design uses a 2.5 MHz SCK, which equates to about four frames per second. But he notes that with higher SCK rates in the tens of MHz, the frame rate could be significantly higher — in theory. But considering other system processing, the ESP32 can’t even keep up with four FPS. In the end, he was lucky to get 0.5 FPS throughput, but that was adequate for purposes of controlling the rover (see animated GIF below the break). That said, if you had a more powerful processor in your design, this technique might be of interest. [Sherwin-dc] notes that the standard camera drivers for the ESP32 use I2S under the hood, so the concept isn’t crazy.

We’ve covered several articles about generating video over I2S before, including this piece from back in 2019. Have you ever commandeered a protocol for “off-label” use?

Continue reading “ESP32 Video Input Using I2S”

Open-Source Insulin: Biohackers Aiming For Distributed Production

When you’ve got a diabetic in your life, there are few moments in any day that are free from thoughts about insulin. Insulin is literally the first coherent thought I have every morning, when I check my daughter’s blood glucose level while she’s still asleep, and the last thought as I turn out the lights, making sure she has enough in her insulin pump to get through the night. And in between, with the constant need to calculate dosing, adjust levels, add corrections for an unexpected snack, or just looking in the fridge and counting up the number of backup vials we have on hand, insulin is a frequent if often unwanted intruder on my thoughts.

And now, as my daughter gets older and seeks like any teenager to become more independent, new thoughts about insulin have started to crop up. Insulin is expensive, and while we have excellent insurance, that can always change in a heartbeat. But even if it does, the insulin must flow — she has no choice in the matter. And so I thought it would be instructional to take a look at how insulin is made on a commercial scale, in the context of a growing movement of biohackers who are looking to build a more distributed system of insulin production. Their goal is to make insulin affordable, and with a vested interest, I want to know if they’ve got any chance of making that goal a reality.

Continue reading “Open-Source Insulin: Biohackers Aiming For Distributed Production”

Math, Optics, And CNC Combine To Hide Secret Images In Acrylic

Magic mirrors, with an LCD panel hidden behind a partially reflectively mirror, are popular for a reason — they’re a good-looking way to display useful information. A “Magic Window,” however, is an entirely different thing — and from the look of it, a far cooler one.

If you’ve never seen a Magic Window before, don’t worry — it’s partially because you’re not supposed to see it. A Magic Window appears to be a clear piece of glass or plastic, one with a bit of a wave in it that causes some distortion when looking through it. But as [Matt Ferraro] explains, the distortion encodes a hidden image, visible only when light passes through the window. It looks a bit like a lithophane, but it’s projected rather than reflected, and it relies on an optical phenomenon known as caustics. If you’ve ever seen the bright and dark patches cast on the bottom of a swimming pool when sunlight hits the surface, you’ve seen caustics.

As for how to hide an image in a clear window, let’s just say it takes some doing. And some math; Snell’s Law, Fermat’s Theorem, Poisson’s Equation — all these and more are mentioned by [Matt] by way of explanation. The short story is that an image is morphed in software, normalized, and converted into a heightmap that’s used to generate a toolpath for a CNC router. The design is carved into a sheet of acrylic by the router and polished back to clarity with a succession of sandpaper grits. The wavy window is then ready to cast its hidden shadow.

Honestly, the results are amazing, and we marvel at the skills needed to pull this off. Or more correctly, that [Matt] was able to make the process simple enough for anyone to try.

Continue reading “Math, Optics, And CNC Combine To Hide Secret Images In Acrylic”

PS2 Gets The Ginger Portable Treatment

The first thing we notice about this portable PS2 is that the plastic looks like a consumer-grade shell, not a 3D printed case. It comes from [GingerOfOz], who has lots of portable conversions under his belt, so we are not surprised this looks like a genuine Sony device. When you are as experienced as he, details like plastic texture, and button selection, are solved problems, but shouldn’t be taken for granted by us mortals.

Of course, this isn’t just pretty, and if it weren’t functional, we wouldn’t be talking about it. The system plays nearly all PS2 titles from USB memory. The notable exceptions are the ones that refuse to load without a Dualshock controller. Rude. If you’re wondering if it plays games at full speed, yes. It achieves authentic speed because it uses a PS2 slim motherboard which gets cut down by a Dremel. Custom PCBs provide the rest of the hardware, like volume buttons and battery charging. There is no optical drive since they are power hogs, so your cinematic cut scenes may lag, and load times are a little longer.

Modern mobile phones are one of the most powerful gaming systems ever built, but there is something about purpose-built portable gaming hardware that just feels right. You know?

Continue reading “PS2 Gets The Ginger Portable Treatment”