npn reflective photo sensor input


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hi Armadus,
    If I read the schematic correctly, from the data sheet, this PIR is supposed to sink the current when switched on, and so should be connected to the pic pin directly. As it is wired, it wil merely reduce the voltage to the calculated divider voltage, roughly 1/5 of the 24v supply, the rest of the time the pin will be somewhere between that value and 24v depending upon how much current the pic is sinking through the resistors.
    JS
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    Armadus, The sensor is an open collector device. Just provide a pullup resistor of about 4.7k to +5 volts and you are good to go......

    Dave Purola,
    N8NTA

Similar Threads

  1. Reading A Photo Resistor using ADC
    By jessey in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 25th January 2007, 10:28
  2. Replies: 5
    Last Post: - 2nd March 2006, 10:21

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts