Build A Better Mousetrap… But It Better Be Better!

As creative problem solvers, we like to “think outside the box,” and we should strive for that. But what happens if your strange idea isn’t kept in check by cooler heads? There is a real danger — especially if you work alone — to falling so in love with your idea, that you lose sight of what it really means to be better.

Case in point. The self-parking car. Well, not the modern variant, which seems to work pretty well. But did you know that the self-parking car was invented in the 1930s and used an extra fifth wheel? Hard to imagine? See the video below. History tells us that the idea didn’t catch on.

Continue reading “Build A Better Mousetrap… But It Better Be Better!”

A EuroRack synthesizer module with an oscilloscope in the background showing a waveform

Recreating The Sounds Of The ’90s With A YM3812 Synthesizer

One reason the x86 PC became the dominant game platform in the early 1990s was the availability of affordable sound cards like the AdLib and Sound Blaster. These provided a quantum leap in sound quality compared to the PC speaker’s tinny beeps, thanks to Yamaha’s YM3812 chip, also known as OPL2. [Tyler] has made a detailed study of the various OPL series chips and wrote a comprehensive guide describing their operation.

[Tyler] begins by explaining the theory of FM synthesis. The basic idea is that you generate sine waves of different frequencies, combine them through mixing and modulation, and then adjust their strength over time. This way, a few simple operations on the chip’s nine sound channels can generate an astonishing variety of sounds from clear notes to chaotic noise. He then delves into the details of the YM3812 chip, including its 279 different register settings that enable all these operations.

The final goal of [Tyler]’s research is the design of a YM3812 EuroRack module that fits inside standard modular synthesizers. He’ll go into detail on the board’s design and construction in future blog posts, but he already shows the finished product and demonstrates its features in the video embedded below. It’s a great introduction if you’re new to FM synthesis and want to recreate those magic DOS game sounds.

Of course, you can also just connect the OPL2 chip to your DOS computer, whether through a classic sound card or through a parallel port. The related YM2612 from the Sega Genesis also makes a fine synthesizer.

Continue reading “Recreating The Sounds Of The ’90s With A YM3812 Synthesizer”

Hackaday Links Column Banner

Hackaday Links: December 4, 2022

Well, this is embarrassing! Imagine sending a multibillion-dollar rover to an ancient lakebed on Mars only to discover after a year of poking around at the rocks that it might not actually have been a lake after all. That seems to be the impression of Jezero Crater that planetary scientists are forming after looking at the data coming back from Perseverance since it nailed the landing in what sure as heck looked like a dried-up lake, complete with a river delta system. A closer look at the sediments Perseverance has been sampling reveals a lot of the mineral olivine, which on Earth is rare near the surface because it readily reacts with water. Finding lots of olivine close below the surface of Jezero suggests that it either wasn’t all that watery once upon a time, or that what water was there was basically ice cold. The results are limited to where the rover has visited, of course, and the nice thing about having wheels is that you can go somewhere else. But if you were hoping for clear signs that Jezero was once a lake teeming with life, you might have to keep waiting.

In other space news, we have to admit to taking NASA to task a bit in the podcast a couple of weeks back for not being quite up to SpaceX’s zazzle standards with regard to instrumenting the SLS launch. Yeah, a night launch is spectacular, but not having all those internal cameras like the Falcon has just sort of left us flat. But we should have been more patient, because the images coming back from Artemis 1 are simply spectacular. We had no idea that NASA attached cameras to the solar panels of the Orion spacecraft, which act a little like selfie sticks and allow the spacecraft to be in the foreground with Earth and the Moon in the background. Seeing Earth from lunar distance again for the first time in 50 years has been a real treat, and getting our satellite in the frame at the same time is a huge bonus.

Continue reading “Hackaday Links: December 4, 2022”

Telnet Gets Stubborn Sony Camera Under Control

According to [Venn Stone], technical producer over at LinuxGameCast, the Sony a5000 is still a solid option for those looking to shoot 1080p video despite being released back in 2014. But while the camera is lightweight and affordable, it does have some annoying quirks — namely an overlay on the HDMI output (as seen in the image above) that can’t be turned off using the camera’s normal configuration menu. But as it so happens, using some open source tools and the venerable telnet, you can actually log into the camera’s operating system and fiddle with its settings directly.

As explained in the write-up, the first step is to install Sony-PMCA-RE, a cross-platform suite of tools developed for reverse engineering and modifying Sony cameras. With the camera connected via USB, this will allow you to install a program on the camera called Open Memories Tweak. This unlocks some developer options on the camera, such as spawning a telnet server on its WiFi interface.

