Results 1 to 3 of 3

Thread: Looking for some sample configs light sensor

  1. #1
    Newbie
    Join Date
    Mar 2010
    Posts
    1

    Looking for some sample configs light sensor

    I'm Looking for some sample config files to do some very basic functions.
    1. make a photo sensor trigger a relay when reaching a certain light level ( for automatic headlights)
    2. use various voltage inputs trigger different relay outputs ie 1.5v triggers relay 1, 2.5v trigger relay 2, 3.5 relay 3

  2. #2
    Constant Bitrate ACCLR8N's Avatar
    Join Date
    Apr 2009
    Location
    Davisburg, MI
    Posts
    195

    Auto head lights

    Configurator shots of my auto head light functions. If you want the xml code ask, but I think it is easier to follow here. The "2" is the light sensor value and the "100" is a countdown to delay turning them off. These numbers are placeholders until I play with the hardware for real. Averaging on the input will delay them turning on for brief shadows.

    The third head_light variable is for an override off and on buttons in my Ride Runner skin.
    Attached Images Attached Images   

  3. #3
    Constant Bitrate ACCLR8N's Avatar
    Join Date
    Apr 2009
    Location
    Davisburg, MI
    Posts
    195

    One analog in multiple outputs

    You'll have to produce one of these functions for each voltage value. Absolutes don't work in real life though. Better solution will be greater than 1.2V and less than 1.8V. Add anti-thens to turn things off when the values no longer meet the criteria.

    Do you need more detail?
    Attached Images Attached Images  

Similar Threads

  1. Relocating Portable DVD Remote Sensor...
    By AEFL92 in forum General Hardware Discussion
    Replies: 1
    Last Post: 09-10-2007, 04:03 PM
  2. Gamma control by light sensor
    By kronos in forum General Hardware Discussion
    Replies: 28
    Last Post: 03-14-2005, 08:57 AM
  3. light sensor, etc -> game port inputs
    By Alex Pt in forum Input Devices
    Replies: 19
    Last Post: 03-14-2005, 05:47 AM
  4. Light sensor
    By 4u2n in forum General Hardware Discussion
    Replies: 6
    Last Post: 12-10-2004, 05:32 PM
  5. High Bright Sun Light Readable LCDs
    By PORTUGAL in forum LCD/Display
    Replies: 18
    Last Post: 06-23-2004, 12:19 PM

Bookmarks

Posting Permissions

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