Circuitbenders Forum

Circuitbenders Forum => Circuitbending discussion => DIY Synths => Topic started by: michael page on June 03, 2015, 03:02:43 PM

Title: LDR causing pitch of a squarewave to bend
Post by: michael page on June 03, 2015, 03:02:43 PM
Hiya,

I'm putting a squarewave from a 40106 oscilator through a vactrol to fade it up and down.  It works well except the pitch seems to bend a little bit.  

The power for the LED is a separate power supply to the synth.

heres the circuit  :

http://mpanimation.blogspot.co.uk/2015/06/ldr-causes-pitch-to-bend-i-cant-workout.html (http://mpanimation.blogspot.co.uk/2015/06/ldr-causes-pitch-to-bend-i-cant-workout.html)


Anyone know why this might be?

Cheers

Mike Page
Title: Re: LDR causing pitch of a squarewave to bend
Post by: Circuitbenders on June 03, 2015, 04:30:14 PM
Possibly because thats not how you wire up a 40106 oscillator. The cap should be going to ground.

Like this:
(http://milkcrate.com.au/_other/sea-moss/01_oscillator.gif)

The LDR will be changing the discharge rate of the cap and therefore the frequency if its wired like it is in your diagram, although thats not how you'd normally wire up an LDR to control the pitch.

When you have it wired right, you'll probably need some kind of buffer between the output of the 40106 and the LDR, or the LDR is always going to change the pitch.
Title: Re: LDR causing pitch of a squarewave to bend
Post by: michael page on June 03, 2015, 07:27:47 PM
Ah apologies! yes thanks, I drew my diagram too hastily (I have corrected it now).  The cap goes to ground and its buzzing away happily.  So the idea is that the LDR fades the oscillator volume up and down as the LED fades up and down.  This aspect of it works well but there is a subtle pitch bend too.  
I'll try putting a diode between pin 2 and the LDR.
Title: Re: LDR causing pitch of a squarewave to bend
Post by: Circuitbenders on June 04, 2015, 09:17:55 AM
i don't think a diode will work as it'll either be blocking the output or still letting the cap drain to ground via the LDR depending on which way round you put it. Try a transistor buffer, or an opamp.

http://hyperphysics.phy-astr.gsu.edu/hbase/electronic/buffer.html (http://hyperphysics.phy-astr.gsu.edu/hbase/electronic/buffer.html)
Title: Re: LDR causing pitch of a squarewave to bend
Post by: michael page on June 04, 2015, 01:07:40 PM
Cheers for the suggestion. Ive got 12 oscillators being mixed in this way so simplicity is a priority in this design.
I've seen schematics with of the outputs of a 40106 synth being mixed with diodes so I recon I'll give that a pop and report back. http://electro-music.com/forum/topic-61732-0.html&postdays=0&postorder=asc&highlight= (http://electro-music.com/forum/topic-61732-0.html&postdays=0&postorder=asc&highlight=)



Title: Re: LDR causing pitch of a squarewave to bend
Post by: Circuitbenders on June 04, 2015, 04:50:33 PM
Yes, but in those schematics the diode connects to one side of a pot acting as a voltage divider and the other side is connected to ground. Theres a constant 100K resistance between the diode and ground regardless of the pot position.
In your design one side of the voltage divider is an LDR so the resistance between the diode and ground is changing and the pitch will change.

If you scroll down that thread theres a much better design with an opamp buffer acting as a mixer. You only need one.

http://electro-music.com/forum/phpbb-files/oscillators_with_diode_mixer_138.gif (http://electro-music.com/forum/phpbb-files/oscillators_with_diode_mixer_138.gif)
Title: Re: LDR causing pitch of a squarewave to bend
Post by: michael page on June 04, 2015, 11:12:55 PM
Thanks for the reply,
yes you are totally right im going to have to work somethign else out.