Previous in Forum: Electric motors   Next in Forum: Generator Louvers
Close
Close
Close
17 comments
Rate Comments: Nested
Active Contributor

Join Date: Jun 2007
Posts: 16

Digital switches?

07/03/2007 5:57 PM

I was wondering what components(whether it be transistors or ics) are the most simple as digital switches?

I would like to allow a special signal (ex. PWM signal) to pass when a 5V source is applied. Low current if possible. It will be driven by a microcontroller. If it is easily done with a certain type of ic, I would prefer that as I have about 13 signals to pass. Each needs its own switch.

Thanks!

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
Engineering Fields - Control Engineering - New Member China - Member - New Member

Join Date: Sep 2006
Location: CHINA
Posts: 2945
Good Answers: 14
#1

Re: Digital switches?

07/03/2007 10:30 PM

speed?

different speed needs different components.

Register to Reply
Active Contributor

Join Date: Jun 2007
Posts: 16
#2
In reply to #1

Re: Digital switches?

07/04/2007 12:35 AM

I'd say 100ms or less.

Register to Reply
Anonymous Poster
#10
In reply to #1

Re: Digital switches?

07/05/2007 5:20 AM

PWM is about 96 khz on most systems

Register to Reply
Anonymous Poster
#3

Re: Digital switches?

07/04/2007 9:05 AM

probably mosfets will do the work the issue is going to be on the number of pulses you require for channel and how you going to control the open and close on the mosfet. Is your application needs a word bit programming ? why 13 channels is this a parallel 12 bit application?. what is what you whant to control?

Register to Reply
Guru
United Kingdom - Member - Olde Member!! Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jul 2006
Location: Dunstable, England
Posts: 2821
Good Answers: 45
#4

Re: Digital switches?

07/04/2007 9:54 AM

What's wrong with using sensitive relays?

__________________
A little knowledge is a dangerous thing - Googling is far worse!
Register to Reply
Active Contributor

Join Date: Jun 2007
Posts: 16
#5
In reply to #4

Re: Digital switches?

07/04/2007 1:24 PM

I guess a solid state relay is what I really would like to use. Is something like this acceptable:

http://www.cel.com/pdf/datasheets/ps2501.pdf

I am using some 2n3904 and 2n3906 transistors for now, but I just want something in package form.

Register to Reply
Member

Join Date: Apr 2007
Location: Palmdale, CA
Posts: 7
Good Answers: 1
#6

Re: Digital switches?

07/04/2007 11:10 PM

Use an and gate. Put your PWM signal on one input ans apply your control signal through the other. If you don't have the PCB real estate for a whole IC you could use an FET and bias it off so that when the 5V is applied, the PWM signal will push it over the threshold to conduct. The gate method doesn't take any design effort though. Just connect the 2 signals and power and you're done.

Ed

Register to Reply
Anonymous Poster
#11
In reply to #6

Re: Digital switches?

07/05/2007 6:22 AM

use a single AND gate in the same size package as an SMT transitor, e.g.

ST Micro 74LX1G08

NXP 74AHC1G08

Register to Reply
Associate

Join Date: Feb 2007
Location: Indore, Madhya Pradesh, India
Posts: 26
#7

Re: Digital switches?

07/05/2007 1:41 AM

IC type CD 4016 (CMOS quad bilateral switch) or equivalent should do your job. You can look up the details of the IC from its data sheet. You get four switches per IC, so you can work out the number of ICs needed.

Register to Reply
Guru

Join Date: Dec 2005
Location: Etats Unis
Posts: 1871
Good Answers: 45
#8

Re: Digital switches?

07/05/2007 2:33 AM

You really don't provide enough information to make a good recommendation. It could be that a simple 2 input AND gate could do the job. The 4016 recommended above has considerable "ON" resistance and may not suit. The 4066 is an improved version of the 4016 with much lower "ON" resistance but still, since we don't know much about what you are doing it may not be appropriate. There is also an "open collector output" 2 input AND gate that might suit, or multiplexers (digital and analog). Tell us more and perhaps we can zero in on what would work the best.

__________________
The hardest thing to overcome, is not knowing that you don't know.
Register to Reply
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 5826
Good Answers: 322
#9

Re: Digital switches?

07/05/2007 2:33 AM

As Enauman says an AND gate (NAND, OR or NOR) will all do or quad tristate buffers like say 74???125 (??? choose your technology LS HC or HCT) or if you want common control what about octal tri state buffers like 74HCT244 (or 240 or 241).

__________________
If you spend all your time looking for people and things to complain about: trust me, you will find plenty to complain about.
Register to Reply
Power-User

Join Date: Jun 2007
Location: ether
Posts: 371
Good Answers: 1
#12

Re: Digital switches?

07/05/2007 7:19 AM

hello.

the most effective form to do it is trough MOSFET transistors.

though, those transistors need extra care in assembly, cos the gate is easily destroyed by electrostatical discharges.

the easy form is trough BJT transistors, if you dont have any kind of problems of supply power...

