Product Manual Precision Light Sensor

Product Manual 1127 - Precision Light Sensor Phidgets 1127 - Product Manual For Board Revision 0 © Phidgets Inc. 2009 Contents 4 Product Features ...
Author: Kathleen Miles
1 downloads 2 Views 1MB Size
Product Manual 1127 - Precision Light Sensor

Phidgets 1127 - Product Manual For Board Revision 0 © Phidgets Inc. 2009

Contents 4 Product Features 4

Connections

4

Type of Measurement

5 Getting Started 5

Checking the Contents

5

Connecting all the pieces

5

Testing Using Windows 2000/XP/Vista

7

Testing Using Mac OS X

7 Programming a Phidget 7

Code Samples

7

Coding for your Sensor

8 Technical Information 8

General

8

Formulas

8

Other Interfacing Alternatives

8

Analog Input Cable Connectors

9

Mechanical Drawing

9

Device Specifications

9 Product History 9 Support

Product Features • Measures human perceptible light level in lux • Measures from 1 lux (Moonlight) to 1000 lux (TV studio lighting)

Connections Designed to connect to a: • 1018 - PhidgetInterfaceKit 8/8/8 • 1019 - PhidgetInterfaceKit 8/8/8 w/6 Port Hub • 1070 - PhidgetSBC • 1202 - PhidgetTextLCD

Type of Measurement The sensor uses non-ratiometric measurement.

1127_0_Product_Manual - June 7, 2010

4

Getting Started Checking the Contents You should have received: • A Precision Light Sensor • A Sensor Cable

In order to test your new Phidget you will also need: • A PhidgetInterfaceKit 8/8/8 or a PhidgetTextLCD • A USB Cable

Connecting all the pieces

2 1. Connect the Precision Light Sensor to the Analog Input 6 on the PhidgetInterfaceKit 8/8/8 using the sensor cable. 2. Connect the PhidgetInterfaceKit to your PC using the USB cable.

1

Testing Using Windows 2000/XP/Vista Downloading the Phidgets drivers Make sure that you have the current version of the Phidget library installed on your PC. If you don’t, do the following: Go to www.phidgets.com >> Drivers Download and run Phidget21 Installer (32-bit, or 64-bit, depending on your PC) You should see the

icon on the right hand corner of the Task Bar.

Running Phidgets Sample Program Double clicking on the icon loads the Phidget Control Panel; we will use this program to make sure that your new Phidget works properly. Since the sensor is connected to a 1018, the computer will see only the 1018. The sensor is providing data through the Analog input it is connected to. The source code for the InterfaceKit-full sample program can be found under C# by clicking on www.phidgets.com >> Programming. 1127_0_Product_Manual - June 7, 2010

5

Double Click on the icon to activate the Phidget Control Panel and make sure that the Phidget InterfaceKit 8/8/8 is properly attached to your PC.

1. Double Click on Phidget InterfaceKit 8/8/8 in the Phidget Control Panel to bring up InterfaceKit-full and check that the box labelled Attached contains the word True.

1

2. Make sure that the Ratiometric box is NOT Ticked.

3

3. Move the Precision Light Sensor around and the amount of human perceivable luminosity is displayed in the Analog in Box.

5

2 4

4. You can adjust the input sensitivity by moving the slider pointer. 5. Click on the Sensors button to bring up the Advanced Sensor Form.

1. In the Sensor 6 box, select the 1127 Precision Light Sensor from the drop down menu. 2. The amount of luminosity in lux is shown here. 3. Formula used to convert the analog input SensorValue into lux. The sensor actually outputs in lux.

1

2 3

1127_0_Product_Manual - June 7, 2010

6

Testing Using Mac OS X • Click on System Preferences >> Phidgets (under Other) to activate the Preference Pane • Make sure that the Phidget InterfaceKit 8/8/8 is properly attached. • Double Click on Phidget InterfaceKit 8/8/8 in the Phidget Preference Pane to bring up the InterfaceKit-Full example. This example will function in a similar way as the Windows version, but note that it does not include an Advanced Sensor Display.

Programming a Phidget Phidgets’ philosophy is that you do not have to be an electrical engineer in order to do projects that use devices like sensors, motors, motor controllers, and interface boards. All you need to know is how to program. We have developed a complete set of Application Programming Interfaces (API) that are supported for Windows, Mac OS X, and Linux. When it comes to languages, we support VB6, VB.NET, C#.NET, C, C++, Flash 9, Flex, Java, LabVIEW, Python, Max/MSP, and Cocoa.

