Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Relay Problem with AT89s52

Status
Not open for further replies.

torana

Member level 2
Joined
Sep 11, 2011
Messages
51
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,683
HII,

MY CONTROLLER IS AT89S52. I AM TRYING TO DRIVE 4 Nos RELAY.
transistor IS bc547.

WHEN EVER MY CONTROLLER IS GIVING HIGH PULSE TO BASE OF BC547 (THROUGH 10 RESISTOR),

THEN RELAY GETS OPERATE AND AUTOMATICALLY AGAIN IT CHANGE TO PREVIOUS CONDITION.

SOME TIME IT BECAME HANG. SO PLS HELP ME. THANK YOU



 

shamikrudra

Full Member level 5
Joined
Nov 16, 2009
Messages
263
Helped
21
Reputation
42
Reaction score
18
Trophy points
1,308
Location
Kolkata, India
Activity points
2,657
please give some more details
which port is used for driving the transistor base?
is your problem random or at a particular condition?
place one resistor in between emitter and ground and check the result.
 

torana

Member level 2
Joined
Sep 11, 2011
Messages
51
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,683
please give some more details
which port is used for driving the transistor base?
is your problem random or at a particular condition?
place one resistor in between emitter and ground and check the result.

thank you...i am using port2 of at89s52. my problem is not at a particular condition. it is random.
 

kak111

Advanced Member level 4
Joined
Mar 30, 2011
Messages
1,366
Helped
933
Reputation
1,868
Reaction score
907
Trophy points
1,413
Location
Finland
Activity points
10,869
First change Rb 10kohm resistors to 1 kohm
 

    V

    Points: 2
    Helpful Answer Positive Rating

ark5230

Advanced Member level 3
Joined
Jun 29, 2009
Messages
858
Helped
163
Reputation
324
Reaction score
140
Trophy points
1,323
Location
India
Activity points
6,145
Placing 10K between Emitter and Ground is not likely to work as the total current through the relay will then bee too small. Check the relay resistance, the required current and the transistor is capable of providing that. Also take care of the back emf from the relay winding connect a damping diode across relay winding. If the switching currents are also sizable attend to the spikes generated. This is most likely as the problem is not systematically repeating and is erratic.
 

ashokok

Member level 4
Joined
Jan 1, 2008
Messages
73
Helped
22
Reputation
44
Reaction score
16
Trophy points
1,288
Location
INDIA
Activity points
1,601
What is the load your driving?
with out load is the system working ok
 

pranam77

Advanced Member level 5
Joined
Apr 22, 2008
Messages
2,786
Helped
553
Reputation
1,104
Reaction score
371
Trophy points
1,363
Location
INDIA
Activity points
16,415
Atmel 89 series are Negetaive or GND favored chips. Thus they prefer gnd as inputs or they deliver GND or negetive as output too. Thus the posetive volatge what you get as output is not devilvered by the Chip. Its a voltage whiich is passing through the internal pullup resistor when the PIN floats. When activated the pin will pull itself to GND. Thus you may use a PNP transistor which will trigger the NPN transistor (Combination of two) OR use a NPN (Port <2K2> Base) Collector >10K> Vcc, Emitter > GND. Next NPN transistor Base > To First Tr collector, Emitter GND, Collector Relay as you have connected now.
Cheers
 

shamikrudra

Full Member level 5
Joined
Nov 16, 2009
Messages
263
Helped
21
Reputation
42
Reaction score
18
Trophy points
1,308
Location
Kolkata, India
Activity points
2,657
This can be done by darlington pair like TIP122
I have used it in my circuit to drive college bell relay, working fine.
 

adnansarwar2050

Member level 2
Joined
Oct 12, 2011
Messages
52
Helped
7
Reputation
14
Reaction score
7
Trophy points
1,288
Location
Islamabad
Activity points
1,589
If you have 12V relay then apply 18 volts because there is some voltage drop across collector to emitter.
 

abhignans

Newbie level 6
Joined
Feb 1, 2012
Messages
13
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,401
instead of using an 10k resistor use this combination
8351712800_1352639761.jpg
 

Attachments

  • 86_1245521291.jpg
    86_1245521291.jpg
    43.3 KB · Views: 22

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top