switching with 4066

Thread Starter

bmjunar

Joined Feb 21, 2011
5
Hello everyone

I have 3 different signals and am using 7 switches. The way I'm turning on or off the switches is by sending a binary array. Configuration depends on where the signals go (top, middle or bottom). It´s much easier I you open the attached file and see what I'm talking about.

I've got a problem, but I'm not sure what it is. Could you tall me what I'm doing wrong.

Thank you in advance

Juan Naranjo
 

Attachments

debjit625

Joined Apr 17, 2010
790
What is the purpose of doing it? explain it properly so that anybody could help you.
Is that 4066 is related to logic IC 4066 Bilateral switch?

Good Luck
 
Last edited:

SgtWookie

Joined Jul 17, 2007
22,230
What is it that you are trying to do? Send any of the three signals to any of the three outputs?

Did you want to be able to send all three signals to all three outputs at the same time, in any combination?
 

Thread Starter

bmjunar

Joined Feb 21, 2011
5
What I'm trying to do is an EKG. The combinations I'm using are: "1001001", "0011010" & "0100110" which correspond to Derivation I, II & III respectively. The Most Significant Bit (MSB) is the switch 7. Therefore, I send an array with any of these three combinations and what I hope to get is one of the derivations of the EKG.

Answering your question Debjit625. Yes, It´s a bilateral switch

For example if I send "1001001" I´d like to get the S1 signal on the TOP, S2 on the middle and S3 on the bottom.

If you need more explanations let me know

Thank you very much
 
Last edited:

debjit625

Joined Apr 17, 2010
790
I understood a bit,you have three signals (S1,S2 and S3) and you want to swap them as per the 7 bits binary code (switches 1 to 7) at the output like this...

You send 1001001 it gives S1 at top ,S2 at middle,S3 at bottom
You send 0011010 it gives S3 at top ,S2 at middle,S1 at bottom
You send 0100110 it gives S2 at top ,S3 at middle,S1 at bottom

Now what I dont understand ,where is your problem I dont see one ,the circuit seems to be ok.And whats EKG I think its not electrocardiogram.

Do you have more combinations or just these three.

Yes one problem may be their, many people make this mistake when working with AC i.e.. you used AC signals and coupled it to output with capacitors,note capacitors offers resistance to AC and its called impedance now it depends on the frequency you use like if my signal source frequency is 50Hz I will need a cap of approx 318471 mfd so that it offers 0.01 ohms. I rather change the frequency and use a 100 mfd cap at 16000 Hz

Calculating impedance
Z = 1/(2*PI*F*C)
Z = Impedance in ohms
PI = approx 22/7 or 3.14
F = Frequency in Hertz
C = Capacitance in farad

And welcome to AAC.

Good Luck
 
Last edited:

Ron H

Joined Apr 14, 2005
7,063
1. Your 4066's must be connected to the same +V and ground as your FPGA.
2. Your signals must not swing above +V, nor below 0V.
 
Top