SPDT toggle switch latency or delay

Thread Starter

samp

Joined Apr 15, 2017
4
Hi everyone

I am a novice in electronic and i'm working on an audio project.
I have made an oscillator out of a cd40106 chip. I have a square wave at the output of the inverter and also a triangle..ish wave at the input.

I have put a toggle switch to activate either the triangle or the square wave but i have a very small latency when i toggle the switch from one position to the other.

Can anyone explain to me why i have this latency and what could solve the problem ?

And sorry if my english is not perfect, it is not my mother language.

Thank you
 

Thread Starter

samp

Joined Apr 15, 2017
4
I have found that it is not the switch or the oscillator that create the latency but maybe a buffer that is placed just after the switch. When i remove the buffer the latency is not there anymore, only a pop.

Problem is that i need that buffer as it is part of the tremolo circuit i'm making for that oscillator.

Maybe the buffer should be modified ?
 

ErnieM

Joined Apr 24, 2011
8,415
Hello samp, welcome to the forums.

First thing making anything but a general answer is not possible without seeing your schematic, and maybe even a picture of your build. I'm wondering if there is something like a DC blocking cap charging that causes the "pop" or just the time when no signal is passed.

So in general... a mechanical switch is going to have some dead zone between the two contacts as one side opens before the other side closes. Just how long is this "very small latency" when you move the switch, and how do you know it is there? Oscilloscope, or do your ears hear it, how?

The more you can tell us what you are doing the better we can help you.
 

Thread Starter

samp

Joined Apr 15, 2017
4
Thanks for the reply ErnieM.

I will try to make a proper schematic for tomorrow. As i said in my second post,the latency disappear when i remove the buffer following the switch. So i guess it's the buffer that causes the latency when i toggle the switch.

I don't use an oscilloscope it's just my hear. When i say latency i mean that there is a very small gap before the sound kicks in.

Here is a part of the schematic. This is the tremolo part with the buffer.


Then i have the oscillator with the switch just before the tremolo input.

Mod edit: image hosted on AAC.
 
Last edited by a moderator:

AnalogKid

Joined Aug 1, 2013
12,093
It is not clear what you mean by "latency". It might be more clear if you post your schematic. What you show has no oscillator, no switch, and no buffer, so how do you expect to get any advice about an oscillator, switch, and buffer?

ak
 

Thread Starter

samp

Joined Apr 15, 2017
4
Yeah i know it is not so clear! And my english is not perfect also, so that doesn't help.

Here is my oscillator circuit.
oscillator circuit_samp.jpg
http://hpics.li/a4bc320

The output of my oscillator (just after the switch on the schematic) goes in the tremolo input. I thought that the tl072 used in the tremolo circuit were buffers. But i might be wrong, i'm just starting electronic.

Thanks for the help.


Moderator's Note:
Please upload your circuit to the forum and compress it as 800 x 600 or 1024 x 768 jpg, I already compressed the circuit and upload it to our forum.
 
Top