Elegant And Portable DIY Nightlight Becomes A Fixture For Hacker’s Kids

When [itzikdiy]’s kids asked for a night light for their room, he got the bright idea to build something that straddles the line between portable and permanent. This fixture-less fixture plugs directly into a wall socket and is turned on and off with a handsome rocker switch on the bottom.

This lovely little lamp is mostly made from scrap — the oak on the front appears to have come from an old cabinet door, and the other two ring-shaped pieces are made from pine. [itzikdiy] even took the acrylic from broken panel lamps. Everything was cut with a Dremel and a circle-cutter attachment except the oak, which required a jigsaw. We think it looks great, especially with the different grain directions — call it art deco woodworking.

When it was all said and done, [itzikdiy] found it was too heavy to hang by the plug alone, so he added an L-shaped support beneath the power supply that holds it more evenly against the wall. [itzikdiy] also made a pair of hooks that snap into a pair of slots on the sides of the outlet itself. The solution is simple, sturdy, and effective without disrupting the lines of the lamp at all. Carve out a little bit of time to watch the build video after the break.

We know that someone of your hulking intelligence has no fear of the dark. But if you think you could use a nightlight in the bathroom for those 2 AM trips, look no further.

Continue reading “Elegant And Portable DIY Nightlight Becomes A Fixture For Hacker’s Kids”

This Week In Security: Text Rendering On Windows, GNU Poke, And Bitsquatting

Project Zero just unrestricted the details on CVE-2021-24093, a potentially nasty vulnerability in Windows 10’s DirectWrite, a text rendering library. The flaw got fixed in this month’s patch Tuesday roundup. The flaw is accessible in all the major browsers on Windows 10, as they use DirectWrite for font rendering. The trick here is to use a malicious font that uses some nonsense values. Those values result in a buffer allocation that is too small for complex characters such as Æ.

Because the vulnerability is a Windows library, it’s possible that an exploit would automatically work as a sandbox escape, but I haven’t seen confirmation either way. Let us know if you have some insight there.

Via Bleeping Computer

GNU Poke

The good folks at GNU have minted the 1.0 release of poke, a new binary editing tool. The real killer feature of poke is that it can interpret binary data, decoding it back into readable data structures. If you’re familiar with the way Wireshark can decode packets and give useful, organized output, it seems that poke will provide a similar function, but not limited to network traffic.

It looks like it could become a useful tool for getting a look inside otherwise opaque binaries. What poke brings is a system where you can write pretty-printing templates on the fly, which should be very useful when mapping out an unfamiliar binary. Distros will likely pick up and start packaging poke in the coming weeks, making it even easier to get and play with. Continue reading “This Week In Security: Text Rendering On Windows, GNU Poke, And Bitsquatting”

A New Open-Source Farming Robot Takes Shape

The world of automated farming may be an unglamorous one to those not invested in its attractions, but like the robots themselves that quietly get on in the background with tending crops, those who follow that path spend many seasons refining their designs. The Acorn is a newly-open-sourced robot from Twisted Fields, a Californian research farm, and it provides a fascinating look at the progress of a farming robot design from germination onwards.

The Acorn is not a CNC gantry for small intensive gardens in the manner of designs such as the Farmbot, instead it’s an autonomous solar-powered rover intended for larger farms which will cruise the fields continuously tending to the plants in its patch. It’s a work in progress, so what we see is the completed rover with the tools and machine vision to follow. It pursues the course of a low-cost lightweight platform, an aluminium chassis surmounted by the solar panel, with mountain bike front fork derived wheels at each corner. It has four wheel drive and four wheel steering, meaning that it can traverse the roughest of farmland. We can see its progress since a 2019 prototype, and while it seems as slow as the seasons themselves to mature, we can see that the final version could be a significantly useful machine on a small farm.

It’s not the first autonomous farming robot we’ve seen over the years, as for example this slightly more robust Australian model. We’re guessing that this is the direction autonomous farming is likely to take, with the more traditional tractor-based machinery projected by some manufacturers taking on repetitive loading and hauling roles.

Continue reading “A New Open-Source Farming Robot Takes Shape”

Magnetic Angle Sensor Mods Make Encoder Better For Blasting

Most of the hacks we see around these parts have to do with taking existing components and cobbling them together in interesting new ways. It’s less often that we see existing components gutted and repurposed, but when it happens, like with this reimagined rotary encoder, it certainly grabs our attention.

You may recall [Chris G] from his recent laser-based Asteroids game. If not you should really check it out — the build was pretty sweet. One small problem with the build was in the controls, where the off-the-shelf rotary encoder he was using didn’t have nearly enough resolution for the job. Rather than choosing a commodity replacement part, [Chris] rolled his own from the mechanical parts of the original encoder, like the shaft and panel bushing, and an AS5048A sensor board. The magnetic angle sensor has 14 bits of resolution, and with a small neodymium ring magnet glued to the bottom of the original shaft, the modified encoder offers far greater resolution than the original contact-based encoder.

