Previous in Forum: High Voltage Alarm Show After Synchronizing Two Generators   Next in Forum: Why Current Transformer Polarity Test is Important?
Close
Close
Close
22 comments
Rate Comments: Nested
Power-User

Join Date: Jan 2011
Location: Scotland
Posts: 361

Replacing A Mechanical Relay With A Mosfet

02/19/2012 1:01 PM

I bought a mechanical relay kit to use for a time lapse camera. It works well but I can't use it at night because of the noise it makes. Is it possible to use a mosfet instead? The relay component gets 12v supplied to it on 2 contacts.

Here's the diagram.

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 - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15602
Good Answers: 982
#1

Re: Replacing A Mechanical Relay With A MOSFET

02/19/2012 3:22 PM

Yes, one can replace a mechanical relay with a solid state device if one knows what is being turned ON/OFF.

__________________
"Don't disturb my circles." translation of Archimedes last words
Register to Reply
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#2

Re: Replacing A Mechanical Relay With A Mosfet

02/19/2012 3:57 PM

Is this a clandestine operation?

__________________
All living things seek to control their own destiny....this is the purpose of life
Register to Reply
Power-User

Join Date: Jan 2011
Location: Scotland
Posts: 361
#3
In reply to #2

Re: Replacing A Mechanical Relay With A Mosfet

02/19/2012 4:13 PM

No, it is a time lapse operation. I have removed the relay and connected the shutter wires to the LED and that works.

Register to Reply
Power-User

Join Date: Aug 2008
Location: Melbourne, Australia
Posts: 476
Good Answers: 32
#4
In reply to #3

Re: Replacing A Mechanical Relay With A Mosfet

02/19/2012 10:43 PM

Geez - you're brave. I wouldn't connect a voltage source into an unknown camera circuit for fear of blowing something up. Ussually the camera is expecting "voltage free" contacts. Replace the relay with a reed relay - that's what alarm sensors use - almost silent.

__________________
johny451
Register to Reply
Member

Join Date: Dec 2011
Location: Sydney Australia
Posts: 7
#5

Re: Replacing A Mechanical Relay With A Mosfet

02/19/2012 11:27 PM

Google 'solid state relay'

Register to Reply
Power-User

Join Date: Sep 2011
Posts: 267
Good Answers: 7
#6

Re: Replacing A Mechanical Relay With A Mosfet

02/19/2012 11:39 PM

I've used these: http://www.aikenamps.com/VTL5C1.pdf an optoisolator with leads. This needs 20 mA with a 2V drop, so the resistor needed <= (12-2)/20e-3 ohm

At some voltage it may not work. An LM334 st at 10 mA with a resistor would increase the range. http://www.national.com/mpf/LM/LM334.html#Overview


Observe polarity with the LED.

Register to Reply
Guru

Join Date: Jun 2011
Location: Phnom Penh
Posts: 4019
Good Answers: 102
#7

Re: Replacing A Mechanical Relay With A Mosfet

02/20/2012 12:10 AM

Your saying that when you put volts (from across the LED) onto the shutter wires the shutter operates?

How about when you put the shutter wires onto the screw terminal of the relay's contacts, does that work?

Simple answer to your question is to get a solid state relay with clean, voltage free contacts to emulate the relay's function identically.

But if it is voltage across those wires that you need to trigger the shutter then you already have the answer. Forget the relay and use the LED voltage (that you have found somehow without releasing any smoke). Silence the relay by lifting one of its coil legs from the board or removing it completely.

Tell us more about the shutter wires....

__________________
Difficulty is not an obstacle it is merely an attribute.
Register to Reply
Power-User

Join Date: Jan 2011
Location: Scotland
Posts: 361
#8
In reply to #7

Re: Replacing A Mechanical Relay With A Mosfet

02/20/2012 5:40 AM

The shutter wires give out 0.7 volts and the LED output gives 1.5 volts. I just removed the relay and connected the shutter wires to the LED. The camera has been doing a time lapse all night and nothing has been damaged.

Register to Reply
Guru

Join Date: Jun 2011
Location: Phnom Penh
Posts: 4019
Good Answers: 102
#9
In reply to #8

Re: Replacing A Mechanical Relay With A Mosfet

02/20/2012 6:10 AM

So, if it is working reliably the way you've managed to sprag it why do you need a solid state relay solution?

IF you connect the two shutter conductors together does the shutter operate?

