Fitting Snake Into A QR Code

QR codes are usually associated with ASCII text like URLs or serial numbers, but did you know you can also encode binary data into them? To demonstrate this concept, [MattKC] embarked on a journey to create a QR code that holds an executable version of Snake. Video after the break.

As you might expect, the version 40 QR code he ended up using is much larger than the ones you normally see. Consisting of a 171 by 171 grid, it’s the largest version that can still be read by most software. This gave [MattKC] a whopping 2,953 bytes to work with. Not a lot of space, but still bigger than some classic video games of the past.

To start, he first wrote Snake to run in a web browser using HTML, CSS, and JavaScript, which was able to fit in the available space. Modern browsers do a lot of the lifting with built-in features, and [MattKC] wanted more of a challenge, so he decided to instead create a Windows executable file. His first attempts with compiled C code were too large, which led down the rabbit trail of x86 Assembly. Here he found that his knowledge of Assembly was too limited to create a small enough program without investing months into the project. He went back to C and managed to compress his executable using Crinkler, a compressing linker commonly used in the demoscene. This shrunk the file down to 1,478 bytes.

Zbar, a command-line barcode reader for Windows was used to test the final Snake QR code. [MattKC] discovered a bug in Zbarcam that prevented it from reading binary data via a webcam input, so through the power of open source, he submitted a bug fix which is now integrated into the official release.

All the files are available for anyone to play with on [MattKC]’s website. The video below goes into a lot of detail on the entire journey. Since this project proves software can be embedded in QR codes, it means that malware could also be hidden in a QR code, if there is an exploitable bug somewhere in a smartphone QR reader app.

QR codes are an interesting tool with a variety of uses. Take a deep dive into how they work, generate a 3D printable version, or build a QR jukebox, if you want to learn more.

Continue reading “Fitting Snake Into A QR Code”

Simple MP3 Player Hides Home Automation Brilliance

Like bubble wrap or the corkscrew, plenty of everyday objects have lost almost all ties to their original purpose. It could be that the original product had no market but was able to find one in an unexpected place, or simply that the original use case disappeared. We think that this MP3 player for children might arrive at a similar fate as a home automation controller thanks to a recent project by [Sebastian].

The MP3 player is known as a Jooki and works by using small figurines (and a few buttons) to control the device. Different figurines cause the MP3 player to change playlists, for example, but it turns out that the device is capable of communicating over MQTT. This means that [Sebastian] was able to use the MQTT messages from the Jooki to do all kinds of things beyond its intended use with openHAB, an open-source home automation system, such as dimming the lights and closing the blinds when he puts his son to bed.

This platform has considerable potential for hacking thanks to the lightweight communications system it uses under the hood. The Jooki is a little pricey, but if you happen to have one around, it’s an impressive tool that can go well beyond its original intended use.

Something’s Brewing Up In The Woods – And It Looks Stunning

Caffeine fuels the hacker, and there are plenty of options to get it into your system, from guzzling energy drinks to chewing instant coffee pellets. But let’s take a nice cup of coffee as input source, which itself can be prepared in many ways using all kinds of techniques. In its simplest form, you won’t need any fancy equipment or even electricity, just heat up some water over a fire and add your ground beans to it. This comes in handy if you’re camping out in the woods or find yourself in a post-apocalyptic world, and in case you still prefer a stylish coffee maker in such a situation — why let an apocalypse ruin having nice things? — you’re in luck, because [Andreas Herz] designed this nifty looking off-the-grid coffee maker.

The design somewhat resembles a certain high-end precision coffee maker that even fictional billionaires approve of, which [Andreas] created in Fusion 360 and is available online. The device base is made from brass, wood, and silicone he cast from a 3D printed mold, while the glass and ceramic parts — i.e. the water tank and coffee pot — are simply store bought. [Andreas] opted for fuel gel as heat source, which burns under a copper coil that acts as heat exchanger and starts the actual brewing process. It took him a few attempts to get it right, and in the end, a coat of black exhaust paint did the trick to get the temperatures high enough.

This may not be the fastest coffee maker, as you will see in the video after the break, but choosing a different fuel source might fix that — [Andreas] just went the safe(r) way by using fuel gel here. But hey, why rush things when you’re camping or having a cozy time in a cabin anyway. Now all you need is the right blend, maybe even your own, made with a camp stove coffee roaster. Of course, in case of an actual apocalypse, you may not have easy access to a CNC router or 3D printer, but then there’s always the option to build an espresso machine from salvaged motorcycle parts.

Continue reading “Something’s Brewing Up In The Woods – And It Looks Stunning”

Vizy The AI Camera Aims To Ease Machine Vision

Cameras are getting smarter and more capable than ever, able to run embedded machine vision algorithms and pull off tricks far beyond what something like a serial camera and microcontroller board would be capable of, and the upcoming Vizy aims to be even smarter and easier to use yet. Vizy is the work of Charmed Labs, and this isn’t their first foray into accessible machine vision. Charmed Labs are the same folks behind the Pixy and Pixy 2 cameras. Vizy’s main goal is to make object detection and classification easy, with thoughtful hardware features and a browser-based interface.