all depends ...!! if you want a super efective drive with low comsumption, or a easy and very reliable sistem.

personally ,for that kind of voltage, I would use BJT....

and again it depends in many tings.

ex (PWM freq)

__________________
“For no man can forbid the spark nor tell whence it may come.” ? Francis Bacon
Register to Reply
Active Contributor

Join Date: Jun 2007
Posts: 16
#13
In reply to #12

Re: Digital switches?

07/05/2007 11:52 AM

First of all, thank for all the replies. Second, let me apologize for the lack of detail. I will try my best to explain my situation more thoroughly.

I'm trying to trigger the buttons on my wired Xbox 360 controller. They are capacitive buttons and the signal slightly resembles a pwm (not exactly though, it's just similar…I really don't know what it is). It's a continuous string of three short, decaying pulses. Perhaps that's just for debouncing, but I don't know.

If I connect the leads on the front, the buttons trigger fine. However, the points are vias and are almost impossible to solder. I just traced the leads on the back and found points that I could solder to. When I connect the points with all the external wires, the buttons trigger just fine too. The problem comes when I try using a transistor to switch them on or off. Some of the points have a common negative lead. When I try to turn on certain buttons, it triggers two instead of just one. The other button triggered is the one that shares the common negative point. This happens for several different sets of buttons. I tried several configurations for the switch with no luck.

Originally, I was trying to connect the controller to my Saitek X45 Joystiq, but I am more interested in using it with a microcontroller at this point.

Here are some pics and a video:

http://www.flickr.com/tineras

http://www.youtube.com/watch?v=zbt6eF59FGc

Please be patient with me. I'm a student and I'm just trying to do projects here and there to get some more practical knowledge. I will gladly answer any further questions to try and clear things up. Thanks for your input!!

Register to Reply
Guru

Join Date: Dec 2005
Location: Etats Unis
Posts: 1871
Good Answers: 45
#14
In reply to #13

Re: Digital switches?

07/05/2007 2:57 PM

It sounds like a scanned matrix. You should use either analog switches such as the 4066 or some newer form. TI has a new analog switch that operates well on 3V (TS12A45X, X=1 or 2). Yes you could also use FET's but it would probably be easier to use the analog switch since it already has all the FET's arranged for you.

__________________
The hardest thing to overcome, is not knowing that you don't know.
Register to Reply
Power-User

Join Date: Jun 2007
Location: ether
Posts: 371
Good Answers: 1
#17
In reply to #13

Re: Digital switches?

07/06/2007 6:37 AM

well...

(i did not tink that the sistem was a complex digital machine.I tought that you were in a project of a power source of some type)

I dont know aswell what kind of coding and electrical hardware they use .

I would start to determine the exact code that the pushbutton sends.

meanwhyle it would be a good idea to determine the exact polarity for all the terminals.

datasheets for the components in use if available, etc...

if the joystick use comun electrical source from the xbox, thats a ting...

(but my guess is that you have tryed that already)

if not , you have another situation.

and to be honest, if it is to repar the joystick it could be a good idea just to buy a new one.

but if you intend to made a new one from the scratch, that is a intire project for it self and that´s a load of work...

__________________
“For no man can forbid the spark nor tell whence it may come.” ? Francis Bacon
Register to Reply
Associate
France - Member - New Member

Join Date: May 2007
Location: nargis (Loiret, France)
Posts: 42
#15

Re: Digital switches?

07/05/2007 5:48 PM

My own experience on this subject is:

1)quad CMOS gates are simple to use,and are available on SMD S014.
CD4066 have a far lower on resistance than the slightly less expensive CD4016,hence a wider bandwidth,about 5MHz under 5 volts for CD CMOS.
faster CMOS such as 74HC and HCT should allow a bandwidth of 20MHz (rise and fall time of 25ns)

2)inexpensive JFETs such as BF245,BF256,2N4416 can be driven as fast switches,even analog in synchronous detection.
A usefull trick is to drive the gate through a megohm resistor(to limit charge injection to the channel)with a reverse connected low cost rectifier such as 1N4001,which behaves as a low cost variable capacitance diode

3)on an inexpensive game supplied under 5 volts,I use low cost plastic NPN with a floating base driven through a 100 kiloohms resistors to the digital signal.

At low speed,as such transistors are extremely low cost,this may be the least expensive and simplest solution

__________________
nitrosamine
Register to Reply
Active Contributor

Join Date: Jun 2007
Posts: 16
#16

Re: Digital switches?

07/05/2007 7:51 PM

I temporarily solved the problem by adding a diode to the negative lead of the offending button. This seems to have corrected the problem. I will still look into the other solutions that everyone has posted. I just happen to have this equipment on hand and a bunch of time off right now.

Register to Reply
Register to Reply 17 comments
Copy to Clipboard

Users who posted comments:

anitoff (1); Anonymous Poster (3); cnpower (1); Electroman (1); electronick (2); enauman (1); Randall (1); rcapper (2); Sidban (1); Tineras (4)

Previous in Forum: Electric motors   Next in Forum: Generator Louvers

Advertisement