Jump to content
Sign in to follow this  
jbanik

Driving 3V relays using MSP430G2553

Recommended Posts

Hi,

 

I am trying to operate a 3V relay (from OMRON) using MSP430G2553. The relay is a SPDT one, with 6 PINs. I am not quite sure how to wire a6 PIN relay (I have some experience with 5 PIN SPDT relay), and I cannot find much information in the internet. I was also told that, for driving a 3V relay, I would not require transistor + diode combination. For your information, the relay has a rated coil current of 50 mA.

 

Can anyone help me on understanding the wiring structure of the relay? How to interface it with MSP430? Also, is it true that, I can operate the 3V relay without separate transistor + diode combination? 
 

 

I do not have much experience in microcontroller, particularly in MSP430 platform. Any suggestion is welcome. Thank you in advance for your support.

Share this post


Link to post
Share on other sites

First, DO NOT directly drive it with the microcontroller without knowing more. The output of the microcontroller (any microcontroller, not just MSP430) can be damaged driving the inductive load and current demand of the relay coil if not done properly.

 

That said, it is tough to give details without having the part number for the relay, so I will give some generalities:

 

The recommended way to drive the relay is to use a transistor (an npn bipolar is traditional) as a switch to ground, and use a diode across the coil to shunt the inductive kickback when shut off. Directly driving is likely to damage or destroy the microcontroller, sooner or later, even with a protection diode. Not a guarantee, but, again, without part data, I would lean that way.

 

A six pin SPDT relay could be the same as a five pin, with one unused or a redundant connection (often the common for the switch), or could be a double coil. Need to know what the model is. A double coil is generally a unipolar latching type: trigger one coil to latch to the NO position, the other to release to the NC position. Gotta look at the data sheet to see if coil current polarity matters. Some do, some don't.

Share this post


Link to post
Share on other sites

Sorry, my bad. I forgot to mention the relay model. 
 

It's a 3V relay from Omron, and the parts ID is: G5V-1.

 

Thanks for your suggestion regarding transistors. I would really appreciate if you could provide me a pointer towards similar example, which shows detailed schematic. 

Share this post


Link to post
Share on other sites

OK... The data sheet (http://www. omron.com/ecb/products/pdf/en-g5v_1.pdf) shows that pins 5 and 6 are both connected to the common of the switch. Either or both can be used in your application.

 

Lots of examples for using a transistor to control a relay... They all pretty much are the same thing, since it is a basic concept that has been around since vacuum tubes, and pretty much anyone working with electronics learns it sooner or later.

 

Method one is build it from discrete components as in the crude attachment. Preferred for a single device. 2n3404 or 2n2222 for the relay you are using, a 2.2K resistor on the base (0.5mA base drive to insure saturation of the transistor for 50mA coil current), and any small sig diode for flyback (1n914 is fine)

 

Method two is use a driver IC, which contains multiples of this basic block, such as the ULN2003 or ULN 2004, or one of the hundreds of similar IC's (these particular ones are darlingtons, which means they can sink more current than a single transistor, but at the expense of greater potential drop.... There are also simple bipolar drivers)

post-30450-0-67955600-1427848675_thumb.png

Share this post


Link to post
Share on other sites

I really appreciate your help. I think I get the idea. I will let you know, if I face any other difficulties. Thank you. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×