Vizy can identify common birds with “Birdfeeder”, one of the several built-in applications that uses local processing only.

The usual way to do machine vision is to get a USB camera and run something like OpenCV on a desktop machine to handle the processing. But Vizy leverages a Raspberry Pi 4 to provide a tightly-integrated unit in a small package with a variety of ready-to-run applications. For example, the “Birdfeeder” application comes ready to take snapshots of and identify common species of bird, while also identifying party-crashers like squirrels.

The demonstration video on their page shows off using the built-in high-current I/O header to control a sprinkler, repelling non-bird intruders with a splash of water while uploading pictures and video clips. The hardware design also looks well thought out; not only is there a safe shutdown and low-power mode for the Raspberry Pi-based hardware, but the lens can be swapped and the camera unit itself even contains an electrically-switched IR filter.

Vizy has a Kickstarter campaign planned, but like many others, Charmed Labs is still adjusting to the changes the COVID-19 pandemic has brought. You can sign up to be notified when Vizy launches; we know we’ll be keen for a closer look once it does. Easier machine vision is always a good thing, because it helps free people to focus on clever ideas like machine vision-based tool alignment.

Cellerator Wants To Be Your Automated Desktop Biotech Lab

Cellerator really had us at “make designer beers”, but of course this multi-purpose biotech lab has a lot more to offer. It seeks to lower the cost and complexity barriers for automating useful scientific equipment, and wants to pave the way for more innovation in material science based.

The approach taken by Cellerator is to take existing lab tools and automate common research tasks using components familiar to anyone who’s used a 3D printer. A gantry system with end effectors designed for different tools like pipettes automate the processing of samples. A camera (with or without microscope) can be used for feedback via computer vision, or simply by logging snapshots.

A number of screenshots from the software show the depth of the plans for the system. They include widgets for telling the system where various fixtures such as the hot plate, centrifuge, and bioreactor are located. Sub menus for each tool set parameters for their operation, with a scheduling and instruction system for customizing each experiment as well as recording all of the data along the way.

The Mostly Forgotten Story Of Atmospheric Railway

It doesn’t matter whether you know it as a railway, a railroad, a chemin de fer, or a 铁路, it’s a fair certainty that the trains near where you live are most likely to be powered either by diesel or electric locomotives. Over the years from the first horse-drawn tramways to the present day there haven’t been many other ways to power a train, and since steam locomotives are largely the preserve of museums in the 21st century, those two remain as the only two games in town.

But step back to the dawn of the railway age, and it was an entirely different matter. Think of those early-19th-century railway engineer-barons as the Elon Musks and Jeff Bezos’ of their day, and instead of space and hyperloop startups their playground was rail transport. Just as some wild and crazy ideas are spoken about in the world of tech startups today, so it was with the early railways. One of the best-known of these even made it to some real railways, I’m speaking of course about the atmospheric railway.

These trains were propelled not by a locomotive, but by air pressure pushing against a piston in a partially evacuated tube between the tracks.

Continue reading “The Mostly Forgotten Story Of Atmospheric Railway”

Open And Sustainable Engineering Hack Chat

Join us on Wednesday, August 19 at noon Pacific for the Open and Sustainable Engineering Hack Chat with Joshua Pearce!

Since the first of our hominid ancestors learned to pick up a rock and make it into a tool, we humans have been using our engineering skills to change the world. For most of the 2 million or so years since that first technological leap, natural materials like stone and wood were the focus of our engineering projects, and except for a few tantalizing remnants, most of what was built has returned to the Earth whence it came.

Then we discovered other materials; we learned to free metals from rocks and how to harvest the fossilized hydrocarbon remains of ancient plants. Iron, aluminum, plastic, and silicon became our stock in trade, and the planet is now layered so thick with these materials and the byproducts of harvesting them that a new geological epoch, the Anthropocene Epoch, has been proposed to cover this time of human activity and its impact on the geological record.

But if we humans are clever enough to make such an impact, we should be clever enough to think our way out of the mess, and wise enough to see the need. That’s where the efforts of Dr. Pearce’s research at the Michigan Tech Open Sustainability Technology (MOST) lab are focused. Dr. Pearce envisions a sustainable future powered by pervasive solar photovoltaic systems and using open-source technologies like 3D printing to drive new models for manufacturing. We’ve recently seen interesting work from his lab, like this grinder that makes custom compression screws for plastic recycling. The MOST page on Hackaday.io is filled with other great examples of the technology that supports their mission, from low-cost environmental testing instruments to 3D-printable microfluidics.

Dr. Pearce will join us on the Hack Chat to talk about open and sustainable engineering. Be sure to stop by with your questions and to find out what you can do to engineer a brighter future, starting right in your own shop.

join-hack-chatOur Hack Chats are live community events in the Hackaday.io Hack Chat group messaging. This week we’ll be sitting down on Wednesday, August 19 at 12:00 PM Pacific time. If time zones baffle you as much as us, we have a handy time zone converter.

Click that speech bubble to the right, and you’ll be taken directly to the Hack Chat group on Hackaday.io. You don’t have to wait until Wednesday; join whenever you want and you can see what the community is talking about.

Continue reading “Open And Sustainable Engineering Hack Chat”