blakeAlbion
Well-known member
I am using a Teensy 4.0 within an antique transistor-powered drum machine.
It handles MIDI control and MIDI clock conversion very well. All was great until I wanted to add faders to the analog drum sounds. They were summed as low impedance signals going into a high gain transistor amplifier. Any small change to the level of one instrument had side effects on the mix, especially the bass drum. So I knew I needed an active mixer in there, so added an NE5532 low noise op amp to my board. (a solderable pcb breadboard)
I'm doing all sorts of crazy things in this project, and have been able to mitigate a lot of audio noise problems, but am now stuck.
There's a buzzing noise. By process of elimination I discovered the buzz was coming from rapid calls to analogRead().
This wasn't a problem until I brought op amps into my signal path. (with gain determined by 100K inverting feedback resistor). Most signal levels are high enough to not need a high gain amp. But those darn inductor-powered classic analog drum sounds need a lot of boost.
I use analogRead for 4 potentiometers which control some sound synthesis in the Teensy.
The use of analogRead in loop() is causing an audible buzz in my new little active mixer circuit. I was able to reduce it with some power decoupling capacitors and shielded cable for the audio lines and the analogRead() pins. But it's still there, just audible enough to make a person using headphones unhappy.
I can make the sound less noticeable by slowing down the rate at which loop calls the analogReads. But this is still audible as a choppy sound, and reduces the responsiveness of the pots, of course.
I can try to describe my audio and power setup but it's just a nightmare. The old drum machine has an unregulated (unless you consider a huge ceramic resistor a regulator) power supply at around 20V. I added my own enclosed high-current 5v supply for the digital electronics.
So I can keep trying to eliminate the noise. But is there anything else I can do? I read in the forum that using an external ADC is the pro way to minimize this kind of noise. But is there anything inherently noisy (making electrical noise in my amplifier circuit, not ADC read error noise) about analogRead() and is there any alternative method for reading that is less noisy?
I am using 100K potentiometers and read they should be 10K. I can switch those tomorrow. But again, would that account for the noise I hear in my mixer circuit ?
Thanks,
Ben
It handles MIDI control and MIDI clock conversion very well. All was great until I wanted to add faders to the analog drum sounds. They were summed as low impedance signals going into a high gain transistor amplifier. Any small change to the level of one instrument had side effects on the mix, especially the bass drum. So I knew I needed an active mixer in there, so added an NE5532 low noise op amp to my board. (a solderable pcb breadboard)
I'm doing all sorts of crazy things in this project, and have been able to mitigate a lot of audio noise problems, but am now stuck.
There's a buzzing noise. By process of elimination I discovered the buzz was coming from rapid calls to analogRead().
This wasn't a problem until I brought op amps into my signal path. (with gain determined by 100K inverting feedback resistor). Most signal levels are high enough to not need a high gain amp. But those darn inductor-powered classic analog drum sounds need a lot of boost.
I use analogRead for 4 potentiometers which control some sound synthesis in the Teensy.
The use of analogRead in loop() is causing an audible buzz in my new little active mixer circuit. I was able to reduce it with some power decoupling capacitors and shielded cable for the audio lines and the analogRead() pins. But it's still there, just audible enough to make a person using headphones unhappy.
I can make the sound less noticeable by slowing down the rate at which loop calls the analogReads. But this is still audible as a choppy sound, and reduces the responsiveness of the pots, of course.
I can try to describe my audio and power setup but it's just a nightmare. The old drum machine has an unregulated (unless you consider a huge ceramic resistor a regulator) power supply at around 20V. I added my own enclosed high-current 5v supply for the digital electronics.
So I can keep trying to eliminate the noise. But is there anything else I can do? I read in the forum that using an external ADC is the pro way to minimize this kind of noise. But is there anything inherently noisy (making electrical noise in my amplifier circuit, not ADC read error noise) about analogRead() and is there any alternative method for reading that is less noisy?
I am using 100K potentiometers and read they should be 10K. I can switch those tomorrow. But again, would that account for the noise I hear in my mixer circuit ?
Thanks,
Ben