Results 1 to 2 of 2

Thread: Analog input light sensor question

  1. Analog input light sensor question

    Hi all, I have a couple Phidget light sensors that I am using in a custom application and was able to import the phidget library and get values within my code, but I am not sure what the values represent exactly. Are they lux measurements? The application I am using it for is to take a measurement and calibrate a display device's brightness according to that value. Also there are two methods for getting the value...one that returns the sensor value which is normalized, and one that returns the raw sensor value. If anyone has any advice on which would be better suited for this type of application I would greatly appreciate it. Thanks in advance!

    Jared

  2. #2
    Join Date
    Sep 2006
    Location
    Carol Stream, Illinois
    Posts
    1,695
    Images
    118
    Rep Power
    105

    Re: Analog input light sensor question

    hi Jared,

    The values that the Phidget library outputs are just the digitally converted values of the 0-5V analog signal. Keep in mind that the 8/8/8 does not know what kind of sensor you have plugged into one of its analog ports. It just sees that a signal is coming in and throws an event to tell you about it.


    The Phidget.InterfaceKit.sensors[i].value is a filtered value that Phidgets "averages" to get a value ranging between 0 - 1000. Voltage from this value is determined by 5mV per sensor step (5mV * 1000 = 5V).

    The Phidget.InterfaceKit.sensors[i].RawValue is a raw, unfiltered value that Phidgets doesn't touch with any averaging. This gives you a 12 bit A-D accuracy of a value ranging between 0 - 4096. This is used in case you want to try and get some better accuracy than the averaged value above.

    That aside though, the light sensor is a generic low voltage device which is not very accurate. You won't be able to easily measure lumens from it. You'll need a "known" lumen source and possibly duplicate it somehow.

    What I would do is just display a percentage value based off of the range of 0 - 1000.

    Hope that helps a bit

    �In the long history of humankind (and animal kind, too) those who learned to collaborate and improvise most effectively have prevailed�
    - Charles Darwin

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Turning analog inputs into multi-switch digital inputs?
    By Clavis in forum Arbotix, Microcontrollers, Arduino
    Replies: 34
    Last Post: 01-09-2011, 11:42 PM
  2. Contest Entry Bioloid Gripper
    By JonHylands in forum Project Showcase
    Replies: 12
    Last Post: 12-26-2008, 03:28 PM
  3. Dilemma- Need I/O board with 18 analog inputs for Telemetry Suit
    By DresnerRobotics in forum Arbotix, Microcontrollers, Arduino
    Replies: 10
    Last Post: 02-11-2008, 03:27 PM
  4. Newbie question: Best way to record light level
    By zeng in forum Software and Programming
    Replies: 6
    Last Post: 12-14-2007, 08:53 AM
  5. Using +5V from analog input with 3rd party sensor
    By shobley in forum Arbotix, Microcontrollers, Arduino
    Replies: 7
    Last Post: 02-16-2007, 10:42 AM

Posting Permissions

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