Processing Audio With The RP2040

The Raspberry Pi, although first intended as an inexpensive single-board computer for use in education, is now ubiquitous in electronics communities. Its low price as well as Linux platform and accessible GPIO make it useful in many places outside the classroom. But, if you want to abandon the ease-of-use in favor of an even lower price, the Raspberry Pi foundation makes that possible as well with the RP2040 chip, commonly found on the Pico. [Jason] shows us one way to make use of this powerful chip by putting one in an audio digital signal processing board.

While development boards are available for this chip, [Jason] has opted instead for a custom PCB which he designed himself and includes an integrated headphone amplifier and 3.5 mm audio jacks. To do the actual DSP work, the RP2040 chip uses three 12-bit ADC channels and 16 controllable PWM channels. The platform is also equipped with the TLV320AIC3254 codec from Texas Instruments. With all of this put together, he has a functioning open-source platform he calls the DS-Pi.

[Jason] has built this as a platform for guitar effects and as a customizable guitar amp modeler, but with a platform that is Arduino-compatible and fairly easy to program it could be put to use for anything involving other types of music or audio processing, like this specialized MIDI-compatible guitar effects platform which is built around the same processor.

PiSquare Lets You Run Multiple HATs On A Raspberry Pi

The Raspberry Pi’s venerable 40-pin header and associated HAT ecosystem for upgrades has been a boon for the platform. It’s easy to stack extra hardware on to a Pi, even multiple times in some cases. However, if you want to run multiple HATs, and wirelessly at that, the PiSquare might just be the thing for you.

The PiSquare consists of a board featuring both RP2040 and ESP-12E microcontrollers. It interfaces with Raspberry Pi HATs and even lets you run multiple of the same HAT on a single Raspberry Pi, as it’s not actually directly using the UART, SPI, or I2C interfaces on the host Pi itself. Instead, the PiSquare communicates wirelessly with the Pi, handling the IO with the HAT itself.

It’s unclear how this works on a software level. Simply using existing software tools and libraries for a given Raspberry Pi HAT probably won’t work with the wireless PiSquare setup. However, for advanced users, it could serve a useful purpose, allowing one Raspberry Pi to command multiple HATs without the fuss of having to run more single-board computers where just one will do. Boards will be available on Kickstarter for those interested in the device.

We’ve seen other creative things done with the Raspberry Pi and the HAT system, too. If you’ve been cooking up your own neat hacks for the platform, drop us a line!

Camera held in hand

Review: Vizy Linux-Powered AI Camera

Vizy is a Linux-based “AI camera” based on the Raspberry Pi 4 that uses machine learning and machine vision to pull off some neat tricks, and has a design centered around hackability. I found it ridiculously simple to get up and running, and it was just as easy to make changes of my own, and start getting ideas.

Person and cat with machine-generated tags identifying them
Out of the box, Vizy is only a couple lines of Python away from being a functional Cat Detector project.

I was running pre-installed examples written in Python within minutes, and editing that very same code in about 30 seconds more. Even better, I did it all without installing a development environment, or even leaving my web browser, for that matter. I have to say, it made for a very hacker-friendly experience.

Vizy comes from the folks at Charmed Labs; this isn’t their first stab at smart cameras, and it shows. They also created the Pixy and Pixy 2 cameras, of which I happen to own several. I have always devoured anything that makes machine vision more accessible and easier to integrate into projects, so when Charmed Labs kindly offered to send me one of their newest devices, I was eager to see what was new.

I found Vizy to be a highly-polished platform with a number of truly useful hardware and software features, and a focus on accessibility and ease of use that I really hope to see more of in future embedded products. Let’s take a closer look.

Continue reading “Review: Vizy Linux-Powered AI Camera”

It’s Almost A New Raspberry Pi Compute Module 4. But Not Quite

We know that readers are familiar with the global chip shortage and its effects on product availability. The Raspberry Pi folks haven’t escaped its shadow, for even though they’ve managed to preserve availability of their RP2040 microcontroller, it’s fair to say that some of their flagship Linux-capable boards have been hard to find. All of this has had an unlikely effect in the form of a new Raspberry Pi, but unexpectedly it’s one which few end users are likely to get their hands on.

The Raspberry Pi Compute Module has been part of the range since the early days, and in its earlier versions took a SODIMM form factor. The last SODIMM Compute Module had a Pi 3 processor, and this unexpected new model is reported as having a very similar hardware specification but featuring the Pi 4 processor. It seems that the chip shortage has affected supplies of the earlier SoC, and to keep their many industrial customers for the SODIMM Compute Modules in business they’ve had to produce this upgrade. As yet it’s not surfaced for sale on its own and there’s a possibility it will stay only in the realm of industrial boards, but as the story develops there’s a Raspberry Pi forum topic about it for the latest and you can find the pertinent info in the video below the break.

Of course, the Compute Module of the moment remains the CM4 in its newer form factor, which we see as possibly the most exciting of all the Pi products of the moment. Meanwhile this is not the first custom industrial Raspberry Pi to be seen in the wild.

Continue reading “It’s Almost A New Raspberry Pi Compute Module 4. But Not Quite”

Raspberry Pi Test Stand Tells You Which Glues To Use

