If you ever find yourself swapping between a mix of audio inputs and outputs and get tired of plugging cables all the time, check out [winslomb]’s audio multiplexer with integrated amplifier. The device can take any one of four audio inputs, pass the signal through an amplifier, and send it to any one of four outputs.
The audio amplifier has a volume control, and the inputs and outputs can be selected via button presses. An Arduino Pro Mini takes care of switching the relays based on the button presses. On the input side, you can plug in devices like a phone, TV, digital audio player or a computer. The output can be fed to speakers, headsets or earphones.
At the center of the build lies a TI TPA152 75-mW stereo audio power amplifier. This audio op-amp is designed to drive 32 ohm loads, so performance might suffer when connecting it to lower impedance devices, but it seems to work fine for headphones and small computer speakers. The dual-gang potentiometer controls the volume, and the chip has a useful de-pop feature. The circuit is pretty much a copy of the reference shown in the data sheet. Switching between inputs or outputs is handled by a bank of TLP172A solid state relays with MOSFET outputs, and it’s all tied together with a micro-controller, allowing for WiFi or BLE functionality to be added on later.
[winslomb] laid out the design using Eagle and he made a couple of footprint mistakes for the large capacitors and the opto-relays. (As he says, always double-check part footprints!) In the end, he solder-bridged them on to the board, but they should probably be fixed for the next revision.
[winslomb] built the switch as his capstone project while on his way to getting a Masters in EE, and although the device did function as required, there is still room for improvement. The GitHub repository contains all the hardware and software sources. Check out the video below where he walks through a demo of the device in action. If you are looking for something simpler, here is a two input – one output audio switcher with USB control and on the other end of the spectrum, here’s an audio switch that connects to the Internet.
Continue reading “Escape Cable Hell With An Audio I/O Multiplexer”
[SeanHodgins] has a project in mind where he needs to sample over 500 analog sensors. To get ready, he made a breakout board for 32-channel analog multiplexer device he wants to use. He put the project out on Hackaday.io and also has a video tutorial you can see below.
There are five input pins to the chip which lets you connect one analog pin to any one of 32 analog pins. Of course, in addition to the five control lines, you need some handshaking lines, too so you could use as many as eight digital pins to control the device.
Continue reading “Arduino Analog I/O Multiplexer”
[Phil] uses both his computer’s speakers and a set of headphones while working at his desk, but he was growing tired of constantly having to remove the headset from his sound card in order to insert the speaker plug. He’s been meaning to rig something up to make it easier to switch outputs, but never seemed to get around to it until he recently saw this LAN-enabled audio switcher we featured.
His USB-controlled switch features a single audio input and two audio outputs, which he mounted on a nicely done homemade double-sided PCB. The switch can be toggled using any terminal program, sending commands to the on-board ATtiny13A via an FT232R USB to serial UART chip.
The switch’s operation is really quite simple, merely requiring [Phil] to type in the desired audio channel into the terminal. The ATiny and a small relay do the rest, directing the audio to the proper output.
It’s that special time of year—time for the parade of student projects from [Bruce Land]’s embedded microcontroller design course at Cornell. [Timothy], [Dhruv], and [Shaurya] are all into remote sensing and control applications, so they built a smart station that combines audiovisual entertainment with environmental sensing.
As with the other projects in this course, the smart station is built on a PIC32 dev board. It does Bluetooth audio playback via RN-52 module and has a beat-matching light show in the form of a NeoPixel ring mounted atop the 3D-printed enclosure. But those blinkenlights aren’t just there to party. They also provide visual feedback about the environment, which comes from user-adjustable high and low trigger values for the mic, an accelerometer, a temperature and humidity sensor, and a luminosity sensor.
The group wanted to add an ultrasonic wake-up feature, but it refused to work with the 3.3V from the PIC. The NeoPixel ring wanted 5V too, but isn’t as picky. It looks to be plenty bright at 3.3V. Another challenge came from combining I²C, UART, analog inputs, and digital outputs. They had to go to the chip’s errata to verify it, but it’s there: whenever I²C1 is enabled, the first two analog pins are compromised, and there’s no official solution. The team got around it by using a single analog pin and a multiplexer. You can check out those blinkenlights after the break.
Maybe you prefer working in wood. If so, you might like this hexagonal take on audio-visualization.
Continue reading “Smart Station Runs Entertainment, Is Entertainment”
There’s a great number toys in the world, many of which make all manner of pleasant or annoying noises for the entertainment of children. If you’re a musician, these toys may be of interest due to their unique or interesting sounds. However, due to their design being aimed at play rather than performance, it may be difficult to actually use the toy as a musical instrument. One way around this is to record the sounds of the toy into a sampler, but it’s not the only way. [little-scale] is here to demonstrate how to MIDI interface your toys.
[little-scale] starts out by discussing the many ways in which one can interface with a toy. The article discusses how a simple button can be replaced with a relay, or a multiplexer, and be interfaced to all manner of other devices to control the toy. This is demonstrated by using a mobile phone toy which makes sounds when buttons are pressed.
A Teensy 3.6 is used to run the show, acting as a USB-MIDI interface so the toy can be controlled by music software like Abelton. It’s connected to the toy’s buttons through a multiplexer. The toy’s speaker is cut off and used as an audio output instead, allowing the toy to be easily connected to other audio hardware for performance or recording. It’s also fed through a digital pot so MIDI commands can control the volume. A resistor is used to control pitch in the toy, so this too was replaced with a digital pot as well, to allow sample pitch to be controlled.
The project is incredibly well documented, with [little-scale] first tearing down the toy and highlighting the points of interest, before stepping through each stage of interfacing the toy to the digital world. We’ve seen some of [little-scale]’s work before, too – namely, this MIDI DAC for controlling vintage synthesizers. Video after the break. Continue reading “How To MIDI Interface Your Toys”
Raindrops on roses, and whiskers on kittens? They’re alright, I suppose. But when it comes down to it, I’d probably rather have a bunch of 4051, 4052, and 4053 analog multiplexers on the component shelf. Why? Because the ability to switch analog signals around, routing them at will, under control of a microcontroller is tremendously powerful.
Whether you want to read a capacitive-sensing keyboard or just switch among audio signals, nothing beats a mux! Read on and see if you agree.
Continue reading “A Few Of Our Favorite Chips: 4051 Analog Mux”
Homebrew synths – generating a waveform in a microcontroller, adding a MIDI interface, and sending everything out to a speaker – are great projects that will teach you a ton about how much you can do with a tiny, low power uC. [Mark] created what is probably the most powerful homebrew synth we’ve seen, all while using a relatively low-power microcontroller.
The hardware for this project is an LPC1311 ARM Cortex M3 running at 72 MHz. Turning digital audio into something a speaker can understand is handled by a Wolfson WM8762, a stereo 24-bit DAC. Both of these chips can be bought for under one pound in quantity one, something you can’t say about the chips used in olde-tyme synths.
The front panel, shown below, uses 22 pots and two switches to control the waveform, ADSR, filter, volume, and pan. To save pins on the microcontroller, [Mark] used a few analog multiplexers. As far as circuitry goes, it’s a fairly simple setup, with the only truly weird component being the optocoupler for the MIDI input.
The software for the synth is written mostly in assembly. In a previous version where most of the code was written in C, everything was a factor of two slower. Doing all the voice generation in assembly allowed for twice as many simultaneous voices.
It’s a great project, and compared to some of the other synth builds we’ve seen before, [Mark]’s project is at the top of its class. A quick search of the archives says this is probably the most polyphonic homebrew synth we’ve seen, and listening to the sound sample on the project page, it sounds pretty good, to boot.