12F629 LDR - Light Dependant Resistor


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    You don't really mean "-5V" in the schematic... call it "ground" or something... else we see the little gears in the IC come flying out...

    Mike Tripoli
    Last edited by mtripoli; - 16th February 2010 at 00:02. Reason: v

  2. #2


    Did you find this post helpful? Yes | No

    Default oooops!!

    Hehehe
    Speed kills hey ?
    Well that would make 10V the supply then :-) and without a regulator mmm could prove interesting ;-)

    Mike ..thanks a million for catching that one in time :-)
    Yes it definitely must be GND not -5v as in the schematic :-)
    Will see if I can replace the schematic :-0

    Keep well

    Kind regards
    Dennis

  3. #3


    Did you find this post helpful? Yes | No

    Default Please find the corrected schematic here

    Here it is .. the schematic corrected to show +5V and GND rails :-)

    Kind regards
    Dennis
    Attached Images Attached Images  

  4. #4
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi Dennis,

    So you have an LDR and a pot and a 1 k resistor across the supply rails. Isn't this combination suppose to connect to an input on the micro? I mean how else is the micro suppose to sense a change then turn the LED on?
    Just an observation!

    BobK

    Nice program example though!
    Last edited by BobK; - 16th February 2010 at 04:36. Reason: After thought

  5. #5
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Wiper on POT to GPIO.2..?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  6. #6
    Join Date
    Aug 2005
    Location
    down south
    Posts
    90


    Did you find this post helpful? Yes | No

    Default

    forgive just trying to understand what your doing here.
    instead of using the LDR as a A/D input (which the 29 does not have)
    when the amount of light causes the voltage to over come the the pull down resistor you get a high input on gpio.2 ?
    am I close?
    " be nice it's people like me that make people like you look smart"
    yes I read the datasheet, of the 300 pages I understood 10

  7. #7


    Did you find this post helpful? Yes | No

    Default OK... you got me !! ;-)

    Hi all

    Apologies for the confusion .. I had left an important line out of the schematic in my rush to share.

    All is fixed now !! The new corrected schematic is attached.

    I don't know how those bad schematics got here ..HUMAN HUMAN HUMAN.. grrr!

    @BobK .. well we could have been trying a current limiter or 'floating points' ;-)
    Valid chirp though was laughing like mad at myself for forgetting a track in schematic and spot on it should connect somewhere for the PIC to be of any use ...!

    @grounded , damn right... build it , and see the magic ;-), works like a charm!

    @Bruce GPIO.2 conects right between the 10K potentiometer and the LDR

    Build it build it build it !

    Kind regards
    Dennis
    Attached Images Attached Images  

Similar Threads

  1. Stairwell light code from BS1 to PHP2.50a
    By vtt-info in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 21st December 2007, 18:32
  2. A/D on 16F767 for light tracking.
    By Ryan7777 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th November 2007, 06:56
  3. Reading a Light Dependent Resistor
    By kiwipiper in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 21st October 2007, 06:29
  4. 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