Pi Pico Throws Us For A (MIDI) Loop

Modern micro-controllers are absolute marvels, but it isn’t too many projects use one and nothing else. For an example of such simplicity, take a look at [oyama]’s Pi Pico MIDI looper.

It uses the PicoW to interface with a synth via MIDI-BLE, which can be anything from pro equipment to an app on your smartphone. The single control button is already provided by the Pico W– the bootsel button is wearing a lot of hats here, allowing one to select betwixt 4 tracks (all different drums), set the tempo, and input notes on the selected track.

The action is simple: pound out the rhythm for each track, and it will repeat forever, or at least until you press the single button again to change it. There’s also a nice serial interface so you can see what’s going on via UART or USB. For what it does, it is amazingly simple: the BOM is one item, the Pi Pico W. To see it in action, check out the demo video below.

Given the ADC chops on the Pico, it would probably be easy to extend this build with a speaker to make a tiny stand-alone, one-button synth. Or you could add more buttons buttons, but then it’s no longer the beautifully simple single-line BOM project that [oyama] showed us.

Of course, everything is open-source on GitHub, under the BSD license, and forking is encouraged, so [oyama] would doubtless be more than happy to see you go nuts hacking and extending this tiny MIDI looper.

We’ve actually seen the MIDI-BLE standard used before, like this hack adding it to a Eurorack. If you like synths, you may be interested to see what it takes to design one from scratch, sans microcontroller. Continue reading “Pi Pico Throws Us For A (MIDI) Loop”

Deriving The Reactance Formulas

If you’ve dealt with reactance, you surely know the two equations for computing inductive and capacitive reactance. But unless you’ve really dug into it, you may only know the formula the way a school kid knows how to find the area of a circle. You have to have a bit of higher math to figure out why the equation is what it is. [Old Hack EE] wanted to figure out why the formulas are what they are, so he dug in and shared what he learned in a video you can see below.

The key to understanding this is simple. The reactance describes the voltage over the current through the element, just like resistance. The difference is that a resistance is just a single number. A reactance is a curve that gives you a different value at different frequencies. That’s because current and voltage are out of phase through a reactance, so it isn’t as easy as just dividing.

If you know calculus, the video will make a lot of sense. If you don’t know calculus, you might have a few moments of panic, but you can make it. If you think of frequency in Hertz as cycles per second, all the 2π you find in these equations convert Hz to “radian frequency” since one cycle per second is really 360 degrees of the sine wave in one second. There are 2π radians in a circle, so it makes sense.

We love developing intuition about things that seem fundamental but have a lot of depth to them that we usually ignore. If you need a refresher or a jump start on calculus, it isn’t as hard as you probably think. Engineers usually use vectors or imaginary numbers to deal with reactance, and we’ve talked about that too, if you want to learn more.

EclairM0

EclairM0, The Pocket Notepad

Roughly the size of a Tic Tac container, this project packs a punch in a compact package. [Matt] sent in this beautifully documented pocket device that brings back great memories of texting on early cellphones.

The EclairM0’s firmware is written in TinyGo, a language he hadn’t used before but found perfect for a microcontroller project where storage space is tight. The 14-button input mimics early phone keypads, using multi-tapping and combo key presses to offer various functions. The small SSD1306 OLED display is another highlight. Building on an earlier CircuitPython project, [Matt] optimized the screen’s performance, speeding up its response time for a snappy user experience. The battery picked was only 3 mm thick, however the protection circuity on the battery added another 2 mm so he moved that protection circuity to the main PCB itself to keep it as thin as initially planned.

Weighing just 15 grams, this lightweight device runs on a SAMD21 microcontroller, which supports USB host functionality. This allows the EclairM0 to act as a keyboard, mouse, or even USB peripherals. Housed in a 3D-printed case, the entire project is open-source, with design and firmware files available on GitHub.

We love small handheld projects around here and this well-documented, fun pocket device is no exception, if you want your own he has a page dedicated to helping you build a EclairM0.

Continue reading “EclairM0, The Pocket Notepad”

Tinycorder Isn’t Quite A Tricorder, But…