The sensor breakout board is just the right size for this job; all that [Chris] needed to do to get the two pieces together was to 3D-print a small adapter. We have to admit that when we first saw this on Hackaday.io, we failed to see what the hack was — the modified part looks pretty much like a run-of-the-mill encoder. The video below shows the design and build process with a little precision rock blasting.

Continue reading “Magnetic Angle Sensor Mods Make Encoder Better For Blasting”

RetroArch Open Hardware Aims For Plug-and-Play

At its core, the RetroArch project exists to make it easier to play classic games on more modern hardware. The streamlined front-end with its tailored collection of emulators helps take the confusion out of getting your favorite game from decades past running on whatever gadget you please, from your smartphone to the venerable Raspberry Pi. But there’s always room for improvement.

In a recent blog post, the folks behind RetroArch took the wraps off of an exciting hardware project that’s been in the works for about a year now. Referred to simply as “RetroArch Open Hardware”, the goal is to develop a fully open source cartridge adapter that will integrate seamlessly with the RetroArch software. Just plug in your original cartridge, and the game fires right up like back in the good old days.

Now to be clear, this isn’t exactly a new idea. But the team at RetroArch explain that previous devices that blurred the line between hardware and emulation have been expensive, hard to find, and worst of all, proprietary. By creating an open hardware project, they hope to truly unleash this capability on the community. Instead of having to deal with one vendor, multiple companies will be free to spin up their own clones and potentially even improve the core design. Should none of the ones on the market fit your particular needs, you’d even be free to build your own version,

What’s more, the gadget will also make it easier to create your own ROMs from cartridges you own. By appearing to the operating system as a USB Mass Storage device, users can literally drag and drop a game ROM to their computer’s desktop. No arcane software fired off from the command line; as much as we might enjoy such things, it’s not exactly intuitive for the gaming community at large. The same technique will also allow users to backup their saved progress before it’s inevitably lost to the ravages of time. The device demonstrated by the team currently only works on Nintendo 64 games, but presumably compatibility with be expanded to other cartridges in the future.

Over the years, we’ve seen a number of hombrew devices designed to read and copy game cartridges. We’ve even seen some rather polished examples that were released as open hardware. But those devices never had the public backing of such a well known group in the emulation scene, and we’re excited to see what kind of development and adoption can be spurred on by this level of legitimacy.

[Thanks to Nick for the tip.]

Smart Lid Spies On Sourdough Starter, Sends Data Wirelessly

[Justin Lam] created a wonderfully-detailed writeup of his Smart Sourdough Lid project, which was created out of a desire to get better data on the progress and health of his sourdough starters, and to do so more efficiently. The result is a tidy, one-piece lid that constantly measures temperature, humidity, and height of the starter in the jar. Data is sent wirelessly for analysis, but there is also a handy OLED display on the top of the lid that shows immediately useful data like how much the starter has peaked, and how much time has passed since it did so.

The PCB was optimized for size, and not designed with mounting in mind, so a hot-glued machine screw serves as a “button extender”. Issues like this can happen when enclosures are designed after the fact; it’s something to which we can all relate.

We really like how focused the design is, and the level of detail [Justin] goes into to explain his design decisions and describe how well they worked out. This isn’t [Justin]’s first kick at the can when it comes to getting data on his sourdough, after all. We remember his earlier work using computer vision to analyze sourdough starters, and he used what he learned to inform this new design; the smart lid is easier to use and handles data much more efficiently.

The project’s GitHub repository has all the information needed to build your own. The lid is ESP8266-based and integrates a VL6180X time-of-flight (ToF) distance sensor, DHT22 to sense temperature and humidity, and a small SSD1306 OLED display for data. A small custom PCB keeps the modules tidy, and a 3D-printed custom enclosure makes it one tidy package.

[Justin] also analyzes the results he obtained and talks about what they mean in the last part of his writeup, so if you’re into baking and interested in his findings, be sure to give that a look.

Homebrew Espresso Machine Has Closed-Loop Control

[Ben Katz] is in the process of building a compact, closed-loop espresso machine, and really seems to be pulling it off in the first shot. Though it may not be the final product, we’re in awe of the beautiful guts and would love to taste-test the early results.

This machine will hit a sweet spot between lever-type espresso machines that are like driving a manual without power steering, and those fully automated machines that squeeze all the fun out of playing barista but are easier on the joints.

Here’s how it works so far: a motor drives an electric gear pump that pumps the water through a heater. It’s a closed-loop system, so there’s a 3-way valve after the heater that keeps sending the water back until it’s deemed hot enough. Once that happens, the valve switches functions and begins to pump water through the group head and on to the coffee grounds.

[Ben] designed and milled a beautiful group head that’s designed to fit a La Pavoni portafilter and some other parts he already had on hand. Grab a coffee and watch it pull the first shot after the break, then stick around to see the milling and the drilling.

Ready to kick that Keurig to the curb and get an espresso machine? Don’t just throw it out or take it to a field and smash it with a baseball bat — turn that thing into an automatic drip for a small houseplant.

Continue reading “Homebrew Espresso Machine Has Closed-Loop Control”