Is the connection across the LED, ie the working (interim?)solution, polarity dependent or will the shutter operate regardless of wire sense?

What type of camera are you using? Most cameras have built in timers these days.

What will you be taking time lapse photos of?

__________________
Difficulty is not an obstacle it is merely an attribute.
Register to Reply
Power-User

Join Date: Jan 2011
Location: Scotland
Posts: 361
#12
In reply to #9

Re: Replacing A Mechanical Relay With A Mosfet

02/20/2012 12:55 PM

I no longer need this solid state solution, although it would be better to avoid damage to a more expensive camera.

The shutter does operate when the wires are connected.

The shutter operates regardless of the polarity to the LED

I am using a vivicam 9128 with a modified lens holder and a wide angle lens. No high quality camera that I have ever seen has a time lapse function.

I am making time lapses of the weather outside. I plan to create a time lapse over a month.

Register to Reply
Guru
Popular Science - Cosmology - New Member Technical Fields - Technical Writing - New Member Engineering Fields - Energy Engineering - New Member Engineering Fields - Electrical Engineering - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Electromechanical Engineering - Old Member, New Association

Join Date: Apr 2008
Location: Lexington, KY
Posts: 1639
Good Answers: 73
#10

Re: Replacing A Mechanical Relay With A Mosfet

02/20/2012 12:14 PM

The circuit you had (with the relay) uses what is commonly referred to as "dry contacts" meaning that they have no other voltage or common connection to your timer circuit. And your dry contacts will generally be normally open and common meaning that the trigger happens when you connect the two together.

With that being the case, I would rather see a simple NPN transistor in a common emitter configuration used in place of your contacts. The collector would connect to your camera leadwire that is more positive and the other leadwire would connect to the emitter. Then supply a little current in the base (via your LED) and any potential for damage remains external.

While your current setup may be working, you are risking damage to an internal transistor which will then disable the ability to use the camera in this way.

Since your circuit seems to work, you might reduct the risk by placing another 100 ohm, ¼ Watt resistor in series with one leadwire. But we are still dealing with unknowns and it might not be enough or it may be too much depending on what else is inside. The advantage of some type of transistor is that it lets you control circuits without mixing currents, or in some cases voltages.

__________________
A great troubleshooting tip...."When you eliminate the impossible, whatever remains, however improbable, must be the truth." Sir Arthur Conan Doyle
Register to Reply
Power-User

Join Date: Jan 2011
Location: Scotland
Posts: 361
#11
In reply to #10

Re: Replacing A Mechanical Relay With A Mosfet

02/20/2012 12:47 PM

I actually tried your resistor idea and it reduced the voltage to about that of the shutter wires. But for some strange reason, the resistor being there stopped the camera from responding to the voltage output of the timer circuit.

Register to Reply
Power-User

Join Date: Sep 2011
Posts: 267
Good Answers: 7
#13

Re: Replacing A Mechanical Relay With A Mosfet

02/20/2012 2:16 PM

The opto-isolator solution of mine is the best, It's effectively what you wanted, a MOSFET solution. You gain the isolation and it won't harm an expensive camera and the output won't be polarity sensitive. There are versions in a DIP package, but this would be easier for you to deal with. You could easily just place it on the PC board where the relay went with a resistor soldered inline. Place it with a resistor where the coil was, polarity sensitive on the LED side.

If you don't have and want to add a LED indication, you could do that too.

Register to Reply
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15602
Good Answers: 982
#14

Re: Replacing A Mechanical Relay With A Mosfet

02/20/2012 4:15 PM

Why do people continue to post their idea of a solution after the OP already declares victory? I'll admit that there are separate advantages to using an opto-coupler, a solid state relay, a MOSFET, a BJT and a few hundred other techniques to skin this cat. But any advantage becomes a moot point once the circuit works without damaging the next device in the chain.

My only criticism of the OP is that I'd been a little more methodical in characterising the camera input circuit before directly connecting to the timer circuit. Along with the voltage measurements the OP did, I'd include some current and load impedance measurements before making a direct connection. These tests would've told me if a direct connection was a safe option to both the timer and camera circuits, before connecting.

The OP got lucky. But I'd rather be lucky than good any day.

__________________
"Don't disturb my circles." translation of Archimedes last words
Register to Reply Off Topic (Score 4)
Guru
Panama - Member - New Member Hobbies - CNC - New Member Engineering Fields - Marine Engineering - New Member Engineering Fields - Retired Engineers / Mentors - New Member

