Time-Lapse


Closed Thread
Results 1 to 40 of 43

Thread: Time-Lapse

Hybrid View

  1. #1
    Ted's's Avatar
    Ted's Guest


    Did you find this post helpful? Yes | No

    Default

    Fair enough.
    How fast can a ldr react? Is a light sensitive diode/transistor suitable aswell?

  2. #2
    Join Date
    Oct 2007
    Location
    The Netherlands
    Posts
    45


    Did you find this post helpful? Yes | No

    Default

    An LDR might be a little slow, depends on the speed you need. Photo transistor might work well too, again, you'll have to experiment a bit.

  3. #3
    Join Date
    Dec 2005
    Posts
    46


    Did you find this post helpful? Yes | No

    Default

    Ted's,
    I'm a rooky at electronics, so what the other guys are suggesting is probably better, but here's how I use a CDS cell for detecting day and night on my circuit, and I think it would work here to, as long as no outside light can get to it. The part number is from digikey: PDV-P9203-ND The specs say:

    Rise Time (Typ) 70ms
    Fall Time (Typ) 15ms

    I don't know, but I'll bet that would work for ya.
    I connect one side directly to the +5V of my board, and the other side to a pin on the PIC. This is the code that I use, and it has worked really well. What I have found using this code, is that it works with pretty much any CDS cell. I had 5 different ones, and they all detected dark at about the same light level with this code. For really good measurement of changes in light level, I'm sure there are better, and more complicated, ways to do this, but this is great for detecting day or night (or light on/off). After reading how RC time works, I'm not real sure why the value of about 46 to 49 is consistently dark on all of the cells I tested, but hey it works.
    DayNight VAR BYTE
    DayOrNot VAR BIT

    Low PORTB.5 'Pin Connected to CDS Cell
    Pause 10
    RCTime PORTB.5,0,DayNight 'Read rctime value into DayNight variable

    If Daynight > 46 Then 'It's dark
    DayOrNot = 0
    Else 'It's Daylight
    DayOrNot = 1
    End If

    Gary

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    FYI g-hoot,
    http://en.wikipedia.org/wiki/Photoresistor
    Now Ted has code for his project too and what speed to expect.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Dec 2005
    Posts
    46


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    FYI g-hoot,
    http://en.wikipedia.org/wiki/Photoresistor
    Now Ted has code for his project too and what speed to expect.
    Dave,
    Thanks for the link. I think the sentence below may explain why several different cells produce basically the same results:

    "Many commercially available CdS cells have a peak sensitivity in the region of 500nm - 600nm (green light)."

    Gary

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Yeah, that green light thing nailed me a few years ago. Had a project working the way I wanted in the shop and never thought about how sun light has a different spectrum until I took it out side. All of my setting were off.
    Dave
    Always wear safety glasses while programming.

  7. #7
    Ted's's Avatar
    Ted's Guest


    Did you find this post helpful? Yes | No

    Default

    I like the symbol

    I am going to use a device that looks similar to a CDS cell and a ldr, maybe it is a ldr. It is very flat and it's dimensions are 4mm x 4mm. Do you have an idea on how to keep the LDR on the led even though the camera is moving?

Similar Threads

  1. I don't understand this code!
    By Russ Kincaid in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 13th February 2008, 03:55
  2. Measuring time
    By AugustoPedrone in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 31st July 2007, 00:46
  3. Serout2/serin2 Pbp Problem
    By SOMRU in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th December 2006, 20:55
  4. Alarm Time
    By Santana in forum Code Examples
    Replies: 1
    Last Post: - 8th December 2006, 14:58
  5. Timer in real time
    By martarse in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th July 2005, 15:24

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