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 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  

  2. #2
    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

  3. #3
    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

  4. #4
    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

  5. #5


    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  

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


    Did you find this post helpful? Yes | No

    Default

    I used a similar circuit for an Intel 8749 Micro-Bot project I wrote for Circuit Cellar way back
    in 1998, issue #92, to turn on a set of bright LED headlights on my robot.

    Worked really well. Robot entered a dark area, and headlights turned on automatically.

    Moved into the light, headlights turned off.

    http://www.circuitcellar.com/archive...ents/1998.html

    Déjà vu ehh...;o)
    Regards,

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

  7. #7


    Did you find this post helpful? Yes | No

    Default Can't see it :-(

    Hi Bruce


    Unfortunately I can't get to see the article/place/page referred to in your link as I am not a subscriber :-(
    Looks like a very interesting magazine(s) based on the tables of contents!
    I always used to read Elektor magazine which aslo had some very interesting articles and projects.
    Would be very interested to have a look though.. perhaps you could show a schematic or code ?

    What got me started on the LDR mission was this site http://www.doctronics.co.uk/ldr_sensors.htm as I needed to understand the working of LDR's.

    Earlier today I was wondering what would happen if(and when) the supply voltage would drop below the 5Volts I was using for calculations.
    Need to dabble a little bit more by dropping the supplied voltage and see what the results are, hope to be able to give some feedback on that shortly.

    Kind regards
    Dennis

    Kind regards

    Dennis
    Last edited by Dennis; - 18th February 2010 at 01:06.

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