With the a5000 connected to your wireless network, you point your telnet client to its IP address and will be greeted by a BusyBox interface that should be familiar to anyone who’s played with embedded Linux gadgets. The final step is to invoke the proper command, bk.elf w 0x01070a47 00, which sets the specific address of the camera’s configuration file to zero. This permanently disables the HDMI overlay, though it can be reversed by running the command again and setting the byte back to 01.

As you might expect, the Sony-PMCA-RE package is capable of quite a bit more than just unlocking a telnet server. While it might not be as powerful as a firmware modification such as Magic Lantern for Canon’s hardware, those looking for a hackable camera that won’t break the bank might want to check out the project’s documentation to see what else is possible.

Continue reading “Telnet Gets Stubborn Sony Camera Under Control”

Unlocking A Locked-Down Inverter

There was a time when a mains inverter was a heavy, expensive, and not particularly powerful item, but thanks to switch-mode technology we are now spoiled for choice. Most inverters still work with 12 V or 24 V supplies though, so when [Chris Jones] was looking for one to run from 36 V batteries, he found a limited supply. Sadly the Greenworks model he ended up with was affordable, but locked to a particular battery by means of a serial line between battery and inverter. Buy the special battery? No, he did what any hacker would do, and modified the inverter to do without it.

Tracing the serial link led to a mystery chip, probably a microcontroller but without available data. It in turn had a line to an 8051 derivative that seemed to be the brains of the operation. Acting on a hunch he pulled down the line with a resistor, and as if by magic, a working inverter appeared.

As you might expect, here at Hackaday we abhor such tricks by manufacturers, and thus any moves to circumvent them are to be applauded. It would be extremely interesting were anyone to have the Greenworks battery to subject to some reverse engineering of the profile.

Meanwhile if this is a little complex for you, there is a much simpler way to make a rough and ready inverter.

A Hacker Walks Into A Trade Show: Electronica 2022

Last week, the world’s largest electronics trade fair took place in Munich, so I had to attend. Electronica is so big that it happens only once every two years and fills up 14 airplane hangars. As the fairly generic name suggests, it covers anything and everything having to do with electronics. From the producers of your favorite MLCC capacitors to the firms that deliver them to your doorstep, from suppliers of ASIC test equipment to the little shop that’ll custom wind toroids for you, that’s a pretty wide scope. Walking around, I saw tomorrow’s technology today from the big players, but I also picked up some ideas that would be useful for the home gamer.

When I first walked in, for instance, I ran into the Elantas booth. They’re a company that makes flexible insulation and specialty industrial coatings. But what caught my eye was a thermoformed plastic sheet with circuit traces on it. To manufacture them, they cut out copper foil, glue it to a flat plastic sheet with a glue that has a little give, and then put it all together into a vacuum former. The result is a 3D circuit and organically formed substrate in one shot. Very cool, and none of the tech for doing that is outside of the reach of the determined hacker.

The Cool Stuff

All of the stands, big or small, try to lure you in with some gimmick. The big fish, firms with deep pockets, put up huge signs and open bars, and are staffed by no shortage of salespeople in suits. The little fish, on the other hand, have to resort to showing you the cool stuff that they do, and it’s more often the application engineers sitting there, ready to talk tech. You can guess which I found more interesting.

For instance when I walked up to an obviously DIY popcorn popper that was also showing 5000 FPS footage of kernels in mid-pop, I had to ask. The company in question was a small UK outfit that made custom programmable power supplies and digital acquisition gear that interfaced with it. You could plug in their box to some temperature probes, fire off the high-speed video camera, and control the heating and cooling profile without writing any code. Very sweet. Continue reading “A Hacker Walks Into A Trade Show: Electronica 2022”

Better Air Quality Sensing With CO2

Measuring air quality, as anyone who has tried to tackle this problem can attest, is not as straightforward as it might seem. Even once the nebulous term “quality” is defined, most sensors use something as a proxy for overall air health. One common method is to use volatile organic compounds (VOCs) as this proxy but as [Larry Bank] found out, using these inside a home with a functional kitchen leads to a lot of inaccurate readings. In the search for a more reliable sensor, he built this project which uses CO2 to help gauge air quality.

Most of the reason that CO2 sensors aren’t used as air quality sensors is cost. They are much more expensive than VOC sensors, but [Larry] recently found one that was more affordable and decided to build this project around it. The prototype used an Arduino communicating over I2C to the sensor and an OLED screen, which he eventually put in a 3D printed case to carry around to sample CO2 concentration in various real-world locations. The final project uses a clever way of interfacing with the e-paper display that we featured earlier.

While CO2 concentration doesn’t tell the full story of air quality in a specific place, it does play a major role. [Larry] found concentrations as high as 3000 ppm in his home, which can cause a drop in cognitive function. He’s made some lifestyle changes as a result which he reports has had a beneficial impact. For human-occupied indoor spaces, CO2 can easily be the main contributor to poor air quality, and we’ve seen at least one other project to address this concern directly.