Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 4th August 2004, 05:31 PM   (permalink)
Default Relay acting screwy

I am using a relay to switch the voltage from a battery to a motor.

The signal to the coil of the relay comes from a pic by way of a transistor.


The problem is when I wire up the circuit it comes on permenantly, instead of 0.1seconds like the signal to the coil is.

When I disconnect the battery and reconnect it is off again until another 0.1s pulse puts the relay on permenantly again.

Its not a latching relay or anything like that!!

Have I broken the relay?

The power I am switching is a little higher than what its meant to switch.


Any help on this will be appreciated,

Thanks
John
__________________
The first rule of mstechca club is do not talk about mstechca club.
http://www.electro-tech-online.com/s...induser&u=1245
2camjohn is offline  
Old 4th August 2004, 05:43 PM   (permalink)
Default

a diagram would be helpful. NPN or PNP transistor? How are you driving the transistor? Does the base have a pull-up ( or down ) resistor?
TillEulenspiegel is offline  
Old 4th August 2004, 06:07 PM   (permalink)
Default

when driving higher current with relay it can happen that contacts weld.
this doesn't seam to be the case since removing power fixes the problem.
what is the part number of the transistor (could it be SCR)?
it could be the circuit where transistor doesn't turn off completelly
but actually I think the likely problem is simply too fast signalfor the relay.
what is duty cycle of the signal?
panic mode is offline  
Old 4th August 2004, 06:19 PM   (permalink)
Default

It looks a bit like this



The transistor is a BC107b, it hasnt failed me yet!!!



The same design works fine with a 9v pp3 and lower power motor.

But with 6 AAs and a more powerful motor I get the symptoms I described above.


The signal on for 0.1seconds only occurs a few times per second, so im sure it has time for the contacts to open if they were going to.
__________________
The first rule of mstechca club is do not talk about mstechca club.
http://www.electro-tech-online.com/s...induser&u=1245
2camjohn is offline  
Old 4th August 2004, 07:01 PM   (permalink)
Default

You should put a reversed diode in parallel with the relay coil to protect your transistor...
Most likely your transistor is damaged
Exo is offline  
Old 4th August 2004, 07:07 PM   (permalink)
Default

Sorry Exo, there is a protection diode in my circuit, just not on the diagram.



Its not scientific I know but this relay doesnt sound as loud as the others.
Maybe its broken from new


Does high current cause the symptoms I described?
__________________
The first rule of mstechca club is do not talk about mstechca club.
http://www.electro-tech-online.com/s...induser&u=1245
2camjohn is offline  
Old 4th August 2004, 07:08 PM   (permalink)
Default

Quote:
You should put a reversed diode in parallel with the relay coil to protect your transistor...
Most likely your transistor is damaged
is that to protect the transistor from the contact arc?
Johnson777717 is offline  
Old 4th August 2004, 07:11 PM   (permalink)
Default

Quote:
Originally Posted by Johnson777717
Quote:
You should put a reversed diode in parallel with the relay coil to protect your transistor...
Most likely your transistor is damaged
is that to protect the transistor from the contact arc?
No, The relay is a coil, when you turn it off it will generate a voltage spike with reversed polarity... this will damage the transistor...
Exo is offline  
Old 4th August 2004, 07:28 PM   (permalink)
Default

So my transistor was protected and Johnson is trying his best to hijack my thread.

Im still here wondering how switching alot of current can cause a temporary weld, which goes away when the power goes off.

I just put a nearly dead PP3 instead of 6AAs and the relay acts normally.
__________________
The first rule of mstechca club is do not talk about mstechca club.
http://www.electro-tech-online.com/s...induser&u=1245
2camjohn is offline  
Old 4th August 2004, 08:00 PM   (permalink)
Default

Man I hate to translate the conventions between US and Europe, guess thats what I get for bein a Yank on a Brit board

A temp weld is not the problem.

I don't know what port your using IIRC pics are tri state I/O devices with certain ports having a "weak " Pull-up internally. The transistor your using is general purpose but has a very low ICBO so once turned on it may stay on due to that low pull up. That's why I mentioned a pull-up ( or down) resistor I don't know the intrinsic state of the PIC I/O lines so once again you will have to bother Nigel. My suggestion off the cuff is find a less sensitive switching transistor and/or slap a 10k ohm resistor on the base of the transistor ( after the 1k to either rail ( since I don't now the logic state of the output port) and as others have said add a reversed biased diode to avoid back emf. As an aside , I never interface TTL-CMOS controllers with relays anymore I use optos . Just my opinion, avoids mechanics, back emf, wide spectrum RFI ( from arc) .
TillEulenspiegel is offline  
Old 4th August 2004, 08:45 PM   (permalink)
Default

2camjohn,

If the relay doesn’t sound as loud as the others, make sure it’s the correct coil resistance (Voltage). Maybe you have some 9Volts and some 12Volts?

Ante :roll:
ante is offline  
Old 4th August 2004, 10:55 PM   (permalink)
Default

As I see it you need to find out where the problem is happening, this is easily done - for a start try removing the transistor and manually turning the relay ON and OFF using a piece of wire from where collector and emitter of the transistor were connected. If it still holds ON too long, obviously it's a relay problem.

If it doesn't hold ON too long, obviously it's not the relay - so replace the transistor but remove the resistor feeding the base. Use a 1K manually from the base to +ve and check the relay switching - this will proof if the transistor driver is OK or not.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 5th August 2004, 04:42 AM   (permalink)
Default

there is no suppression circuit for the motor so your PIC might be locking up. do you have capacitors accross pic power terminals?
panic mode is offline  
Old 5th August 2004, 12:46 PM   (permalink)
Default

Thanks for all the help guys, I will do the tests now.

I thought the test I have already performed was sufficient to rule out the transistor: Using an almost dead pp3 to power the motor stopped the relay holding ON at all.


The relay is definately a 6V, but the click is nowhere near as audible as other identical relays I have on other boards.


I like the idea of using optocouplers, but they seem to be such tiny devices.
Can they handle alot of power?

Does anyone have any links to websites which cover optocouplers.
Eventually I want to be able to switch 2A at 9V with a 6V signal.

Ill post back once I have done the tests.
Cheers
John
__________________
The first rule of mstechca club is do not talk about mstechca club.
http://www.electro-tech-online.com/s...induser&u=1245
2camjohn is offline  
Old 5th August 2004, 02:39 PM   (permalink)
Default

Quote:
So my transistor was protected and Johnson is trying his best to hijack my thread.
Relax, just asking a question.
Johnson777717 is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 01:35 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker