Control signal strength with voltage input

Hi, I'm working on a musical synthesizer project, and I need to control the intensity of a signal with a voltage input (PWM/RC filter).

Using a digital potentiometer will not work, since I need the signal's voltage to drop to zero.

I also tried controlling the voltage into the signal generator chip's VCC pin, but bizarrely I discovered that whatever is input into the chip makes no difference on the signal, even if there is no voltage going in at all. I don't know why this happens.

Any ideas?

Posting schematics would help us a lot.

There are many LED/LDR attenuator/modulator projects on the web

OK. Does this work? You never said exactly what the problem is, other than you tried adjusting Vcc and that didn't work.

How are you measuring the signal strength?

An oscilloscope and speakers. I don't see or hear any difference.

Well, you won't hear any difference unless the signal has increased 3dB.

It doesn't matter if the VCC pin is connected to 5v or nothing at all, there seems to be no change. It must be getting power from one of the data pins instead.

Could be. With no schematic, only you can track it down.

Say more. Any potentiometers wired as a voltage divider would be able to take the signal voltage to zero, digital or no.

a7

Are you talking about the output of the AD9833 chip not changing when its Vcc is disconnected or the output of the preamp when its Vcc is disconnected?

When you talk about changing the output level with PWM are you talking about the PWM output from the Arduino that is controlled with the Hall devices? Also, to be clear, this output level you are talking about, is it the output level of the preamp?

The output of the AD9833 chip does not change when its Vcc pin is disconnected.

The PWM output level is controlled by the hall effect sensor.

I would be fine with either the output of the preamp or the output of the signal generator is changed, as long as the final output (of the preamp) can be lowered to 0.

You said:

What did you mean by that.

Are you saying that when the AD9833 is not powered at all that it still produces a synthesized output?

It's still producing the same output without its Vcc input, so it must be getting powered by one of the data pins attached to the digital outputs of the Arduino.


Vcc is the frontmost pin with the square pad. Since it's a breakout board it's probably just wired differently. I'm getting the expected output voltage, so it's not a broken board.

Must be. I would stop doing that as it might damage the breakout board.

Does this mean you want the output level of the signal generator/preamp to be controlled by the PWM level? e.g. in steps of 0-255?

Stop powering the Vcc pin? I won't, anymore, but when I was powering it everything seemed to be functioning normally, with nothing heating up. Surely connecting the pin as intended wouldn't damage the board?

Yes, exactly.

Personally, I would try doing it with a digital pot first but it's possible that there could be some coupling of the unattenuated signal to the output through capacitance. Probably less likely if you attenuate the 600 mV input to the preamp as opposed to the preamp output.

It's not intended to be powered through the Arduino interface is what I'm getting at. It should have its Vcc/Gnd powered whenever there are other voltages on its inputs/outputs.

Thanks, that's good to know. That's probably the route I'll go if there's not a simpler option.