Author Topic: Drving a SPDT 2 coil latching relay  (Read 4433 times)

0 Members and 2 Guests are viewing this topic.

Offline Arjunan M RTopic starter

  • Regular Contributor
  • *
  • Posts: 236
  • Country: in
Drving a SPDT 2 coil latching relay
« on: June 16, 2019, 06:49:21 am »
Hi, I am designing a PSU (18V 1A).To switch the ouput on and off I am going to use a latching relay.As i know nothing about latching relays can anyone help me to create a circuit so i can drive it from an MCU(ATmega328P).
Here is the relay I am going to use.
I can only find this circuit in the datasheet


Thanks in advance.
 

Offline Arjunan M RTopic starter

  • Regular Contributor
  • *
  • Posts: 236
  • Country: in
Re: Drving a SPDT 2 coil latching relay
« Reply #1 on: June 16, 2019, 07:05:01 am »

Can anyone simply explain what this A1,A2 and A3 are and what is the small box with negative marking on it mean.
 

Offline soldar

  • Super Contributor
  • ***
  • Posts: 3540
  • Country: es
Re: Drving a SPDT 2 coil latching relay
« Reply #2 on: June 16, 2019, 10:40:36 am »
My guess is that A3 is common and if you apply voltage to A1 it latches one way and if you apply voltage to A2 it latches the other way.
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 
The following users thanked this post: Psi, Arjunan M R

Offline Arjunan M RTopic starter

  • Regular Contributor
  • *
  • Posts: 236
  • Country: in
Re: Drving a SPDT 2 coil latching relay
« Reply #3 on: June 16, 2019, 10:47:26 am »
Thanks for replying .I also thought so, but wasn't sure .
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15339
  • Country: fr
Re: Drving a SPDT 2 coil latching relay
« Reply #4 on: June 16, 2019, 04:36:28 pm »
Yes. According to page 1 of the datasheet, the coils are "polarized" as I get it.

So take care of polarity: look at the "Bistable coils - operation" table. A3 is indeed the common, but is the positive common.
The simplest way to control it would be to tie A3 to VDC and use two N-channel mosfets (drain to A1/A2, source to GND, gate controlled by your application). Also don't forget the freewheeling diodes.

 
The following users thanked this post: Yansi, Arjunan M R

Offline Arjunan M RTopic starter

  • Regular Contributor
  • *
  • Posts: 236
  • Country: in
Re: Drving a SPDT 2 coil latching relay
« Reply #5 on: June 16, 2019, 04:40:00 pm »
Yes. According to page 1 of the datasheet, the coils are "polarized" as I get it.

So take care of polarity: look at the "Bistable coils - operation" table. A3 is indeed the common, but is the positive common.
The simplest way to control it would be to tie A3 to VDC and use two N-channel mosfets (drain to A1/A2, source to GND, gate controlled by your application). Also don't forget the freewheeling diodes.
is using a npn transistor ok.In my case 2n3904 with max collector current 200mA.The latching relay only consumes 600mW(12V,50mA)
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15339
  • Country: fr
Re: Drving a SPDT 2 coil latching relay
« Reply #6 on: June 16, 2019, 04:50:29 pm »
Sure. Since the relay is bistable, it only requires short pulses anyway. You only need to (and should) drive the coils for a very limited amount of time to get the relay in either state.

 
The following users thanked this post: Arjunan M R

Offline Arjunan M RTopic starter

  • Regular Contributor
  • *
  • Posts: 236
  • Country: in
Re: Drving a SPDT 2 coil latching relay
« Reply #7 on: June 16, 2019, 04:53:04 pm »
Sure. Since the relay is bistable, it only requires short pulses anyway. You only need to (and should) drive the coils for a very limited amount of time to get the relay in either state.
Will be 100-500 ms enough?
 

Offline Kjelt

  • Super Contributor
  • ***
  • Posts: 6572
  • Country: nl
Re: Drving a SPDT 2 coil latching relay
« Reply #8 on: June 16, 2019, 05:00:07 pm »
Yes the datasheet says minimum 30ms max. 1 minute.
So 250ms should be enough then you switch the transistor or fet off again.

BTW since the microcontroller can not check in which state the relay is in, you need to keep track of this state.
And in your startup routine you should set the relay in a defined state.
 
The following users thanked this post: Arjunan M R

Offline Arjunan M RTopic starter

  • Regular Contributor
  • *
  • Posts: 236
  • Country: in
Re: Drving a SPDT 2 coil latching relay
« Reply #9 on: June 16, 2019, 05:02:38 pm »
Yes the datasheet says minimum 30ms max. 1 minute.
So 250ms should be enough then you switch the transistor or fet off again.

BTW since the microcontroller can not check in which state the relay is in, you need to keep track of this state.
And in your startup routine you should set the relay in a defined state.
Oopse, I didn't read the datasheet carefully |O
 

