|
||
| Description: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
A Hardware Object that uses three I/O lines to control the two IR LEDs contained in an IR Proximity Detector and read their reflection state. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Operation: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The oIRPD2 Object alternately toggles two I/O lines which are used as control outputs with one for a right side IR LED and one for a left side IR LED. A third I/O line monitors the output of an IR Sensor that detects the reflection state of both the IR LEDs. After the reflection state of both LEDs is determined, a value indicating the reflection state is calculated and stored in the Value property. The four flag style properties; Center, Left, Right and NonZero are also updated each time the reflection state is determined. The Center, Left and Right properties are exclusive and only one will be true at any time, while the NonZero flag is true if the Value property is any value other than 0, which indicates that the light from either or both of the IR LEDs is being reflected. The oIRPD2 Object expects that the I/O line specified by the IOLineS property is connected to an IR Sensor such as the Sharp GP1U581Y and that the I/O lines specified by the IOLineR and the IOLineL properties are combined with a modulation source who's modulation matches the IR Sensor's. The Lynxmotion IRPD is configured in this way. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Storage size & Availability: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The following table lists the size and availability of the oIRPD2 Object.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Properties: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The following table lists the Properties of the oIRPD2 Object
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Connections: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The Lynxmotion IRPD uses 3 I/O lines. Each of the three can be any one I/O line of the OOPic's 31 I/O lines. The IRPD uses a 9 volt power input to operate. Note: The Lynxmotion IRPD's SOUT line is inverted therefore, to use the oIRPD2 Object to read the Lynxmotion IRPD, the InvertIn property must be set.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Example: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In the following example, the oIRPD2 Object is used to read a Lynxmotion IRPD.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| See Also: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
oIRPD1 - An Object that reads an IR Proximity Detector. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||