Accurately detect objects and small changes in distance to a target with the HiTechnic EOPD. The EOPD or Electro Optical Proximity Detector uses an internal light source to detect the presence of a target or determine changes in distance to a target. By generating its own light source, the EOPD is able to filter out all external light signals so as a robot moves from bright areas to dimmly lit areas or through shadows, the EOPD automatically compensates and only returns a signal based on its own light source. Targets can be accurately detected over distances up to about 8 inches (20 cm), depending on the target size, shape and reflective qualities.
The HiTechnic EOPD Sensor is an Electro-Optical Proximity Detector. Electro-Optical? This means an electronic device which uses visible light as part of its operation.
The HiTechnic EOPD is similar to a standard light sensor except that it uses pulsed light to effectively eliminate the interference of ambient or background light from the reading. By using pulsed light, the brightness during the pulse can be relatively bright but remain safe because the average power output is very low. The sensor reads the difference between the light measurement at the detector before the pulse is emitted and the light measurement during the pulse. It then subtracts the difference so the reading is a direct measurement of the reflected light energy after removing any dependence on ambient light.
The EOPD sensor has two modes of operation, x1 sensitivity and x4 sensitivity. In x4 sensitivity mode, the HiTechnic EOPD can easily detect the red ball which comes with the LEGO MINDSTORMS NXT set at a range of at least 15 cm (approx. 6 inches). Since the sensor can be overloaded by close white targets, the x1 sensitivity mode can be used for detecting the position of LEGO pieces, such as a small white part attached to a black beam, used as a mechanism home detection device.
The HiTechnic EOPD can be read at up to 300 samples per second. Internally, the EOPD sensor actually runs at between 350 to 400 samples per second to ensure there is always a new reading for the NXT at 300 samples per second.
Each HiTechnic EOPD runs at a slightly different sampling rate which means they can be used near each other with a minimized chance of interference.
Raw Readings v Corrected Readings
The first plot shows the raw readings from the sensor ( y axis) versus the range to the red ball in inches ( x axis). The blue line is the x1 mode while the pink line is the x4 mode.
The second plot shows the result of computing range=cal.factor/sqrt(raw.reading). The actual range is the x axis while the y axis shows the computed range value.
MINDSTORMS NXT-G Programming Block
Display Settings
Image of block
This number shows which NXT sensor port is selected to connect the EOPD. You can change this number in the configuration panel Port selection or by wiring a variable to the port plug on the drawer.
Configuring the EOPD Block
Image of configuration panel
- Choose the port your EOPD is plugged into. By default, the block will be set to port 1 for the EOPD. You can change this selection if you want.
- Use the slider to set the trigger value or type a value directly into the input box. Select the radio button to the right of the slider if you want the block to be triggered by levels higher than the trigger value; select the left radio button to trigger the block with levels lower than the trigger value. You can also use the pull-down menu to set the �true� portion of the slider.
- If you check the �Long Range� checkbox, the EOPD sensor will adjust the sensitivity to detect objects over a longer distance.
- EOPD block Data Hub plugs
You must click on the Data Hub to open it as shown.
Image of block
- This plug wires the NXT port number your EOPD is connected to.
- This plug wires the value to compare against for the trigger.
- This plug wires the logic used in the trigger comparison.
- This plug wires the Long Range selection.
- This plug wires the result of the trigger comparison.
- This plug wires the processed value from the sensor.
- This plug wires the raw value from the sensor.
- Examples showing the logical result.
This chart shows the different characteristics of the plugs on the EOPD block's data hub:
|
Plug | Data Type | Possible Range | What the Values Mean |
1
|
Port | Number | 1, 2, 3 or 4 | NXT sensor port the EOPD is plugged into |
2
|
Trigger Point | Number | 0 - 1023 | Value to compare against |
3
|
Greater / Less | Logic | True/False |
Logic used in comparison. True = Greater, False = Less |
4
|
Long Range | Logic | True/False |
Select Long Range Mode True = Long Range, False = Standard Range |
5
|
Yes / No | Logic | True/False | Result of comparison |
6
|
Result | Number | 0 - 100 | Processed or scaled value read from sensor. This is useful to calculate a relative distance * see note |
7
|
Raw Value | Number | 0 - 1023 | Raw (unscaled) value read from sensor |
Note: This value is derived from the square root of the raw value and can be divided into a constant to calculate distance to a target. The constant should be chosen to yield the distance in desired units. You can choose the units to suite each application. For example, divide 250 (the constant) by the processed value and the result will be a linear scale representing distance units to the target. If you change the constant to a larger number, say 350, the resulting scale will have more (smaller) units for a given distance.
Downloads
Lego Mindstorms NXT EOPD
- Brand: HiTechnic
- Product Code:Hitechnic-NXT-EOPD
- Reward Points:69
- Availability:In Stock
-
रo 6,920.00
- Price in reward points:6920
Related Products
Tags: NXT, EOPD, Sensor, Lego, Mindstorms