Join Date: Dec 2006
Location: Panama
Posts: 4273
Good Answers: 213
#15
In reply to #14

Re: Replacing A Mechanical Relay With A Mosfet

02/20/2012 4:37 PM

"Why do people continue to post their idea of a solution after the OP already declares victory...there are...a few hundred other techniques to skin this cat..."

One reason I continue monitoring the threads after the "OP declares victory" is because there may be some techniques of interest for future reference for similar projects I may encounter...I like collecting these ideas...

So, keep the posts coming!

Register to Reply Off Topic (Score 5)
Power-User

Join Date: Jan 2011
Location: Scotland
Posts: 361
#16
In reply to #14

Re: Replacing A Mechanical Relay With A Mosfet

02/20/2012 4:40 PM

The current on the shutter wires from the timer circuit is about 20 milliamps.

Register to Reply Off Topic (Score 5)
Power-User

Join Date: Aug 2008
Location: Melbourne, Australia
Posts: 476
Good Answers: 32
#17
In reply to #14

Re: Replacing A Mechanical Relay With A Mosfet

02/20/2012 5:32 PM

"Why do people continue to post their idea of a solution after the OP already declares victory?"

I have wondered that myself off and on but then I realised that I often come back to read these post-success solutions. When I begin to tire of the responses, I unsubscribe from the thread.

__________________
johny451
Register to Reply Off Topic (Score 5)
Guru

Join Date: Jun 2011
Location: Phnom Penh
Posts: 4019
Good Answers: 102
#18

Re: Replacing A Mechanical Relay With A Mosfet

02/20/2012 8:27 PM

I'm still wondering how presenting 1.5V, independent of polarity, makes a trigger circuit that wants to see an open or a short actually works.

Any ideas people?

OP has an adventurous spirit. I like that. Blind to the perils he finds simple solutions. You gotta get lucky sometimes....

__________________
Difficulty is not an obstacle it is merely an attribute.
Register to Reply
Power-User

Join Date: Aug 2008
Location: Melbourne, Australia
Posts: 476
Good Answers: 32
#19
In reply to #18

Re: Replacing A Mechanical Relay With A Mosfet

02/20/2012 8:34 PM

My guess is that the Camera manufacturer, aware that folk would connect all kinds of garbage to it, used a bi-diorectional opto-coupler for the input (like an IL766). Provide a pull up to one side and run the other side to the trigger input. The opto-coupler would then trigger on "some" voltage sources as well as shorts to ground.

Make some trigger sources provide voltage??? Agree with the luck. If I did I would have blown the **&^% out of it.

__________________
johny451
Register to Reply
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15602
Good Answers: 982
#20
In reply to #19

Re: Replacing A Mechanical Relay With A Mosfet

02/20/2012 10:24 PM

I like the opto-coupler suggestion. The 20 mA input current would agree with that, too. For the sake of another circuit possibility, this may just be going into the clamped FET input of the microcontroller. The 20mA in this scheme will be the input resistance and the clamping diode protection.

__________________
"Don't disturb my circles." translation of Archimedes last words
Register to Reply
Power-User

Join Date: Aug 2008
Location: Melbourne, Australia
Posts: 476
Good Answers: 32
#21
In reply to #20

Re: Replacing A Mechanical Relay With A Mosfet

02/20/2012 11:03 PM

I keep making the mistake of reading your signature....

__________________
johny451
Register to Reply Off Topic (Score 5)
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15602
Good Answers: 982
#22
In reply to #21

Re: Replacing A Mechanical Relay With A Mosfet

02/20/2012 11:12 PM

It's a quote from one of my favorite composer/musician/satirists.

I'm due to change it but have yet to decide on a suitably weird phrase.

__________________
"Don't disturb my circles." translation of Archimedes last words
Register to Reply Off Topic (Score 5)
Register to Reply 22 comments
Copy to Clipboard

Users who posted comments:

cwarner7_11 (1); hydrogenhead (5); Johny451 (4); KeepItSimpleStupid (2); Mark Lesha (1); NotUrOrdinaryJoe (1); redfred (4); SolarEagle (1); Wal (3)

Previous in Forum: High Voltage Alarm Show After Synchronizing Two Generators   Next in Forum: Why Current Transformer Polarity Test is Important?

Advertisement