Categories
Uncategorized

Big Button Audio Player

I was recently contacted by an artist who really liked The Big Button and wanted to use it for an art installation. After some discussion it turned out they really didn’t need a USB controller but needed something to trigger an audio player. When I asked what they were going to use for an audio player they said they didn’t know, so I suggested building the whole thing to ensure it would all work together. And it did.

The control box (which is the “audio player” in the simplest terms) allows the button to plug into it using a 3.5mm TRS cable. This allows the customer to swap out to a longer or shorter cable if needed. 3.5mm TRS stereo cables are everywhere and pretty cheap. Since we only need three wires there’s no need for a more complex connection. (Though if you need an RJ-45 solution, we’ve got that covered.)

The control box also has a 3.5mm jack for audio out. This is to connect to external powered speakers or a PA system. (Or headphones!) And in the center of the front panel is a Mini USB jack for powering the unit via a Mini USB cable and a 5 volt wall wart.

There’s a hole on the side of the unit for access to the Micro SD card in the audio player. Just in case sounds ever need to be changed, or if the card fails, etc. Without this hole it would be very difficult to get to the card. (Just like the Game Show Buzzer System I covered the hole with tape before shipping.)

Here’s a look inside the unit. There’s an Arduino Nano with the audio player, and the 3.5mm jack and… some wires! And a few wire connectors taped together just to prevent them from rattling. This was a quick build but it came together fairly easily. I did a good amount of testing with this one, and luckily it all went well. (I should really build a permanent testing station again, as it’s becoming of a need lately.)

So hey, if you need some weird electronic device that does something… let me know!

Categories
Uncategorized

Bit Board & micro:bit Powered Step Sequencer

The first guide I published for Brown Dog Gadgets was a step sequencer using their Arduino-compatible Robotics Board back in April 2020. You may also remember my WMSE sculpture that was a step sequencer, and I never did a write-up on it, but I also built a step sequencer for an interactive museum exhibit years ago, which was kid-tough and focused on sequencing as a form of programming.

Anyway, since it was nearly a year from the first Crazy Circuits step sequencer I think I should revisit it as a micro:bit project. So here’s a guide to building a Bit Board & micro:bit Powered Step Sequencer.

The code was written using Microsoft MakeCode for micro:bit, a block-based programming environment, which also supports Javascript and Python in text modes. It’s been interesting working in a block-based programming system, and I’ve gotten used to it in the past six months. I do really like the fact that you can toggle between block view and text view.

I’ve got a lot more micro:bit projects I’ve worked on in recent months, which you can check out in the Brown Dog Gadgets Project Database.

Categories
Uncategorized

SoundProp – Sound Effects with Processing & MIDI

Sometimes you forget to document things, and sometimes you try to get ahead of the game. Back around 2009 I was one of the organizers of Web414, Milwaukee’s Web Community Meetup, and at some point Gabe and I turned it into a live talk show. Yeah, I don’t know how we managed to do that, but… it happened. We had guests and we interviewed them, and even had a musical guest once! Anyway, one of the things I did was add sound effects to things because… well, I love that kind of shit. So yeah, my first “Sound Effect Board” was a web page on my web site I called ShowProp which used Flash to play some sound effects at the push of a button. (Still there, still mostly works. Here’s another silly web/sound thing from 2010, Evil-O-Mator.)

Where was I? Oh yeah, sound effects! Typically I was the co-host while Gabe was the primary host, so I would work the sound effects board at the appropriate (or inappropriate time.) It was fun.

And then I started messing around with Processing in 2010 and eventually started a re-write of ShowProp that would run locally on my computer rather than a Flash-enabled web page. (Flash is Dead! Sort of…) Processing is still very much alive, and I use it fairly often for creative coding, and hey, I figured since it’s 2020 it was time to update things.

I should mention that in 2019 I got my first “real” MIDI device, an Arturia Beat Step. A local synth guy was selling it for… wow, less than half the price of a new one. (I guess I got a deal!) I say my first “real” MIDI device because I’ve built them before, for myself, for museum exhibits, etc. but I had never bought a commercial unit before. Since I had this around, and I enjoy screwing around with MIDI, I dug into MIDI support in Processing, and…

I ended up redoing my old ShowProp sketch to be SoundProp, which is a Processing sketch that accepts MIDI input and plays sounds. It’s the second fanciest sound board style device I’ve used this year. (Yeah, I use others.) I also discovered the sound playing capabilities of Processing have greatly improved over the years, so that was an added bonus.

So basically, my sketch has a bunch of audio files, and each is mapped to a MIDI pitch which is sent by one of the 16 pads. Now, because it’s MIDI and not key commands it always works, no matter what application is in the front. No fumbling around to pull up the right window before you press a key or click a mouse. All the Sounds! All the Time!

The UI is quite minimal. It’s just a window that is 250 pixels by 130 pixels. I typically just launch the application and minimize it. (And hey, this will run as a native—well, Java—application on macOS, Windows, and Linux… in theory.)

If I get around to it I’ll clean it up and upload the code, and maybe create a video showing it work, though it’s not really that exciting, but hey… 2020, whaddaya want!?

