MIDI Controller In A Cubic Inch

MIDI as a standard has opened up a huge world to any musician willing to use a computer to generate or enhance their playing and recording. Since the 80s, it has it has revolutionized the way music is produced and performed, allowing for seamless integration of digital instruments, automation of complex sequences, and unprecedented control over everything from production to editing. It has also resulted in a number of musical instruments that probably wouldn’t be possible without electronic help, like this MIDI instrument which might be the world’s smallest.

Fitting into a cubic inch of space, the tiny instrument’s volume is mostly taken up by the MIDI connector itself which was perhaps an acceptable size by 1980s standards but seems rather bulky today. A two-layer PCB split into three sections sandwiches the connector in place and boasts an ATtiny85 microcontroller and all the associated electronics needed to implement MIDI. Small threaded screws hold the platform together and provide each layer with a common ground. Four small pushbuttons at the top of the device act as the instrument’s keys.

The project’s creator (and Hackaday alum!) [Jeremy Cook] has it set up to play notes from a piano right now, but has also made the source code available so that any musical action can be programmed onto these buttons. Flexibility is perhaps MIDI’s greatest strength and why the standard has lasted for decades now, as it makes it fairly straightforward to build more comprehensive, easy-to-learn musical instruments or even musical instruments out of retro video game systems.

Continue reading “MIDI Controller In A Cubic Inch”

Automatic Garbage Can Keeps Cooking Cleaner

Over the last decade or so, we’ve been inundated with appliances with wireless or “smart” technology that is often of dubious utility. No one really needs a tablet in their refrigerator or Wi-Fi on their coffee maker. A less glamorous kitchen appliance that actually might benefit from some automation and connectivity is the garbage can, or “bin” for those speaking the Queen’s English, and [Mellow_Labs] is here to show off just how to get that done with this automatic garbage can lid.

As he explains, the real impetus behind this build is to not have to touch a dirty lid while cooking to avoid having to take time to wash one’s hands again afterwards. There are a few other design criteria as well; it has to be roommate-approved so nothing permanently attached to the lid, overly complicated, or with an unnecessary amount of wires or other fixtures. A servo with an extension sits on the lid itself, and when activated forces the lid open. A distance sensor provides basic gesture recognition and a microcontroller with wireless connectivity controls both and provides home automation integration as well. With a 3D printed case that includes a quick disconnect function for easy cleaning of the lid, the build was ready to be put into service.

The first iteration used an infrared distance sensor, but placing it by an open window caused it to continuously open and close since sunlight has the same wavelengths of light the sensor is tuned for. A quick swap with an ultrasonic sensor solved the problem, and the garbage can is working flawlessly in the kitchen now. Another appliance that is generally not targeted by off-the-shelf automation solutions is the range fume hood, but another build tackled that problem a while back.

Continue reading “Automatic Garbage Can Keeps Cooking Cleaner”

CW Not Hard Enough? Try This Tiny Paddle

For a long time, a Morse code proficiency was required to obtain an amateur radio license in many jurisdictions around the world, which was a much higher bar of entry than most new hams have to pass. Morse, or continuous wave (CW) is a difficult skill to master, and since the requirement has been dropped from most licensing requirements few radio operators pick up this skill anymore. But if you like a challenge, and Morse itself isn’t hard enough for you, you might want to try out this extremely small Morse paddle.

Originally meant for portable operation, where hiking to something like a mountain top with radio gear demands small, lightweight, and low-power options, this paddle is actually not too complex. It attaches to most radios with a 3.5 mm stereo cable and only has two paddles on flexible metal arms which, when pressed against the center of the device, tell the radio to either produce continuous “dits” or “dahs”. For portable use the key sits inside a tiny plastic case and only needs to be pulled out and flipped around to get started. And, while not waterproof, [N6ARA] reports that it’s so small you likely could just shield it from the rain with your other hand if you needed to.

Presumably, this paddle actually wouldn’t be that much different than using any other paddle except for the fact that it’s not heavy enough to resist the force of use, so you’d have to hold it with your other hand anyway. And, while this is a product available for purchase it’s simple enough that, presumably, the design could easily be duplicated with just a few parts. Paddles like this were made as an improvement to older technology like straight keys which require the operator to produce the correct lengths of tones for each character manually. While you can get higher speeds with a paddle, there are still some dedicated CW operators using a straight key.

Continue reading “CW Not Hard Enough? Try This Tiny Paddle”

Single-Stepping The 6502 Processor

Although marketing folk and laypeople may credit [Steve Jobs] as the man behind the success of Apple, those in the tech world know the real truth that without [Steve Wozniak] nothing would have ever gotten off the ground during the early days of the computer company. As an exhibit of his deep knowledge of the machines he was building, take a look at this recreation of a circuit by [Anders] which allows the 6502 processor to step through instructions one at a time, originally designed by [Woz] himself, even though there are still myths floating around the Internet that this type of circuit can’t work.

