Need better Relay Driver Circuit
Kirk Fraser
Posts: 364
I recently received the attached advice to interface between a BS1·output pin and a 5v Radio Shack relay.· Unfortunately the circuit I built as a result failed, both as soldered in and also later in proto-board versions.· I used·2N2222 transistors and originally tried 1N914 diodes but now switched to 1N4001's.·
On proto-board I used 5vdc, +5·for Vdd, -5 for Vss.· For the pinout I used the same 5v+ supply.· No response at the relay.· The relay does work by direct connect to 5vdc.· What am I doing wrong?· How can it be repaired?· Thank you.
On proto-board I used 5vdc, +5·for Vdd, -5 for Vss.· For the pinout I used the same 5v+ supply.· No response at the relay.· The relay does work by direct connect to 5vdc.· What am I doing wrong?· How can it be repaired?· Thank you.
Comments
Also check your relay.· Some relays may accept voltage across either coil contact.· Some will accept positive voltage on one pin only.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Do you have a Stamp Tester?
http://hometown.aol.com/newzed/index.html
·
Certainly don't connect -5V to the Vss on your Stamp....don't know what this might do....but may not be good!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
http://members.rogers.com/steve.brady
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
You mentioned using a Darlington TIP120 in place of the pn2222a transitor. I am not real sharp on drawing circuits. Could you draw a circuit using the TIP120 and a the Stamp to controll a relay coil. When I look at the data on the TIP120 package it shows that the collector is connected to the mounting tab. If the TIP120 is used in the circuit attached by Kirk and mounted to a grounded metal frame, would this not short out? A drawing is worth a 1000 words.
Joe Fishback
Normally you use silicone heat conducting but electrical isolating materials to mount power transistors to frames - or you use electically isolated heat sinks. So if you mount it correctly insulating the heat sink there should be no problem.
Kirk
Achilles, you can call it a shunt if you like.· It's the anti-kickback diode found in all Darlington circuits.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Do you have a Stamp Tester?
http://hometown.aol.com/newzed/index.html
·
http://www.parallax.com/dl/docs/cols/nv/vol1/col/nv6.pdf
Just a reminder ... we've got over 100 articles online and it would really benefit many users to scan through them to see what's there.· Between Scott, Loz Glazner (of Solutions Cubed) and me, we've done a lot of projects for "Stamp Applications."· Check them out, you're sure to find something useful.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
Ok, thanks for your suggestion. What is the maximum coil that can be driven with the TIP120? I might be able to eliminate the 5v relay and go directly to the 12v automotive relay with it, or eliminate that too and go directly to my 24v hydraulic valve coils.
I'm still soldering in the new parts but if I have to do this again, I'd like to eliminate a few.
Kirk
Thanks for the original diagram and reference. I'm taking my first digital electronics class so I'm not really up to par yet but I'm working on it. The reference shows that a 12v relay can be driven from a 2N2222 which would have been good to know and may become useful again.
Kirk
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Do you have a Stamp Tester?
http://hometown.aol.com/newzed/index.html
·
Is there a circuit to drive a non-switching analog power transistor?· Perhaps using Pulse Width Modulation?
I have two coils on a hydraulic valve, one for each flow direction·and they can be driven·proportionally 0-24+ volts to provide fine control over the output·flow.
Thanks,
Kirk·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
NEW! 4 MB EEPROM
http://hometown.aol.com/newzed/page4.html
·
Would you suggest a Digital Pot be used to drive a power transistor like a Q101, MPT43055E, Buz71, etc? If so, what is the part number of a digital pot?
People get around this all the time by using PWM -- pulse-width modulation. Basically, if you only turn on the TIP120 for 1 mSec, and turn it off for the next 1 mSec, you get only 50% speed out of your motor. Now the BS2 is not a really good device for doing PWM, since it is a single-tasking processor -- while you are PWM'ing one channel, the other one sits at zero. Makes driving two motors at the same time impossible.
So, people make PWM co-processors. The BS2 tells the PWM chip speed and direction, and the PWM chip puts out the PWM signal for both motors at the same time.
And Vss really should be GND, zero volts, for the above circuit to work.
:-( Ok.
I know two BS1's communicate too slow. Could a BS2 tell 2 BS1's the speed and direction or is something better available?
I got advice from TI to use an 8 channel 12 bit D/A chip TLV5610 and have a couple of samples coming.· Anyone have an app note on·know·how to hook it up to a Stamp 2P40?· And which transistor would convert its output to a linear 0-24v range at upto 1A?· Or how do I locate such?
Previous help from http://www.owlogic.com·was fantastic!· I tested my TLC2543 and it worked great.· I think a BS2P40 can handle at least 2 of them which fits a spot in my robot.·
The pot can be used attached somehow to the air cylider for position feedback...
Can I use it for something like that or its a waste of time trying it?
1) On-off (single solinoid) valve
2) Proportional (double solinoid or solinoid plus permenant magnet) valve
3) Manual valve controlled by a servo motor
Valve 3) is easiest to control by servo motor controls and slowest response.
Valve 1) might need a Stamp to receive PWM and convert to a TIP120.
Valve 2) is the more difficult which is what I'm asking about above. I think my solution is close but incomplete.
http://forums.parallax.com/forums/default.aspx?f=5&p=1&m=65498#m65510
·