Custom Piano Tickles The Ivories

The core ethos of “hacking” is usually interpreted as modifying something for a use that it wasn’t originally built for. Plenty of builds are modifications or improvements on existing technology, but sometimes that just isn’t enough. Sometimes we have to go all the way down and build something completely from scratch, and [Balthasar]’s recent piano-like musical instrument fits squarely into this category.

This electronic keyboard is completely designed and built from scratch, including the structure of the instrument and the keys themselves. [Balthasar] made each one by hand out of wood and then built an action mechanism for them to register presses. While they don’t detect velocity or pressure, the instrument is capable of defining the waveform and envelope for any note, is able to play multiple notes per key, and is able to change individual octaves. This is thanks to a custom 6×12 matrix connected to a STM32 microcontroller. Part of the reason [Balthasar] chose this microcontroller is that it can do some of the calculations needed to produce music in a single clock cycle, which is an impressive and under-reported feature for the platform.

With everything built and wired together, the keyboard is shockingly versatile. With the custom matrix it is easy to switch individual octaves on the piano to any range programmable, making the 61-key piano capable of sounding like a full 88-key piano. Any sound can be programmed in as well, further increasing its versatility, which is all the more impressive for being built from the ground up. While this build focuses more on the electronics of a keyboard, we have seen other builds which replicate the physical action of a traditional acoustic piano as well.

Continue reading “Custom Piano Tickles The Ivories” →

Turn On Sarcasm With The Flip Of A Switch

Sarcasm is notoriously difficult to distinguish in online communities. So much, in fact, that a famous internet rule called Poe’s Law is named after the phenomenon. To adapt, users have adopted several methods for indicating implied sarcasm such as the /s tag, but more recently a more obvious sarcasm indicator has appeared that involves random capitalization througout the sarcastic phrase. While this looks much more satisfying than other methods, it is a little cumbersome to type unless you have this sarcasm converter for your keyboard.

The device, built by [Ben S], is based around two Raspberry Pi Pico development boards and sits between a computer and any standard USB keyboard. The first Pi accepts the USB connection from the keyboard and reads all of the inputs before sending what it reads to the second Pi over UART. If the “SaRcAsM” button is pressed, the input text stream is converted to sarcasm by toggling the caps lock key after every keystroke.

For communicating in today’s online world with rapidly changing memes, a device like this is almost necessary for making sure you aren’t misunderstood on whichever popular forum you like to frequent. We don’t know how long this trend will continue, either, but until something else replaces it to more concisely communicate sarcasm we expect it to remain relevant. The build is also a reminder of the various interesting ways that microcontrollers can be programmed to act as keyboards.

Thanks to [ted yapo] for the tip!

Major Bug Grants Root For All Major Linux Distributions

One of the major reasons behind choosing Linux as an operating system is that it’s much more secure than Windows. There are plenty of reasons for this including appropriate user permissions, installing software from trusted sources and, of course, the fact that most software for Linux including the Linux kernel itself is open source which allows anyone to review the code for vulnerabilities. This doesn’t mean that Linux is perfectly secure though, as researchers recently found a major bug found in most major Linux distributions that allows anyone to run code as the root user.

The exploit is a memory corruption vulnerability in Polkit, a framework that handles the privilege level of various system processes. It specifically impacts the program pkexec. With the proof-of-concept exploit (file download warning) in hand, all an attacker needs to do to escalate themselves to root is to compile the program on the computer and run it as the default user. An example is shown by [Jim MacDonald] on Twitter for those not willing to try this on their own machines.

As bad as this sounds, it seems as though all of the major distributions that this impacts have already released updates that patch the issue, including Debian, Ubuntu, Red Hat, Fedora, open SUSE, and Arch. There is also a temporary workaround that removes read/write permission from the pkexec program so it can’t run at all. That being said, it might be best to check that your Linux systems are all up-to-date and that no strangers have been typing random commands into the terminal recently.

Laser Z-Axis Table Comes Into Focus

Laser cutters and 3D printers are game-changing tools to have in the workshop. They make rapid prototyping or repairs to existing projects a breeze as they can churn out new parts with high precision in a very short amount of time. The flip side of that, though, is that they can require quite a bit of maintenance. [Timo] has learned this lesson over his years-long saga owning a laser cutter, although he has attempted to remedy most of the problems on his own, this time by building a Z-axis table on his own rather than buying an expensive commercial offering.

The Z-axis table is especially important for lasers because a precise distance from the lens to the workpiece is needed to ensure the beams’s focal point is correctly positioned. Ensuring this distance is uniform over the entire bed can be a project all on its own. For this build, [Timo] started by building a simple table that allowed all four corners to be adjusted, but quickly moved on to a belt-driven solution that uses a stepper motor in order to adjust the entire workspace. The key to the build was learning about his specific laser’s focal distance which he found experimentally by cutting a slot in an angled piece of wood and measuring the height where the cut was the cleanest.