Code Samples We have written sample programs to illustrate how the APIs are used. Due to the large number of languages and devices we support, we cannot provide examples in every language for every Phidget. Some of the examples are very minimal, and other examples will have a full-featured GUI allowing all the functionality of the device to be explored. Most developers start by modifying existing examples until they have an understanding of the architecture. Go to www.phidgets.com >> Programming to see if there are code samples written for your device. Find the language you want to use and click on the magnifying glass besides “Code Sample”. You will get a list of all the devices for which we wrote code samples in that language. If this is your first time writing a program to control a Phidget, you should read the Getting Started Guide for the language you are planning to use.

Coding for your Sensor Phidget analog sensors do not have their own API, but instead their output is a voltage that is converted to a digital value and accessed through the SensorValue properties and events on a PhidgetInterfaceKit. It is not possible to programmatically identify which sensor is attached to the Analog Input. Your application will need to apply any formulas from this manual to the SensorValue to translate it into usable data. See the PhidgetInterfaceKit product manual for an overview of its API and a description of our architecture.

1127_0_Product_Manual - June 7, 2010

7

Technical Information General The human eye is less sensitive to changes in light intensity than the 1127, but is able to see a wider range. The Human eye range is from 50 µlux (starlight) to 100 klx (extremely bright sunny day). The 1127, on the other hand, is able to measure from 1 lux (Moonlight) to 1000 lux (TV studio lighting) The 1127 is able to detect higher frequency fluctuations in light levels than the human eye. If you notice noise on the signal that you cannot perceive yourself, it is probably due to incandescent light flicker, or other varying light sources. The 1127 is Non-Ratiometric which means that you cannot rely on the sensor saturating at 1000 SensorValue. To be conservative, interpret SensorValue over 950 as saturated, with the true light level being unknown.

Formulas The Formula to translate SensorValue into Luminosity is: Luminosity (lux) = SensorValue

Other Interfacing Alternatives If you want maximum accuracy, you can use the RawSensorValue property from the PhidgetInterfaceKit. To adjust a formula, substitute (SensorValue) with (RawSensorValue / 4.095) If the sensor is being interfaced to your own Analog to Digital Converter and not a Phidget device, our formulas can be modified by replacing (SensorValue) with (Vin * 200). It is important to consider the voltage reference and input voltage range of your ADC for full accuracy and range.

Analog Input Cable Connectors

Each Analog Input uses a 3-pin, 0.100 inch pitch locking connector. Pictured here is a plug with the connections labeled. The connectors are commonly available - refer to the Table below for manufacturer part numbers.

Cable Connectors Manufacturer

Part Number

Description

Molex

50-57-9403

3 Position Cable Connector

Molex

16-02-0102

Wire Crimp Insert for Cable Connector

Molex

70543-0002

3 Position Vertical PCB Connector

Molex

70553-0002

3 Position Right-Angle PCB Connector (Gold)

Molex

70553-0037

3 Position Right-Angle PCB Connector (Tin)

Molex

15-91-2035

3 Position Right-Angle PCB Connector - Surface Mount

Note: Most of the above components can be bought at www.digikey.com

1127_0_Product_Manual - June 7, 2010

8

Mechanical Drawing 1:1 scale

Note: When printing the mechanical drawing, “Page Scaling” in the Print panel must be set to “None” to avoid re-sizing the image.

Device Specifications Characteristic

Value

Device Current Consumption

2 mA

Output Impedance

1K ohms

Bandwidth / Reaction Time

50 Hz

Minimum / Maximum Voltage

3.3VDC to 5.0VDC

Minimum Light Level

1 lux

Maximum Light Level @ 5V power supply

1000 lux

Error / Accuracy (Typical)

5%

Maximum Light Level @ 3.3V power supply

660 lux

Peak Sensitivity Wavelength @ 25°C

580nm

Product History Date May 2008

Board Revision Comment 0

Product Release

Support Call the support desk at 1.403.282.7335 8:00 AM to 5:00 PM Mountain Time (US & Canada) - GMT-07:00 or E-mail us at: [email protected]

1127_0_Product_Manual - June 7, 2010

9