TeraBee TOF RangeFinders¶
The TeraBee EVO family of rangefinders are lightweight, high-performance distance measurement sensors based on infrared Time-of-Flight (TOF) technology. They are much faster than ultrasound and far smaller and lighter than laser-based systems. Their small size, high performance and low power consumption make it ideal for modern robotic applications, drone operations and automation.
More technical information about these senors can be found below:
- TeraRanger One
These rangefinders are only supported in ArduPilot autopilots via I2C protocol.
Connecting to the TeraRanger EVO via I2C¶
The TeraRanger EVO sensor can be easily connected to the Pixhawk or other ArduPilot with the open-ended cable included with the sensor.
|EVO I2C backboard pins||Pixhawk I2C port pins|
|4 SDA||3 SDA|
|5 SCL||2 SCL|
|7 VCC||1 VCC|
|8 GND||4 GND|
Do not power from autopilot port, unless port is known to have sufficient current capability. If this is the case just connect the SCL/SDA lines from the rangefinder to the autopilot’s I2C signals of the same name.
some of these rangefinders consume over 100ma of current and should NOT be powered from the autopliots’s I2C port, but from an external 5V regulated supply source.
For more information please visit this link <https://www.terabee.com/connection-to-pixhawk-autopilots-teraranger-evo/>`__
Setup in Mission Planner¶
To use the TeraRanger EVO sensor as rangefinder, connect with Mission Planner and open the CONFIG/Full Parameter List menu and set:
RNGFNDx_MAX_CM: This parameter sets the maximum distance that the rangefinder is used by the autopilot.
RNGFNDx_MIN_CM: This parameter set the minimum distance that the rangefinder is used by the autopilot.
RNGFNDx_ADDR: 48 (for TeraRanger One) or 49 (for EVO series), 0 will disable the rangefinder setup.
RNGFNDx_ORIENT: 25 (for downward facing). If used for Object Avoidance or ceiling distancing, instead of altitude ranging, mount and chose the appropriate orientatioin.
Values for the rangefinders are shown below:
- Do not power from autopilot port, unless port is known to have sufficient current capability.
- Requires 3.3V to 5V level shifting to connect to autopilots I2C signals
Testing the sensor¶
The distances read by the TeraRanger EVO sensor can be displayed on the Mission Planner Flight Data menu. The Status button the left will show status values. Then choose “sonarrange”.
When the autopilot boots, the rangefinder needs to already be powered on, or at least be powered on at the same time as the autopilot. If you power the rangefinder after the autopilots has booted, it will not be recognized since the autopilot will have already scanned its I2C bus for devices!