Categories
Uncategorized

My First Noisemaker

Noisemaker from the 1980s4938

I came across a treasure in one of the (many) boxes of “old things” in the basement. What you see is a Radio Shack project box with a speaker and a switch on it. Yeah, it’s a noisemaker, and I built it in the mid-1980s.

Fun fact, I used to do electronics in high school, and while I’m not sure this was a project we did in class, I’m guessing I may have built it around the time I was in school. It was probably around 1985 or so, if I had to guess. (I think I took two years of electronics classes.)

Noisemaker from the 1980s4939

The speaker has a “grill” that appears to be made from a metal screen, maybe from an old scrap window screen? I do know it would have been built with whatever stuff was around the house. I think I used Elmer’s glue to attach the screen to the speaker. It seems to have held up! The lettering for the “ON” label was most likely done using Liquid Paper and there’s a bit of clear Scotch Tape covering it as a protective layer. This also held up well!

Noisemaker from the 1980s4940

There’s a hole in the case. I’m not sure why. If I had to guess, I probably burned it with my soldering iron. I should say “Solder Gun” because at home we had one of these, and I don’t know if it belonged to my dad and I used it, or he bought it for me, but I do remember it wasn’t easy to solder with. At the time I didn’t realize this wasn’t the preferred tool for delicate electronics work…

Noisemaker from the 1980s4942

It looks like the soldering joints on the speaker held up fine… not so much for the masking tape, which dried up and lost its “stick”. I guess I just taped the speaker down, and used the tape as an insulator for the speaker contacts. (I did not know about hot glue yet.)

Noisemaker from the 1980s4945

Let’s pop this sucker open! Solid core wire and a 9 volt battery connector are visible. There’s also a piece of paper that I assumed was to insulate the metal battery housing from the electronics. And then…

Noisemaker from the 1980s4946

I took out the piece of paper and… oh my gawd, I actually documented this thing. There’s a circuit diagram and a Bill of Materials! This explains so much about my life, and honestly, I’m sort of proud of teenage me. Good Job, Petey!

And no, it’s not a proper schematic, but it’s approximately how I document most of my work/projects nowadays, using circuit diagrams, like you might create with Fritzing.

Noisemaker from the 1980s4947

Finally! We’ve got a perf board inside with a few components soldered onto it, and rudimentary strain relief by running the wires through the mounting holes of the perf board. Well done, Petey!

Noisemaker from the 1980s4949

Let’s flip it over and… oh my gawd, the soldering! Sheesh! Now I am embarrassed! But this does lead me to believe I did this project at home, since that’s where I was using a giant soldering gun and giant solder not quite suitable for delicate electronics. Oh well, at least my soldering skills have improved since the late-1980s!

Oh, in case you’re wondering how it works, look at the diagram for a clue. You touched the metal bolt sticking through the enclosure and the top metal piece of the enclosure, and you completed the circuit, and could get weird tones based on how much you touched and how hard you pressed. I was really hoping to include a video but sadly, it did not work after 30 years of sitting in a box. Drat!

(And yes, I’m really tempted to build a new version of this to see what it sounds like!)

Categories
Uncategorized

Sleepy Noise Machine

sleepy-noise-machine

Now that summer is over and the cold months have arrived we no longer sleep with fans running, but that means we sleep without the sound of fan running, and who can sleep with all that quiet?

The wife asked if I could make something that sounded like a fan, which if you know me, is right up my alley. I grabbed a Raspberry Pi Zero and got to work. I found an audio clip of an oscillating fan (wow, there are tons of fan videos on YouTube!) and dropped it onto an SD card with Raspbian and mpg123 and had something working.

The Raspberry Pi Zero has no built-in audio output so in the past I’ve tried using a USB audio dongle, but the one I tested failed miserably in The Sonic Titan so I decided to go a different route. I used a 1080P HDMI Male VGA Audio Video Converter Adapter Cable for PC Laptop PS3 Xbox I got from eBay and then sent the audio out via HDMI so it would go to the adapter. I also needed a Mini HDMI adapter for that to plug into. It works fine, and I’ve not seen the same audio problems I did with the USB dongle.

As you can see from the photo I used a custom enclosure designed by SparkFun and modified with a stabby knife. ;)

I also used a set of powered speakers, and a dual USB power supply from Monoprice. This was hacked together rather quickly, but it all works quite well. We just plug it in before bedtime and within 30 seconds we’ve got our noise. (It also helps drown out the sound of my cat trying to wake us up at 6am.)

The thing I find most amusing about this project is that even though the Raspberry Pi Zero is a “$5 computer” it comes out to almost $30 when I add in the power supply, SD card, speakers, and HDMI audio adapter. Still, I think it’s a better option than running a full desktop computer or laptop with white noise all night. (Which apparently some people do. I’ve also heard that an old phone or tablet is a good option.)

The thing I like most about “Sleepy Noise Machine” is that is was something I could easily slap together with existing parts I had around the house. I mean, you can buy a white noise machine, but why bother when you can make your own?