ir_ranger_gp2d02

GP2D02 IR ranger library

Author Sebastien Lelong, Copyright © 2008-2009, all rights reserved.
Adapted-by
Compiler >=2.4k

Description

this lib is able to handle the GP2D02 lib, reading distance 
measure with this IR Ranger.



You can either use the read procedure, or access the pseudo-variable
to retrieve distance measures.



When defining pins the ranger is connected to to, it's important to 
set them as "volatile" (level will go low/high within function call)
See sample(s) for more.


Sources

  - datasheet: http://www.datasheetcatalog.org/datasheet/Sharp/mXvryzu.pdf


Notes

reading a distance can take quite a long time, approx. 74ms.
See datasheet for more, but you should remember this while using this IR ranger


Dependencies


Summary

Global variables/contants

Procedures

Functions


API details

Global variables/contants

Procedures

Functions


Related samples

Here are the list of samples which use this library:

16f648a16f648a_ir_ranger_gp2d02.jal
16f72316f723_ir_ranger_gp2d02.jal
18f245018f2450_ir_ranger_gp2d02.jal
18f252018f2520_ir_ranger_gp2d02.jal
18f255018f2550_ir_ranger_gp2d02.jal
18f262018f2620_ir_ranger_gp2d02.jal
18f45218f452_ir_ranger_gp2d02.jal
18f455018f4550_ir_ranger_gp2d02.jal
18f462018f4620_ir_ranger_gp2d02.jal