Like a lot of Internet myths, though, there’s a kernel of truth at the middle. The original 6502 from the mid-70s had dynamic registers, meaning they would lose their values if the chip was run below a critical clock speed. Since single-stepping the processor is much lower than this speed, it seems logical that this might corrupt the data in the registers. But if the clock is maintained to the registers the processor can be halted after each instruction, allowing even the original 6502 to go through its instructions one at a time.

[Anders]’s project sets up this circuit originally laid out by [Steve Wozniak] but updates it a bit for the modern times. Since the technology of the era would have been TTL, modern CMOS logic requires pull-up resistors to keep any inputs from floating. The key design of the original circuit is a set of flip-flops which latch the information on the data bus, and a switch that can be pressed to let the processor grab its next instruction, as well as a set of LEDs that allow the user to see the value on the data bus directly.

Of course, a computer processor of this era would be at a major handicap without a way to debug code that it was running, so there are even dedicated pins that allow this functionality to occur. Perhaps the Internet myth is a bit overblown for that reason alone, but [Anders] is no stranger to the 6502 and has developed many other projects that demonstrate his mastery of the platform.

Continue reading “Single-Stepping The 6502 Processor”

This Modded Shopping Cart Probably Isn’t Street Legal

If you don’t count the high center of gravity, the weight limit, the weak chassis, or the small size, a standard shopping cart is an almost ideal platform for building a fun drifting kart. At least, that was [Garage Avenger]’s thought process when he started this build to turn a shopping cart into the ultimate drift vehicle.

The first thing on the list was to solve the issues with the high center of gravity and the fact that he couldn’t fit in the cart easily. Chopping out the back of the basket as well as everything beneath it solved both of these problems. From there a custom chassis could be fabricated from square steel tubing which includes a lever system which controls the rake of the caster wheels and thus their driftability. The power train and battery system for this build comes from a 2400 W electric scooter with a few modifications made to get it to fit on the new chassis.

After a test drive of the original prototype, a few modifications were made including using smaller caster wheels in the back, the addition of a spring to make the lever action for the rear wheels easier to engage, some front casters for stability, and a seat a little more substantial than the metal mesh of the cart. With all the electronics put into the cart, he’s ready to drift off into the sunset. This isn’t his first crazy vehicle, either. When winter rolls around you’ll find him getting around in a jet-powered sled instead.

Continue reading “This Modded Shopping Cart Probably Isn’t Street Legal”

Free And Open E-Reader From The Ground Up

Although ebooks and e-readers have a number of benefits over reading an analog paper book as well as on more common electronic devices like tablets, most of them are locked behind proprietary systems like Kindle which make it difficult to take control over your electronic library. While there are a few off-brand e-readers that allow users to take a bit of control back and manually manage their files and libraries, there are few options for open-source solutions. This project aims to provide not only a free and open e-reader from the hardware to the software, but also a server to host a library as well.

The goal of most of the build is to keep everything as FLOSS as possible including the hardware, which is based on a Raspberry Pi compute module. The display comes from Good Display, which includes a built-in light and a touchscreen. There’s a lithium battery to power the tablet-like device with a number of support chips to charge it, handle the display, and interface with the Pi. On the software side, the system uses MuPDF which has support for most ebook file types while the server side is based on Calibre and the Open Publication Distribution System.

A subsection of the build log discusses a lot of how the code works for those looking to build their own similar system based on this project. The project code is even hosted on GitLab, a more FLOSS-y version of GitHub. Free and open ebook readers have been a goal of a number of builders for some time now, as we’ve seen projects going back at least a few years now and others that hope to make the Kindle hardware a little more open instead.

Turning Horrible Browser Controls Into A Game

With all of the various keyboards, mouses (mice?), and other human interface devices (HID) available for our computers, there’s no possible way for developers to anticipate every type of input for every piece of software they build. Most of the time everything will work fine as long as some basic standards are kept, both from the hardware and software sides, but that’s not always the case. [Losso] noticed a truly terrible volume control method when visiting certain websites while also using a USB volume knob, and used this quirk to build a Breakout game with it.

It turns out his volume control knob would interact simultaneously with certain video players’ built-in volume control and the system volume for the operating system, leading to a number of undesirable conditions. However, the fact that this control is built in to certain browsers in the first place led to this being the foundation for the Breakout clone [Losso] is calling KNOB-OUT. Unlike volume buttons on something like a multimedia keyboard, the USB volume control knob can be configured much more easily to account for acceleration, making it more faithful to the original arcade version of the game. The game itself is coded in JavaScript with the source code available right in the browser.

If you’d like to play [Losso]’s game here’s a direct link to it although sometimes small web-based projects like these tend to experience some slowdown when they first get posted here. And, if you’re looking for some other games to play in a browser like it’s the mid-00s again, we’re fans of this project which brings the unofficial Zelda game Zelda Classic to our screens.