Not all glues are created equal; or rather, not every glue is good for every application. But how is one to know which glue to use in which kinds of joints? The answer to that is not always clear, but solid numbers on the comparative strength of different glues are a great place to start.

To quantify what can ordinarily be a somewhat subjective process, there’s probably no one better than woodworker and hacker [Matthias Wandel], equipped as he is with his DIY strength-tester. Using its stepper-driven power to blast apart glued lap joints, [Matthias] measured the yield point of the various adhesives using a strain gauge connected to a Raspberry Pi.

His first round of tests had some interesting results, including the usually vaunted construction adhesive ending up in a distant last place. Also performing poorly, at least relative to its reputation and the mess it can cause, was the polyurethane-based Gorilla Glue. A surprise standout in overall strength was hot glue, although that seemed to have a sort of plastic yield mode. Ever the careful empiricist, [Matthias] repeated his tests using hardwoods, with remarkably different results; it seems that glues really perform better with denser wood. He also repeated a few tests to make sure every adhesive got a fair shake. Check out the video below for the final results.

It’s always good to see experiments like this that put what we often take for granted to the test. [John] over at the Project Farm channel on YouTube does this kind of stuff too, and even did a head-to-head test of epoxy adhesives.

Continue reading “Raspberry Pi Test Stand Tells You Which Glues To Use”

ayan-sensor2notion-dashboard+raspberryPi

Know Which Way The Wind Blows, Whether Weather Boosts Your Mood

As a quantified-self experiment, [Ayan] has tracked several daily habits and moods for a couple of years and discovered some insights. Too much coffee is followed by anxiety while listening to music leads to feelings of motivation and happiness. There was a strong correlation in the data, but [Ayan] wondered if external factors like the weather and air quality also played a role.

To find out, [Ayan] extended the custom dashboard built in Notion.so with weather data and some local sensors. Working at Balena.io (yes, the makers of the ubiquitous Raspberry Pi SD card flashing tool, Etcher), [Ayan] turned to balenaCloud to translate the data from (you guessed it) a Raspberry Pi into the dashboard via Notion’s API beta. We think Notion holds a lot of promise for all sorts of web-based dashboards as a research notebook and organizational tool. Who knows where the API will lead any interested readers?

Check out the full tutorial where [Ayan] walks you through the hardware used and each step to connect the APIs that bring it all together. [Ayan] plans to add a coffee-maker integration to automate that data entry and would welcome help getting a manual trigger set up for the data integrations.

REMOTICON 2021 // Hal Rodriguez And Sahrye Cohen Combine Couture And Circuitry

[Hal Rodriguez] and [Sahrye Cohen] of Amped Atelier focus on creating interactive wearable garments with some fairly high standards. Every garment must be pretty, and has to either be controllable by the wearer, through a set of sensors, or even by the audience via Bluetooth. Among their past creations are a dress with color sensors and 3D-printed scales on the front that change color, and a flowing pantsuit designed for a dancer using an accelerometer to make light patterns based on her movements.

Conductive Melody — a wearable musical instrument that is the focus of [Sahrye] and [Hal]’s Remoticon 2021 talk — was created for a presentation at Beakerhead Festival, a multi-day STEAM-based gathering in Calgary. [Sahrye] and [Hal] truly joined forces for this one, because [Sahrye] is all about electronics and costuming, and [Hal] is into synths and electronic music. You can see the demo in the video after the break.

The dress’s form is inspired by classical instruments and the types of clothing that they in turn inspired, such as long, generous sleeves for harp players and pianists. So [Hal] and [Sahrye] dreamed up a dress with a single large playable sleeve that hangs down from the mid- and upper arm. The sleeve is covered with laser-cut conductive fabric curlicues that look like a baroque interpretation of harp strings. Play a note by touching one of these traces, and the lights on the front of the dress will move in sync with the music.

[Sahrye] started the dress portion of Conductive Melody with a sketch of the garment’s broad strokes, then painted a more final drawing with lots of detail. Then she made a muslin, which is kind of the breadboard version of a project in garment-making where thin cotton fabric is used to help visualize the end result. Once satisfied with the fit, [Sahrye] then made the final dress out of good fabric. And we mean really good fabric — silk, in this case. Because as [Sahrye] says, if you’re going to make a one-off, why not make as nicely as possible? We can totally get behind that.

[Sahrye] says she is always thinking about how a wearable will be worn, and how it will be washed or otherwise cared for. That sequined and semi-sheer section of the bodice hides the LEDs and their wiring quite well, while still being comfortable for the wearer.

Inside the sleeve is an MPRP121 capacitive touch sensor and an Arduino that controls the LEDs and sends the signals to a Raspberry Pi hidden among the ruffles in the back of the dress.

The Pi is running Piano Genie, which can turn eight inputs into an 88-key piano in real time. When no one is playing the sleeve, the lights have a standby mode of mellow yellows and whites that fade in and out slowly compared to the more upbeat rainbow of musical mode.

We love to see wearable projects — especially such fancy creations! — but we know how finicky they can be. Among the lessons learned by [Sahrye] and [Hal]: don’t make your conductive fabric traces too thin, and silver conductive materials may tarnish irreparably. We just hope they didn’t have to waste too much conductive fabric or that nice blue silk to find this out.

Continue reading “REMOTICON 2021 // Hal Rodriguez And Sahrye Cohen Combine Couture And Circuitry”