Infrared proximity detector usign 555 timer

Discussion in 'The Projects Forum' started by youngboss, Oct 23, 2012.

  1. youngboss

    Thread Starter New Member

    Oct 5, 2012
    12
    0
    [​IMG]
    can some one help me understand how the transistor works towards the 9v relay????
    the one that has the 0.47uF cap connected
    the 555 timer is driving about 36kHz right now
    soooo does the module's 2.2kohm but and the 0.47uf has to be set to this frequency like a lowpass filter???
     
  2. wayneh

    Expert

    Sep 9, 2010
    12,141
    3,054
    Right, the cap smooths the voltage appearing on the base of the transistor, which in turn controls a larger current to activate the relay. Rule of thumb; the current flowing into the base is 10% of the current through the collector-emitter.
     
    youngboss likes this.
  3. Sensacell

    Well-Known Member

    Jun 19, 2012
    1,131
    267
    The RC just provides a bit of smoothing to prevent the relay from chattering.

    The IR module does not output 36 KHZ, just a voltage level. In this circuit, the output will be noisy at the threshold of detection, hence the RC on the transistor base.
     
    youngboss likes this.
  4. THE_RB

    AAC Fanatic!

    Feb 11, 2008
    5,435
    1,305
    It won't work as the output of the IR sensor is a PULL DOWN only. You need to add a pullup resistor, but then it will work backward, ie the relay will be on when there is no IR detected!

    Also many sensors will have gain issues if you transmit a continuous signal as your 555 does.

    Finally, that sensor is totally wrong for proximity as it will self-adjust gain and is very sensitive. It will just as likely detect a wall at 30 feet or a finger at 1 inch. And it's no good for a break beam sensor as the gain is so high it will detect all the splash IR even when something is directly in the path of the "beam".

    Please say what you need the detector to detect, and in what environment. I'm sure people can suggest a better setup.
     
    youngboss likes this.
  5. youngboss

    Thread Starter New Member

    Oct 5, 2012
    12
    0
    soo please correct me if im wrong guys
    the cap is delaying the voltage to charge up so that the transistor would go on non -abruptly right??
    sooo when the module aint receiving any signals than there is no voltage coming out of it
    that means no current through the transistor making it a open circuit, no current through the relay keeping it off
    when there is voltage coming out of the module
    cap charges up with i guess 0.7v current going through bias to emitter turning on the transistor, and current runs through the relay switching it on
     
  6. youngboss

    Thread Starter New Member

    Oct 5, 2012
    12
    0
    thanks RB
    im trying to detect an ogject about a meter away only
    like set it up in front of a desk and turns on when someone sits down on their seat
    right now im planning to set up the LED and the module pointing the same direction so that the IR beam will bounce off the object towards the module hence turning the module on
     
  7. wayneh

    Expert

    Sep 9, 2010
    12,141
    3,054
    There's an internal 100k pull-up resistor in the detector, so there will be a voltage when no signal is received. it's a high impedance and will be pulled down by your loading. As RB notes, without external pull-up, you'll never see any voltage output to trip the relay. When it sees a signal, it will pull the voltage low, not high.

    I don't think the sensor's internal output transistor can sink enough current to trip your relay directly, but the datasheet I found wasn't clear (to me) on that.
     
  8. youngboss

    Thread Starter New Member

    Oct 5, 2012
    12
    0
    sooo i should put a resistor to Vcc on the base side of my transistor????

    is there any way to predict how long of a distance it would detect?
     
  9. Sensacell

    Well-Known Member

    Jun 19, 2012
    1,131
    267
     
    youngboss likes this.
Loading...