Product Specifications
Copyright©Terabee2016
Note: measurements beyond 4.5m in fast mode and text output might be
unreliable; the use of “Precise” or “Optimal” modes, depending on the
environment,isadvisedforthesemeasurementranges
B
Binary
output
Dataoutput(4bytesmessage):
TXXCRC8
Header:T(84decimal/0x54hex)
Distancereadinginmillimeters**(2bytes):XX
Checksum(1byte)ofprevious3bytes:CRC8
**The TeraRanger One will output T00CRC (both distance bytes set to
zero)asanerrormessageinthefollowingsituations:
Itisunabletomeasureadistance
Thetargetdistanceisbelow20cmorbeyond14m
Validoutputsarefrom200decimalto14,000decimal.
Please note that the default modes when shipped are “Precise” with “Binary” output for
sensor type A and “Optimal” with “Binary” output for sensor type B. The modes you select
arekeptinvolatilememorybythesensorandhavetobesetaftereachpowercycle.
5.2 I2C interface
An alternative way to read out the TeraRanger One is via its TWI bus (also known as I2C).
Please refer to chapter 1.4 for the the electrical connections to be made for using TWI. The
signal levels are 5V, the maximum bus speed is 400kHz and the pullup resistors (10kOhms)
are already integrated in the TeraRanger One. If you want to connect to an I2C bus with
3.3V voltage levels, you need to use a voltage level translator. An I2C adapter for reliable
voltageleveltranslation is available from our website at:
http://www.teraranger.com/product/terarangeri2cadapter/.
I2Ccommandsandoutputformat
TheTeraRangerOnecomesbydefaultwithI2Cbaseaddress(7bit)0x30andistherefore
readytobedirectlyconnectedtothePixhawkautopilotviatheTeraRangerI2Cadapter
withoutanyusermodificationsbeingnecessary.
LikeinUARTmode,theTeraRangerOneisfreerunning,thatmeansitwillrestartanew
measurementassoonasthelastoneisfinished.ThedatayoureadviaI2Cisalways
updatedattheendofameasurement,butyoucanreadatanytime.
90 Rue Henri Fabre Website:
01630 St. Genis‐Pouilly Technical support:
France (next to CERN) Commercial:
www.teraranger.com
support@teraranger.com
teraranger@terabee.com
13