A vape pen, broken into parts, all laid out on a cutting mat

2022 Hackaday Prize: Disposable Vape Pens Turned Project Parts

Disposable vape pens, a sub-genre of electronic cigarettes, have been a fad for a few years now – they’re small self-contained devices with a rechargeable battery and some vape liquid inside. As the battery discharges and the liquid runs out, the entire vape pen is typically thrown out. [Dimitar] wants to change that, however, and teaches us how to reuse as much of the vape pen as possible — as yet another underappreciated source for parts we can use in our projects.

In an extensive worklog, he breaks down and documents a vape pen’s inner workings, coupled with a video we’ve placed below the break showing ways to disassemble them. In these, he shows how we can reuse the casing and the plastic parts, should any of us be interested in a project that happens to fit the e-cig form factor. Attention is paid to the sensor that triggers the evaporation — it may look like a microphone, but is actually a purpose-built pressure-sensor with a high-side switch! He tears into one of these in a separate video, showing how to reuse it as a capacitive touch controller. He also aiming to assemble a small database of related resources on GitHub, currently, hosting the files for the protection circuit he developed as part of his recommendations for safely reusing vape pen Li-ion batteries.

[Dimitar]’s journey is ongoing, and we can’t wait to see some fun uses for these components that he will certainly stumble upon on his way! For instance, here’s a hacker using an e-cig battery to power a pair of RGB LED-adorned sunglasses, replacing the AAAA battery they originally came with. We’ve seen hackers make guides on reusing each and every part of microwave ovens, printers and laptops, and we ourselves have talked about reusing ATX power supplies and computer mice.

Continue reading “2022 Hackaday Prize: Disposable Vape Pens Turned Project Parts”

A Minimal Motoring Manifesto

A couple of years ago, Hackaday published an article, “Electric Vehicles Continue the Same Wasteful Mistakes That Limit Longevity“, in which we took a look at the way the car industry, instead of taking the move to electric traction as an opportunity to simplify their products, was instead making their electric offerings far more complex. It touched a nerve and received a very large comment volume, such that now it is our 19th most commented story of all time.

It’s something brought back to the fore by seeing a The Drive piece bemoaning the evolution of the automobile as a software receptacle governed by end-user licenses rather than a machine under the control of its owner. In turn that’s posed the question: Just what do you really need for a car, and what is superfluous? Time to provide an answer to that question, so here it is: a minimal motoring manifesto. Continue reading “A Minimal Motoring Manifesto”

2022 Hackaday Prize Enters Second Round: Reuse, Recycle, Revamp

Ding! That’s the bell for the second challenge round of the 2022 Hackaday Prize. If your project reuses or recycles what would otherwise be waste materials, or helps you to do the same for further projects, we want to see it.

Hackers are often frugal folk — we’ll recycle parts for projects because it’s easier on the pocketbook when prototyping. But in these strangest of times, when we’ve seen $1 microcontrollers in such shortage that they fetch $57 apiece (if you can get the parts at all), making use of what you’ve got on hand can be an outright necessity. If this is going to become the new normal, it’s going to make sense that we automate it. There’s gold, literally and metaphorically, in busted PCBs. How are you going to get the most value out of our broken electronic waste in our post-apocalyptic near future? Have you built an unpick-and-unplace machine? We’d like to see it.

But electronic parts are a small fraction of your recyclable materials, and plastics might play a larger role. If you’re a 3D printerer, you’ve doubtless thought about recycling plastic bottles into filament. Or maybe you’d like to take some of the existing plastics that are thrust upon you by this modern world and give them a second life? This factory churning out paving stones by remelting plastic with sand is doing it on an industrial scale, but could this be useful for the home gamer? Precious Plastic has a number of inspirational ideas. Or maybe you just need an HDPE hammer?

Have you built a fancy can crusher, or a plastics sorter, or a recycling robot? Head on over to Hackaday.io, write it up, and enter it into the Prize!

Basically any project that helps you recycle or reuse the material around you is fair game here. (But note that if you’ve got epic repair hacks, you’ll want to enter them in the upcoming Round Three: Hack it Back.) This round runs until June 12th and there are ten $500 awards up for grabs, so get hacking!

About As Cold As It Gets: The Webb Telescope’s Cryocooler

If you were asked to name the coldest spot in the solar system, chances are pretty good you’d think it would be somewhere as far as possible from the ultimate source of all the system’s energy — the Sun. It stands to reason that the further away you get from something hot, the more the heat spreads out. And so Pluto, planet or not, might be a good guess for the record low temperature.

But, for as cold as Pluto gets — down to 40 Kelvin — there’s a place that much, much colder than that, and paradoxically, much closer to home. In fact, it’s only about a million miles away, and right now, sitting at a mere 6 Kelvin, the chunk of silicon at the focal plane of one of the main instruments aboard the James Webb Space telescope makes the surface of Pluto look downright balmy.

The depth of cold on Webb is all the more amazing given that mere meters away, the temperature is a sizzling 324 K (123 F, 51 C). The hows and whys of Webb’s cooling systems are chock full of interesting engineering tidbits and worth an in-depth look as the world’s newest space telescope gears up for observations.

Continue reading “About As Cold As It Gets: The Webb Telescope’s Cryocooler”

Photo of the spectrophotometer in question, with a screenshot of the decoding software on the right

Exporting Data From Old Gear Through LCD Sniffing

[Jure Spiler] was at a flea market and got himself a spectrophotometer — a device that measures absorbance and transmittance of light at different wavelengths. This particular model seems to be about 25 years old, and it’s controlled by a built-in keyboard and uses a graphical LCD to display collected data. That might have been acceptable when it was made, but it wasn’t enough for [Jure]. Since he wanted to plot the spectrophotometry data and be able to save it into a CSV file, hacking ensued.

He decided to tap into the the display communication lines. This 128×64 graphical display, PC-1206B, uses a 8-bit interface, so with a 16-channel logic analyzer, he could see the data being sent to the display. He even wrote decoder software – taking CSV files from the logic analyzer and using primitive optical recognition on the decoded pixels to determine the digits being shown, and drawing a nice wavelength to absorbance graph. From there, he set out to make a standalone device sniffing the data bus and creating a stream of data he could send to a computer for storage and processing.

[Jure] stumbled into a roadblock, however, when he tried to use an Arduino for this task. Even using a sped-up GPIO library (as opposed to notoriously inefficient digitalRead), he couldn’t get a readout frequency higher than 80 KHz – with the required IO readout rate deemed as 1 MHz, something else would be called for. We do wonder if something like RP2040 with its PIO machinery would be better for making such captures.

At that point, however, he found out that there’s undocumented serial output on one of the pins of the spectrophotometer’s expansion port, and is currently investigating that, having shelved the LCD sniffing direction. Nevertheless, this serves as yet another example for us, for those times when an LCD connection is all that we can make use of.

We’ve seen hackers sniff LCD interfaces to get data from reflow ovens, take screenshots from Game Boys and even equip them with HDMI and VGA ports afterwards. With a skill like this, you can even give a new life to a vintage calculator with a decayed display! Got an LCD-equipped device but unsure about which specific controller it uses? We’ve talked about that!

Continue reading “Exporting Data From Old Gear Through LCD Sniffing”

TWANG32 Brings LED Strip Gaming To The ESP32

Under the Hackaday TV is a modern game console, it’s a well-known model that many of you also probably have, and its main feature is a 3D accelerator which allows it to create the beautifully rendered worlds we’ve all come to know and love. [Mircemk] eschews such fripperies with the Twang project, because it’s a game that’s not 3D, nor 2D, but 1D. The display, indeed the entire gaming surface, is a single strip of addressable LEDs which can be seen int he video below the break.

Behind it all is an ESP32, and a unique one-dimensional joystick using an accelerometer. There’s an audio channel with a little piezoelectric speaker too, and the LED strip is a particularly high-density one from DFRobot. Because this is an ESP32-driven device it has WiFi, upon which is exposed an access point for a network over which is served the game stats as a web page. It may not displace that modern console, but it’s certainly inventive.

Long-time Hackaday readers will be aware that this is only the latest of a long line of one-dimensional games, including a 1D take on the famous PONG.

Continue reading TWANG32 Brings LED Strip Gaming To The ESP32″

Bringing Zelda Classic To The Browser

Finding a device or app that isn’t a web browser doesn’t seem easy. These days, it is either connected to the web (looking at you ESP32) or is just a web browser pretending to be something else (a la electron, PWAs, or React Native). So, of course, it is on us to create more and more exciting things to browse. [Connor Clark] is one of those people, and he brought Zelda Classic to the browser.

Zelda Classic (ZC) isn’t an official Zelda game. Instead, it’s an old engine designed to run the world in the OG Legend of Zelda and be easily modified to support hundreds of different games. To date, there are over 600 games submitted by a large community. ZC is an Allegro-based Windows-only game, so the first step was to bust out Emscripten to start tweaking the C++ code to support a web environment. Rather than completely port the huge codebase over from Allegro, [Connor] made the jump from Allegro 4 to 5. Allegro 5 has SDL as a backend and adds support for Emscripten.

Unfortunately, the 4 to 5 wasn’t as simple as changing the dependency. The API was wholly re-written, and there is a handy adapter known as Allegro Legacy to help transition a project from one to another. After squashing a multitude of bugs, it was a relatively painless procedure. After a quick detour getting music and level data working, [Connor] faced his next challenge: multi-threading. Efforts to move the main loop off of the browser thread and into a web worker ran into issues with having to yield in loops, deadlocks, and recursive mutexes. Finally, he added music and gamepad support after fixing several bugs in SDL and Allegro.

It’s an incredible journey with many tips and tricks for debugging seemingly intractable bugs. The code is up on GitHub, or jump in and start playing if you’re interested. Why not check out this browser-based OpenSCAD as well?