The Star Trek tricorder was a good example of a McGuffin. It did anything needed to support the plot or, in some cases, couldn’t do things also in support of the plot. We know [SirGalaxy] was thinking about the tricorder when he named the Tinycorder, but the little device has a number of well-defined features. You can see a brief video of it working below the break.

The portable device has a tiny ESP32 and a battery. The 400×240 display is handy, but has low power consumption. In addition to the sensors built into the ESP32, the Tinycorder has an AS7341 light sensor, an air quality sensor, and a weather sensor. An odd combination, but like its namesake, it can do lots of unrelated things.

Continue reading “Tinycorder Isn’t Quite A Tricorder, But…”

A graph is shown of the percentage reflection of visible light as a function of wavelength. Four lines are traced on the graph, which all approximate the same shape. In the top left, two purple shapes are shown, which the spectral chart describes.

Paint Mixing Theory For Custom Filament Colors

Recycling 3D filament is a great idea in theory, and we come across homemade filament extruders with some regularity, but they do have some major downsides when it comes to colored filaments. If you try to recycle printer waste of too many different colors, you’ll probably be left with a nondescript gray or brown filament. Researchers at Western University, however, have taken advantage of this pigment mixing to create colors not found in any commercial filament (open access paper).

They started by preparing samples of 3D printed waste in eight different colors and characterizing their spectral reflectance properties with a visible-light spectrometer. They fed this information into their SpecOptiBlend program (open source, available here), which optimizes the match between a blend of filaments and a target color. The program relies on the Kubelka-Munk theory for subtractive color mixing, which is usually used to calculate the effect of mixing paints, and minimizes the difference which the human eye perceives between two colors. Once the software calculated the optimal blend, the researchers mixed the correct blend of waste plastics and extruded it as a filament which generally had a remarkably close resemblance to the target color.

In its current form, this process probably won’t be coming to consumer 3D printers anytime soon. To mix differently-colored filaments correctly, the software needs accurate measurements of their optical properties first, which requires a spectrometer. To get around this, the researchers recommend that filament manufacturers freely publish the properties of their filaments, allowing consumers to mix their filaments into any color they desire.

This reminds us of another technique that treats filaments like paint to achieve remarkable color effects. We’ve also seen a number of filament extruders before, if you’d like to try replicating this.

Supercon 2024: Sketching With Machines

When it comes to our machines, we generally have very prescribed and ordered ways of working with them. We know how to tune our CNC mill for the minimum chatter when its chewing through aluminium. We know how to get our FDM printer to lay perfect, neat layers to minimize the defects in our 3D prints.

That’s not what Blair Subbaraman came down to talk about at the 2024 Hackaday Supercon, though. Instead, Blair’s talk covered the magic that happens when you work outside the built-in assumptions and get creative. It’s all about sketching with machines.

Continue reading “Supercon 2024: Sketching With Machines”

X-Rays From An Overdriven Magnetron

If you say that you’re “nuking” something, pretty much everyone will know that you mean you’re heating something in the microwave. It’s technically incorrect, of course, as the magnetron inside the oven emits only non-ionizing radiation, and is completely incapable of generating ionizing radiation such as X-rays. Right?

Perhaps not, as these experiments with an overdriven magnetron suggest. First off, this is really something you shouldn’t try; aside from the obvious hazards that attend any attempt to generate ionizing radiation, there are risks aplenty here. First of all, modifying magnetrons as [SciTubeHD] did here is risky thanks to the toxic beryllium they contain, and the power supply he used, which features a DIY flyback transformer we recently featured, generates potentially dangerous voltages. You’ve been warned.

For the experiment, [SciTubeHD] stripped the magnets off a magnetron and connected his 40-kV AC power supply between the filament and the metal case of the tube. We’re not completely clear to us how this creates X-rays, but it appears to do so given the distinctive glow given off by an intensifying screen harvested from an old medical X-ray film cassette. The light is faint, but there’s enough to see the shadows of metallic objects like keys and PCBs positioned between the tube and the intensifying screen.

Are there any practical applications for this? Probably not, especially considering the potential risks. But it’s still pretty cool, and we’re suitably impressed that magnetrons can be repurposed like this.

Continue reading “X-Rays From An Overdriven Magnetron”