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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/13/09 04:44
Read: times


 
#167159 - Similar to how you let an 8051 output sink to ground
Responding to: ???'s previous message
An open collector will always be low, unless there is something that tries to hold it high. It needs a pull-up circuit - normally a resistor to VCC. Could be a resistor + a LED in series. Could be a relay winding in parallel with a free-wheel diode. Could be a loudspeaker. The important thing is that a open collector or open drain signal does not work, unless you externally connect a positive voltage so that there will be any current to sink.

If you want to connect the signal to your processor, then you will have to also have a 10k resistor to +5V. When the open-collector output is inactive, then the resistor will hold the signal high. When the open-collector output is active, it will sink way harder than the 10k resistor, so the signal will be low. The external 10k resistor will be similar to the high-impedance pull-up resistor in a traditional 8051 input/output pin.

If you on the other hand wants the alarm output to control a LED, then you connect something like a 470 ohm resistor to +5V and the other side to your diode. But instead of connecting the other side of the diode to ground, you should connect it to the alarm output of the PIR. When the alarm output is inactive, it will not sink any current. The LED will get +5V on both anode and cathode, so it will not light. When the alarm output is active, it will short to ground, so the current will go from +5V through the resistor and then through the LED and into ground through the alarm output. To use an open collector output to light a LED, you use it like you would normally let a 8051 pin handle a LED, i.e. by letting the pin sink the current to ground.

List of 39 messages in thread
TopicAuthorDate
PIR Sensor Does not work            01/01/70 00:00      
   Open-collector alarm output            01/01/70 00:00      
      Yes I know            01/01/70 00:00      
         How do you know it doesn't work?            01/01/70 00:00      
            IT DOES NOT TURN OFF THE LED            01/01/70 00:00      
               Forgot about the "modify" timestamp?            01/01/70 00:00      
                  You are really sick            01/01/70 00:00      
                     intuition problematic for technical discussion            01/01/70 00:00      
                  That's always the trouble with allowing editing!            01/01/70 00:00      
                     Editing is not the problem...            01/01/70 00:00      
                     Isn't this ?            01/01/70 00:00      
         Sensitive pir, expected behaviour or sw error?            01/01/70 00:00      
         Use a transition-activated external interrupt            01/01/70 00:00      
            Look            01/01/70 00:00      
               maybe            01/01/70 00:00      
                  Generation gap ?            01/01/70 00:00      
                     Threshold            01/01/70 00:00      
                        Menus ?            01/01/70 00:00      
                           Cheap portable            01/01/70 00:00      
                              Not just cheap            01/01/70 00:00      
                                 menus            01/01/70 00:00      
                                    Not easy if you don't understand the terminology            01/01/70 00:00      
                                       Lessons            01/01/70 00:00      
                                          Own curiosity is the most important factor            01/01/70 00:00      
                                             True words.            01/01/70 00:00      
                           Lots of fine print            01/01/70 00:00      
                              back to the topic            01/01/70 00:00      
                                 Similar to how you let an 8051 output sink to ground            01/01/70 00:00      
                                 What is the purpose of your scheme?            01/01/70 00:00      
                              age            01/01/70 00:00      
                                 It's all a matter of what you're accustomed to using            01/01/70 00:00      
                                    USB control box much wanted            01/01/70 00:00      
   from ready made            01/01/70 00:00      
   I have used it ones            01/01/70 00:00      
      Confusing...            01/01/70 00:00      
         I am sure            01/01/70 00:00      
            inside PIR            01/01/70 00:00      
   you need a frnsel lens            01/01/70 00:00      
      Sherif Gamal            01/01/70 00:00      

Back to Subject List