switching with 4066

Discussion in 'General Electronics Chat' started by bmjunar, Feb 21, 2011.

  1. bmjunar

    Thread Starter New Member

    Feb 21, 2011
    5
    0
    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
     
  2. bmjunar

    Thread Starter New Member

    Feb 21, 2011
    5
    0
    Also, I forgot to say that they are analog signals (S1, S2, S3)
     
  3. debjit625

    Well-Known Member

    Apr 17, 2010
    790
    186
    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: Feb 21, 2011
  4. Ron H

    AAC Fanatic!

    Apr 14, 2005
    7,050
    657
    You need to show how the switches are controlled.
     
  5. SgtWookie

    Expert

    Jul 17, 2007
    22,182
    1,728
    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?
     
  6. bmjunar

    Thread Starter New Member

    Feb 21, 2011
    5
    0
    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: Feb 21, 2011
  7. Ron H

    AAC Fanatic!

    Apr 14, 2005
    7,050
    657
    Where are your switching signals (controls) coming from?
     
  8. bmjunar

    Thread Starter New Member

    Feb 21, 2011
    5
    0
    They come from a FPGA that sends the array of 7 bits.
     
  9. debjit625

    Well-Known Member

    Apr 17, 2010
    790
    186
    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: Feb 22, 2011
  10. Ron H

    AAC Fanatic!

    Apr 14, 2005
    7,050
    657
    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.
     
  11. bmjunar

    Thread Starter New Member

    Feb 21, 2011
    5
    0
    Thank you everyone. It´s working well
     
Loading...