Detecting night time


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Posts
    7

    Default Detecting night time

    I have an application where I need to reliably detect night time, i.e. darkness, not just bad weather or a shadow but nighttime, a current product has an issue of activating in moonlight or with car headlights, any ideas ?

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


    Did you find this post helpful? Yes | No

    Default

    Maybe...
    The moon/bad weather could be solved by adjusting the sensitivity. I will assume you are using an ADC for this. Have the sensor shaded from the moon directly. Adjust so moon light appears as clouds or bad weather.

    The car lights ... Maybe a counter. The light would have to hit the sensor for a predetermined time (count) before it is activated.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    967


    Did you find this post helpful? Yes | No

    Default

    Nice application. I would think you can use photo sensors placed in directional tubes facing opposite directions like left and right separated by a tall barrier. This will ensure only night / darkness on both sensors will trigger your circuit. I'm too lazy to sketch it out right now

  4. #4
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    >a current product has an issue of activating in moonlight or with car headlights, any ideas ?

    Sensitivity adjustment will take care of moonlight.

    An activation/deactivation Time-Delay will take care of Car Headlamps.

    A Time-Clock will take care of switching during Daylight Hours. Most places on the planet publish "Lighting-Up" Times.

    A combination of all three should give you a better product.

    Oh... and sensible positioning of the Sensor (like pointing skywards - and not towards where the moon normally traverses) always helps!

  5. #5
    Join Date
    Jun 2005
    Location
    Up the bush, Western Plains, NSW Au
    Posts
    216


    Did you find this post helpful? Yes | No

    Default

    Or you could eliminate all this automatic stuff by handing it to someons sitting at a window with the following short instructions:

    If dark = 1 then turniton 'now night
    if dark = 0 then turnitoff 'now day

    This would also help with the unemployment problem, but probably not with sales.


    ------------------------------------------------------------------
    Oh dear, I am sorry, I just couldn't resist.
    Yeah, I know, some people are just no bloody help at all, are they?
    I'm just gonna go sit in the corner for a while
    Peter Moritz.
    Up the bush, Western Plains,
    New South Wales,
    Australia.

  6. #6
    Join Date
    Jan 2009
    Posts
    7


    Did you find this post helpful? Yes | No

    Default

    Muddy little help but made me smile

    Still thinking about this, I have had another idea and quite a good one I think, how about using a small solor panel.

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, 02:55
  2. Measuring time
    By AugustoPedrone in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 30th July 2007, 23:46
  3. Serout2/serin2 Pbp Problem
    By SOMRU in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th December 2006, 19:55
  4. Alarm Time
    By Santana in forum Code Examples
    Replies: 1
    Last Post: - 8th December 2006, 13:58
  5. Timer in real time
    By martarse in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th July 2005, 14: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