Circuitbenders Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Author Topic: LDR causing pitch of a squarewave to bend  (Read 9457 times)

michael page

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
LDR causing pitch of a squarewave to bend
« 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


Anyone know why this might be?

Cheers

Mike Page
« Last Edit: June 03, 2015, 03:04:56 PM by michael page »
Logged

Circuitbenders

  • crustypaul
  • Admin
  • This person is dangerously insane.
  • *****
  • Karma: 1102
  • Offline Offline
  • Posts: 2451
    • Circuitbenders.co.uk
Re: LDR causing pitch of a squarewave to bend
« Reply #1 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:


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.
Logged
i am not paid to listen to this drivel, you are a terminal fool

michael page

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
Re: LDR causing pitch of a squarewave to bend
« Reply #2 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.
« Last Edit: June 03, 2015, 07:36:16 PM by michael page »
Logged

Circuitbenders

  • crustypaul
  • Admin
  • This person is dangerously insane.
  • *****
  • Karma: 1102
  • Offline Offline
  • Posts: 2451
    • Circuitbenders.co.uk
Re: LDR causing pitch of a squarewave to bend
« Reply #3 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
Logged
i am not paid to listen to this drivel, you are a terminal fool

michael page

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
Re: LDR causing pitch of a squarewave to bend
« Reply #4 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=



Logged

Circuitbenders

  • crustypaul
  • Admin
  • This person is dangerously insane.
  • *****
  • Karma: 1102
  • Offline Offline
  • Posts: 2451
    • Circuitbenders.co.uk
Re: LDR causing pitch of a squarewave to bend
« Reply #5 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
Logged
i am not paid to listen to this drivel, you are a terminal fool

michael page

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
Re: LDR causing pitch of a squarewave to bend
« Reply #6 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.
Logged