Offline Arjunan M RTopic starter

  • Regular Contributor
  • *
  • Posts: 236
  • Country: in
Re: Drving a SPDT 2 coil latching relay
« Reply #10 on: June 17, 2019, 11:26:59 am »
Yes the datasheet says minimum 30ms max. 1 minute.
So 250ms should be enough then you switch the transistor or fet off again.

BTW since the microcontroller can not check in which state the relay is in, you need to keep track of this state.
And in your startup routine you should set the relay in a defined state.
Why does it sat maximum one minute.what happens if I power the coil more than that?
 

Offline Arjunan M RTopic starter

  • Regular Contributor
  • *
  • Posts: 236
  • Country: in
Re: Drving a SPDT 2 coil latching relay
« Reply #11 on: June 17, 2019, 11:28:31 am »
I will configure current state(off) of relay when programming
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19938
  • Country: gb
  • 0999
Re: Drving a SPDT 2 coil latching relay
« Reply #12 on: June 17, 2019, 11:30:55 am »
Yes the datasheet says minimum 30ms max. 1 minute.
So 250ms should be enough then you switch the transistor or fet off again.

BTW since the microcontroller can not check in which state the relay is in, you need to keep track of this state.
And in your startup routine you should set the relay in a defined state.
Why does it sat maximum one minute.what happens if I power the coil more than that?
The coil isn't rated to run continuously and will overheat if run for much longer than the maximum recommended time.
 
The following users thanked this post: Arjunan M R

Offline Arjunan M RTopic starter

  • Regular Contributor
  • *
  • Posts: 236
  • Country: in
Re: Drving a SPDT 2 coil latching relay
« Reply #13 on: June 17, 2019, 11:51:11 am »
Yes the datasheet says minimum 30ms max. 1 minute.
So 250ms should be enough then you switch the transistor or fet off again.

BTW since the microcontroller can not check in which state the relay is in, you need to keep track of this state.
And in your startup routine you should set the relay in a defined state.
Why does it sat maximum one minute.what happens if I power the coil more than that?
The coil isn't rated to run continuously and will overheat if run for much longer than the maximum recommended time.
Oh, so it can only pass 50mA for max 1 miniute.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19938
  • Country: gb
  • 0999
Re: Drving a SPDT 2 coil latching relay
« Reply #14 on: June 17, 2019, 12:28:16 pm »
Yes the datasheet says minimum 30ms max. 1 minute.
So 250ms should be enough then you switch the transistor or fet off again.

BTW since the microcontroller can not check in which state the relay is in, you need to keep track of this state.
And in your startup routine you should set the relay in a defined state.
Why does it sat maximum one minute.what happens if I power the coil more than that?
The coil isn't rated to run continuously and will overheat if run for much longer than the maximum recommended time.
Oh, so it can only pass 50mA for max 1 miniute.
Yes, electrical energy is converted to heat in the coils, 600mW according to the datasheet. When power is applied to the coil, it takes time for the coil to heat up. After 1 minute the coil will reach its maximum temperature rating. If it's powered for longer, it will heat up more, which will risk it exceeding its maximum temperature rating and damaging it.

The duty factor is 10%, which means it's only rated to be powered for 10% of the time, so if the coil is powered for 1 minute, it will need to be left to cool down for 9 minutes, before it can be safely powered again.

Looking at the data sheet again, there are two different variants: one with a single coil, which will turn the relay on and off, depending on the polarity and the one which you have, with two coils: one off and another on. It's specified with the common connection connected to +V, but I wonder if it will work with the common connected to -V and with the logic reversed? It's quite likelu two coils wound in opposite directions, on the same bobbin.
 

Offline Arjunan M RTopic starter

  • Regular Contributor
  • *
  • Posts: 236
  • Country: in
Re: Drving a SPDT 2 coil latching relay
« Reply #15 on: June 17, 2019, 12:31:16 pm »
Does i need to care about back EMF in this relay?
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19938
  • Country: gb
  • 0999
Re: Drving a SPDT 2 coil latching relay
« Reply #16 on: June 17, 2019, 12:50:15 pm »
Does i need to care about back EMF in this relay?
Yes, back-EMF protection diodes will be required, as the datasheet doesn't say they're built-in.
 

Offline Arjunan M RTopic starter

  • Regular Contributor
  • *
  • Posts: 236
  • Country: in
Re: Drving a SPDT 2 coil latching relay
« Reply #17 on: June 17, 2019, 12:54:22 pm »
Does i need to care about back EMF in this relay?
Yes, back-EMF protection diodes will be required, as the datasheet doesn't say they're built-in.
Do i need to use a schotky diode?
If so will this be enough?
Here is the datasheet.
 

