Shop OBEX P1 Docs P2 Docs Learn Events
Driving Automotive relays. — Parallax Forums

Driving Automotive relays.

Gary D.Gary D. Posts: 37
edited 2005-08-17 01:10 in BASIC Stamp
I am constructing a project that involves one 12Vdc Automotive relay.

My question is.... Will a·NPN Switching transistor be able to provide enough current for the relay?

or do i just use a smaller relay?

Thanks,

Gary D.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are 10 kinds of people....

Those who know binary and those who Don't.

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-08-16 16:58
    Gary,

    ·· Your choice of transistor will depend on the current the relay requires.· You could also use a MOSFET, or you could use the ULN2803.· Any of these can control the relay with the BASIC Stamp.· The MOSFET will most likely control it without issue.· The ULN2803 probably will too.· Knowing the current will tell if·a simple transistor will work.


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Beau SchwabeBeau Schwabe Posts: 6,557
    edited 2005-08-16 17:33
    Gary,

    Here is a link to an article I posted some time ago that referred to motors and determining the correct transistor and the current limiting resistor to the base of the transistor.
    Just substitute the Relay for the Motor in the below application note.

    http://forums.parallax.com/attachment.php?attachmentid=37701

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • Gary D.Gary D. Posts: 37
    edited 2005-08-16 17:58
    Relay found Here

    Man i have a brain freeze. to my knowledge... The coil Resistance is 90 Ohms. Being a 12 vdc relay... that would imply a current

    of ~ 133 mA. That just doesnt sound right to me... but then again i have a brain freeze...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    There are 10 kinds of people....

    Those who know binary and those who Don't.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-08-16 18:19
    Gary,

    ·· That current sounds right to me.· And you could use a simple 2N2222 transistor to turn it on/off.· Use a 1K resistor from the Stamp I/O pin to·the Base of the transistor.· Emitter to ground.· Collector to the relay coil.· The other side of the relay coil to +12V.· Now, there should also be a diode (1N4001 or similar) across the relay coil such that the Cathode is toward the +12VDC.· Make the Stamp I/O pin HIGH, and the relay turns on.· LOW and it's off.· Enjoy!




    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Gary D.Gary D. Posts: 37
    edited 2005-08-16 20:34
    Great ill be sure to Post The Final project in the Projects Section....

    Stay tuned !!!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    There are 10 kinds of people....

    Those who know binary and those who Don't.
  • jeffrey morrisjeffrey morris Posts: 52
    edited 2005-08-17 00:14
    If I want to use a 6VDC motor, how do I find out the motor coil resistance and can I connect the motor to Home Work Board? I·think that this type of circuit will not give me speed control and direction control. Are there circuits for motors that could give me speed control and direction control?
  • cyberbiotacyberbiota Posts: 79
    edited 2005-08-17 00:25
    Jeffrey-

    I'd just measure the coil resistance with a VOM. Do not attempt to directly connect a motor to the stamp. To control speed and direction of the motor you will want to use something like an H-Bridge circuit. You can either roll yer own, or purchase a motor control IC such as the L293-D.

    peter

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Peter C. Charles

    Director, Research and Technology
    CyberBiota, Incorporated
    Peter.charles@cyberbiota.com
    http://www.cyberbiota.com
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-08-17 01:10
    Jeffrey,

    ·· Please start a new thread when asking non-related questions in a thread.· Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
Sign In or Register to comment.