After everything was built, [Timo] ended up with a Z-axis table that is easily adjustable to the specific height required by his laser. Having a laser cutter on hand to bootstrap this project definitely helped, and it also seems to be an improvement on any of the commercial offerings as well. This also illustrates a specific example of how a laser cutter may be among the best tools for prototyping parts and building one-off or custom tools of any sort.

Portable Pizza Oven Has Temperature Level Over 900

While it’s possible to make pizza from scratch at home right down to the dough itself, it’ll be a struggle to replicate the taste and exquisite mouthfeel without a pizza oven. Pizzas cook best at temperatures well over the 260°C/500°F limit on most household ovens while pizza ovens can typically get much hotter than that. Most of us won’t have the resources to put a commercial grade wood-fired brick oven in our homes, but the next best thing is this portable pizza oven from [Andrew W].

The build starts with some sheet metal to form the outer and inner covers for the oven. [Andrew] has found with some testing that a curved shape seems to produce the best results, so the sheet metal goes through rollers to get its shape before being welded together. With the oven’s rough shape completed, he fabricates two different burners. One sits at the back of the oven with its own diffuser to keep the oven as hot as possible and the other sits underneath a cordierite stone to heat from the bottom. Both are fed gas from custom copper plumbing and when it fires up it reaches temperatures hot enough that it can cook a pizza in just a few minutes. With some foldable legs the oven also ends up being fairly portable, and its small size means that it can heat up faster than a conventional oven too.

This is [Andrew]’s third prototype oven, and it seems like he has the recipe perfected. In fact, we featured one of his previous versions almost two years ago and are excited to see the progress he’s made in this build. The only downside to having something like this would be the potential health implications of always being able to make delicious pizzas, but that is a risk we’d be willing to take.

Continue reading “Portable Pizza Oven Has Temperature Level Over 900” →

NTP Server Gets Time From Space

Cheap GPS units are readily available nowadays, which is great if you have something that needs to be very precisely located. Finding the position of things is one of many uses for GPS, though. There are plenty of ways to take advantage of some of the ancillary tools that the GPS uses to determine location. In this case it’s using the precise timekeeping abilities of the satellites to build a microsecond-accurate network time protocol (NTP) server.

GPS works by triangulating position between a receiver and a number of satellites, but since the satellites are constantly moving an incredibly precise timing signal is needed in order to accurately determine location from all of these variables. This build simply teases out that time information from the satellite network and ignores the location data. There are only two parts to this build, a cheap GPS receiver and a Raspberry Pi, but [Austin] goes into great detail about how to set up the software side as well including installing PPS, GPSd, and then setting up the actual NTP server on the Pi.

While this is an excellent way to self-host your own NTP server if you don’t have Internet access (or just want to do it yourself), [Austin] does note that this is probably overkill on timekeeping as far as accuracy goes. On the other hand, the Raspberry Pi has no built-in real time clock of its own, so this might actually be a cost-competitive way of timekeeping even when compared to something more traditional like a DS3231 RTC module.

Continue reading “NTP Server Gets Time From Space” →

Reverse Engineering The SEGA Mega Drive

With the widespread adoption of emulators, almost anyone can start playing video games from bygone eras. Some systems are even capable of supporting homebrew games, with several having active communities that are still creating new games even decades later. This ease of programming for non-PC platforms wasn’t always so easy, though. If you wanted to develop games on a now-antique console when it was still relatively new, you had to jump through a lot of hoops. [Tore] shows us how it would have been done with his Sega Mega Drive development kit that he built from scratch.

While [Tore] had an Atari ST, he wanted to do something a little more cutting edge and at the time there was nothing better than the Mega Drive (or the Genesis as it was known in North America). It had a number of features that lent the platform to development, namely the Motorola 68000 chip that was very common for the time and as a result had plenty of documentation available. He still needed to do quite a bit of reverse engineering of the system to get a proper dev board running, though, starting with figuring out how the cartridge system worked. He was able to build a memory bank that functioned as a re-writable game cartridge.

With the hard parts out of the way [Tore] set about building the glue logic, the startup firmware which interfaced with his Atari ST, and then of course wiring it all together. He was eventually able to get far enough along to send programs to the Mega Drive that would allow him to control sprites on a screen with the controller, but unfortunately he was interrupted before he could develop any complete games. The amount of research and work to get this far is incredible, though, and there may be some helpful nuggets for anyone in the homebrew Mega Drive community today. If you don’t want to get this deep into the Mega Drive hardware, though, you can build a cartridge that allows for development on native Sega hardware instead.