8051 hardware problem

Status
Not open for further replies.

Where r u from?
The one soloution for your problem is that use pnp transistor for this problem. but becareful as if u tried to on a 12volt relay with pnp transistor the 12 volt will flow towards the base of the transistor your transistor is at 5 volt so this 12volt can flow in your mcu through base and your mcu will burn so you can use pnp for 5 volts only. the other and the most simplest solution for driving 12 or 30volt relays is to attach another transistor with for driving 12volt or 30volt relay or something. The complete solution for your problem is ******** UDN2982 ********* . It is easily available.

---------- Post added at 18:50 ---------- Previous post was at 18:46 ----------

Just check datasheet of UDN2982.
 

Its fact but often people dont design that way. We used to tackle this problem by delaying power supply to external circuits. Search for switch on delay circuits. Or by asighning a mcu pin providing a small delay, output goes to 0 which in turn switches power rail to relays etc through transistor switching. At first mcu pins are high by default until set to output 0 in software. This delay causes problem .
 

Use inverter like 7414 in between your relay and controller. this will solve your problem very easily. and your controller will be safer.
 

as FVM suggested you can invert your signal.. you can do it in your code or in the hardware..

at power on state the port pins will go high and if you want to avoid that use logic low or 0 to trigger your external circuitry and logic high or 1 to disable something..
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…