Offline Arjunan M RTopic starter

  • Regular Contributor
  • *
  • Posts: 236
  • Country: in
Re: Drving a SPDT 2 coil latching relay
« Reply #18 on: June 17, 2019, 12:55:51 pm »
Does i need to care about back EMF in this relay?
Yes, back-EMF protection diodes will be required, as the datasheet doesn't say they're built-in.
Do i need to use a schotky diode?
If so will this be enough?
Here is the datasheet.
I am already using that schotky diode if it's enough I don't have to increase the BOM cost.
 

Offline Arjunan M RTopic starter

  • Regular Contributor
  • *
  • Posts: 236
  • Country: in
Re: Drving a SPDT 2 coil latching relay
« Reply #19 on: June 17, 2019, 01:00:49 pm »
Does this mean that I can only energize the coil for max. of 10 ms :o.
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15339
  • Country: fr
Re: Drving a SPDT 2 coil latching relay
« Reply #20 on: June 17, 2019, 01:26:00 pm »
Does this mean that I can only energize the coil for max. of 10 ms :o.

No, as I get it, this is purely about the contacts themselves. I understand it as the max time from fully open to fully close and vice versa.
 
The following users thanked this post: Arjunan M R

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19938
  • Country: gb
  • 0999
Re: Drving a SPDT 2 coil latching relay
« Reply #21 on: June 17, 2019, 01:47:56 pm »
Does i need to care about back EMF in this relay?
Yes, back-EMF protection diodes will be required, as the datasheet doesn't say they're built-in.
Do i need to use a schotky diode?
If so will this be enough?
Here is the datasheet.
That diode is more than adequate. It doesn't need to be Schottky. Ordinary silicon will do and it doesn't even need to be rated to the full coil current, as it only carries a short pulse, when the coil current is interrupted. The only requirement is the reverse voltage exceeds the power supply voltage.
 
The following users thanked this post: Arjunan M R

Offline Arjunan M RTopic starter

  • Regular Contributor
  • *
  • Posts: 236
  • Country: in
Re: Drving a SPDT 2 coil latching relay
« Reply #22 on: June 17, 2019, 03:30:16 pm »
Does i need to care about back EMF in this relay?
Yes, back-EMF protection diodes will be required, as the datasheet doesn't say they're built-in.
Do i need to use a schotky diode?
If so will this be enough?
Here is the datasheet.
That diode is more than adequate. It doesn't need to be Schottky. Ordinary silicon will do and it doesn't even need to be rated to the full coil current, as it only carries a short pulse, when the coil current is interrupted. The only requirement is the reverse voltage exceeds the power supply voltage.
Is ther any disadvantage using Schottky.
I am already using that diode in the PSU.
It will be good if I can get away with it.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19938
  • Country: gb
  • 0999
Re: Drving a SPDT 2 coil latching relay
« Reply #23 on: June 17, 2019, 03:38:09 pm »
Does i need to care about back EMF in this relay?
Yes, back-EMF protection diodes will be required, as the datasheet doesn't say they're built-in.
Do i need to use a schotky diode?
If so will this be enough?
Here is the datasheet.
That diode is more than adequate. It doesn't need to be Schottky. Ordinary silicon will do and it doesn't even need to be rated to the full coil current, as it only carries a short pulse, when the coil current is interrupted. The only requirement is the reverse voltage exceeds the power supply voltage.
Is ther any disadvantage using Schottky.
I am already using that diode in the PSU.
It will be good if I can get away with it.
There is no disadvantage of using a Schottky diode. All the diode does is provide a path for the current to keep flowing, when the coil is de-energised. That diode is perfectly adequate and if you can cut down on the BoM cost by using the same part, then good.
 

Offline Arjunan M RTopic starter

  • Regular Contributor
  • *
  • Posts: 236
  • Country: in
Re: Drving a SPDT 2 coil latching relay
« Reply #24 on: June 17, 2019, 03:42:03 pm »
Does i need to care about back EMF in this relay?
Yes, back-EMF protection diodes will be required, as the datasheet doesn't say they're built-in.
Do i need to use a schotky diode?
If so will this be enough?
Here is the datasheet.
That diode is more than adequate. It doesn't need to be Schottky. Ordinary silicon will do and it doesn't even need to be rated to the full coil current, as it only carries a short pulse, when the coil current is interrupted. The only requirement is the reverse voltage exceeds the power supply voltage.
Is ther any disadvantage using Schottky.
I am already using that diode in the PSU.
It will be good if I can get away with it.
There is no disadvantage of using a Schottky diode. All the diode does is provide a path for the current to keep flowing, when the coil is de-energised. That diode is perfectly adequate and if you can cut down on the BoM cost by using the same part, then good.
Yes I can cut down Bom cost because the minimum quantity i can order is 10.I only need about 6 of them.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf