Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Digital Matter Site
  • Contact Us

Hawk - Configure MaxBotix MB7040 I²C Ultrasonic Range Sensor

Written by Matthew Clark-Massera

Updated at October 6th, 2023

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Contact Support
  • Home
  • Devices
  • Cellular
  • Data Loggers
  • Hawk IoT Datalogger
  • I²C

Table of Contents

Related Articles 3rd Party Sensor IO Card Wiring Parameters I²C Action Parameters Task Parameters Output/Conversion

Related Articles

Please ensure to also read the below for full details on configuring Tasks and I²C Sensors for the Hawk

  • Hawk Operation - Task Schedules
  • Configure I²C Sensor Readings
 

The Maxbotix MB7040 is an Ultrasonic Range Sensor. It is commonly used to measure tank level. It can be placed at the top of a tank, and the distance measured by the sensor gives the distance from the top of the tank to the water - which is then used to work out the level. 

3rd Party Sensor

The MB7040 is a 3rd Party sensor - the advice given below is general. Always check the product datasheet direct from the manufacturer. Specific guidance on installation and usage should be obtained directly from the manufacturer. The instructions below are based on a sensor tested at the time of article writing - things may change.

 

IO Card

Ensure a plug-in IO card with an I²C interface is fitted to the Hawk. Currently the only card with this interface is the AgTech1 card.

Wiring

MB7040 Agtech 1 Bluetooth+
VCC (3v3) Hawk IO 5 Hawk IO 7
SCL Hawk IO 6 Hawk IO 5
SDA Hawk IO 4 Hawk IO 6
GND Hawk GND Hawk GND

Parameters

I²C Action Parameters

  1. Select MB7040 as the Sensor Type
  2. Choose an Analogue to write the value to (14 is shown below)

The I²C address can be left blank. For reference address 224 (0xE0) is polled when taking a reading.

Task Parameters

Ensure the I²C action you have configured above (Action 1 or 2) is set as an action of the task.

Output/Conversion

With the above parameters, the output would be:

Value Analogue Units Conversion Example
Distance Analogue Offset Value cm 45 = 45cm
configure hawk

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Configure I²C Sensor Readings
  • Hawk - Configure DM Temp Probe (Deprecated)
  • Hawk - Configure DM Ambient (Temp+Hum Sensor)
  • Hawk - Configure MLX90614 Temperature Sensor

Subscribe to Partner News

Subscribe to our mailing list to receive Digital Matter news, product and tehnical updates, and more.

Subscribe

Copyright © Digital Matter . All Rights Reserved.

Privacy Contact Support

Knowledge Base Software powered by Helpjuice

Expand