Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/29/06 03:23
Read: times


 
#115223 - Do not connect PNP with 12V to port pin
Responding to: ???'s previous message
Hello Manoj,
I am assuming tr557 is actually BC557, a PNP transistor, you should not connect a PNP with 12V to the port pin of the 89x microcontroller, since the port pin will sink the 12V through the base, by now your port pin would be damaged or partially damaged, or probably the base resistor has limited the current flow into the port pin.

The uasual way (which I have implemented in hundreds of boards) is to implement the following:

1. Connect +12V to relay coil. connect the other end of the coil
to the collector of a 2N2222A. (ensure that you place a diode
across the coil).Ground the emitter of the 2N2222A, pull up
the base of the 2N2222A with a 10K resistor to the +12V.

2. Connect collector of a BC547(NPN) transistor to the base
of the 2N2222A. Ground the emitter of the BC547. Pull up the
base of BC547 with a 4K7 to +5V (Vcc of the microcontroller).
Connect a 2K7 from the port pin of the microcontroller to the
base of the BC547.

You can also use another BC547 in place of the 2N2222A, if the relay current is small, refer the data sheets of the transistors.

Regards,
John.








List of 10 messages in thread
TopicAuthorDate
Trying to drive 12v relay using tr557            01/01/70 00:00      
   Search!            01/01/70 00:00      
      !Search            01/01/70 00:00      
   Use Darlington pair            01/01/70 00:00      
      Specifically not ULN2002            01/01/70 00:00      
   What is tr557?            01/01/70 00:00      
   Deja vu            01/01/70 00:00      
      Do not connect PNP with 12V to port pin            01/01/70 00:00      
         12V relay with BC547 drive Thanks to all            01/01/70 00:00      
   Mr. Karas's Relay Drive Circuit            01/01/70 00:00      

Back to Subject List