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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/11/05 02:39
Read: times


 
#91350 - FET solution
Responding to: ???'s previous message
If you are concerned about the relay turning on momentarily at power up, you can modify the FET driver to add a delay element like so:



V1 is the output of the 8051 port pin, R3 is a pull-down to ground, while the combination of R4 and C3 adds a delay element to the FET turn-on time. M3 can be any enhancement mode NFET so long as the thershold voltage is around 2-4V, and most FETS have diode D4 built in. L1 is the relay coil and R2 is a model of the relay coil's resistance and is only used for SPICE simulation purposes (don't include it).

A simulation with power being applied at t=1ms is:


As you can see, you have roughly 3 ms from the time power is applied to the time the relay turns on in which to set the output port pin low and prevent the relay from activating. Even on a traditional 12 cycle 8051 clocked at 1 MHz you still have 250 free instruction cycles in which to pull the port pin low before the relay activates.

You may still want to add a buffer between the 8051 port pin and the rest of the circuit to prevent any kind of back EMF caused by the relay turning on and off from affecting the 8051. And come to think of it, most buffers have /OE pins which tri-state the outputs if pulled high. So if you don't mind using two port pins, tie one to the /OE line and one to the buffer input. Upon reset, the buffer outputs will be high-Z until you instruct the uController to pull the port pin connected to the /OE line low.

List of 29 messages in thread
TopicAuthorDate
Driving 12V Relay W/ 8051            01/01/70 00:00      
   Ammended Image Post            01/01/70 00:00      
      that get you nowhere.            01/01/70 00:00      
   A few things            01/01/70 00:00      
      No, that is not so.            01/01/70 00:00      
         an 8751, perhaps            01/01/70 00:00      
   Pull Ups and Base Current            01/01/70 00:00      
      ULN2003            01/01/70 00:00      
   door lock diagram            01/01/70 00:00      
   One more method...            01/01/70 00:00      
      Why not use 2N7000            01/01/70 00:00      
         2N7000 Not Good By Itself            01/01/70 00:00      
            You have a point            01/01/70 00:00      
               FET solution            01/01/70 00:00      
                  Elegant?            01/01/70 00:00      
                     True..            01/01/70 00:00      
               It Can Be Small            01/01/70 00:00      
                  Zetex            01/01/70 00:00      
                  Could it be smaller?            01/01/70 00:00      
                     Think so.            01/01/70 00:00      
                     Onboard Resistors            01/01/70 00:00      
                     Digital transistors            01/01/70 00:00      
                        Missed            01/01/70 00:00      
      an added note            01/01/70 00:00      
         solved by Allegro            01/01/70 00:00      
            part number for Allegro chip?            01/01/70 00:00      
               take your pick            01/01/70 00:00      
                  I missed a few            01/01/70 00:00      
            It was a note :)            01/01/70 00:00      

Back to Subject List