> **Source:** Core Electronics is an Australian maker-electronics retailer and manufacturer based in Newcastle, NSW, run by a team of makers and educators. We design and manufacture our own product lines (PiicoDev, CE originals) and are official retailers for iconic maker and industrial brands including Raspberry Pi, Arduino, Adafruit, SparkFun and DFRobot. Orders ship Australia-wide from our Newcastle warehouse. Prices are in AUD and include GST. Pricing, stock and dispatch on this page are generated from the store's live catalog. Full machine-readable index: https://core-electronics.com.au/llms.txt

# Maxbotix XL-MaxSonar-EZ4 Sonar Range Finder MB1240

**Type:** Product page · **SKU:** POLOLU-1654 · **Brand:** [Pololu](https://core-electronics.com.au/brands/pololu-australia)
**Page:** https://core-electronics.com.au/maxbotix-xl-maxsonar-ez4-sonar-range-finder-mb1240.html ([markdown](https://core-electronics.com.au/maxbotix-xl-maxsonar-ez4-sonar-range-finder-mb1240.html.md))

This ultrasonic (sonar) range finder features real-time automatic calibration and noise rejection resulting in virtually noise-free distance readings even in environments with changing acoustic and electrical noise. The sensor detects objects from 0 to 7.65 m (25 ft) and has a resolution of 1 cm (0.4") for distances beyond 20 cm (8"). The XL-MaxSonar works from 3.3 to 5V and peaks at only 0.5 W of power consumption. The EZ0 / AE0, EZ1 / AE1, EZ2 / AE2, EZ3 / AE3, and EZ4 / AE4 versions have progressively narrower beam angles.

## Pricing

- **Price:** $93.90 (inc GST) — $85.36 AUD, exc GST
- **Quantity discounts:** 6+ $81.95 (exc GST) · 12+ $79.39 (exc GST)

## Availability & dispatch

- Available with a lead time — expect dispatch between Aug 14 and Aug 17.

## How to buy

- **Build a cart:** compose `https://core-electronics.com.au/cart/link?items=POLOLU-1654:1` (comma-separated SKU:qty pairs) and share the link. Opening it shows a confirmation page with live pricing and stock before anything is added to the cart.
- **Verify the cart first:** fetch `https://core-electronics.com.au/cart/link/POLOLU-1654:1.md` for live line prices (inc & exc GST, quantity discounts applied), stock and dispatch estimates, and totals. Append `/to/{AU-postcode}` (or `/to/{country-code}:{postcode}`) before `.md` for delivery options and prices to that destination. Unknown, retired, or out-of-stock SKUs are flagged. (Query form `cart/link.md?items=...` also works but some robots parsers refuse query strings here.)
- **Checkout** is completed on-site and includes a captcha at the payment step. Share the cart link; checkout takes it from there.
- **Search the catalogue:** `https://core-electronics.com.au/search/{query}.md` (URL-encode the query; pages 2-3 at `search/{query}/{page}.md`; `search.md?q=` also works)
- **Payment methods, purchase orders, policies and contact details:** https://core-electronics.com.au/llms.txt
## Description

| [![](https://core-electronics.com.au/attachments/localcontent/0J1969_3687189a9e2.jpg)](https://core-electronics.com.au/attachments/localcontent/0J1969_1703808d79b.jpg) |
|---|
| MaxBotix ultrasonic sensor line comparison chart. |

The Maxbotics XL-MaxSonar family of sonar range finders offers very short- to long-range detection and ranging in an incredibly small package with low power consumption. The XL-MaxSonar detects objects from 0 to 7.65 meters (25 feet) and provides sonar range information beyond 20 cm (8") with a resolution of 1 cm resolution (0.4 in). Objects between 0 and 20 cm range as 20 cm. An efficient transformer uses 0.5 W of power to drive the transducer, yielding high-output acoustic power. This acoustic power, combined with continuously-variable gain, real-time automatic calibration, real-time waveform signature analysis, and real-time noise rejection algorithms, results in virtually noise-free distance readings for most applications, even in the presence of various acoustic or electrical noise sources. The XL-MaxSonar distance sensor is available in five factory-calibrated beam patterns (EZ/AE0-4).

For a less-expensive, lower-resolution, shorter-range version, please consider the [LV-MaxSonar-EZ](https://core-electronics.com.au/maxbotix-lv-maxsonar-ez0-sonar-range-finder-mb1000.html) family of distance sensors.

**Specifications and Features**

- Small and light: 0.870" x 0.785" x 0.989" (2.2 x 2.0 x 2.5 cm), 0.22 oz (6.1 g)
- Long range detection: 0 – 7.65 m (25 ft)
- No dead zone; detections from 0 to 20 cm (8 in) are output as 20 cm
- Resolution of 1 cm (0.4 in)
- Low typical current consumption: 3.4 mA at 5 V, 2.1 mA at 3.3 V
- Runs on 3.3 – 5 V
- 42 kHz ultrasonic sensor
- 10 Hz reading rate
- Readings can be triggered externally or internally
- Supports three interfaces (all are active simultaneously): 
    - Serial output of distance reading: asynchronous, logic-level (TTL), inverted, 9600 bps 8N1
    - Analog output of distance reading: (Vcc/1024) / cm (4.9 mV/cm when input voltage Vcc = 5 V)
    - Pulse width output of distance reading: 58 µs/cm (147 µs/in) **on EZ models only**
    - Analog voltage envelope of return acoustic wave form **on AE models only**

**Selecting the right distance sensor**

Since there are 15 members of the XL- and LV-MaxSonar acoustic distance sensor family, Pololu recommend using the [Maxbotix sonar range finder selection guide](https://www.maxbotix.com/SelectionGuide/Selection-Guide.htm) when choosing a acoustic range sensor for your application. There are 5 different beam configurations for the XL-MaxSonar family (EZ/AE0-4), each pictured below, and two output types: EZ and AE. Both models report a distance reading through an analog voltage output and a serial interface. The EZ models also report the distance reading as a high-accuracy digital pulse width, while the AE models report a real-time analog envelope of the detected acoustic reflections. The analog envelope is an time-varying analog signal representing the acoustic waveform received by the transducer. External processing of this analog envelope allows for the simultaneous detection of multiple objects at different distances. Please see the picture above for an example of the analog envelope output.

Maxbotix XL-MaxSonar-[EZ0](https://core-electronics.com.au/maxbotix-xl-maxsonar-ez0-sonar-range-finder-mb1200.html) / [AE0](https://core-electronics.com.au/maxbotix-xl-maxsonar-ae0-sonar-range-finder-mb1300.html) ([MB1200](https://core-electronics.com.au/maxbotix-xl-maxsonar-ez0-sonar-range-finder-mb1200.html) / [MB1300](https://core-electronics.com.au/maxbotix-xl-maxsonar-ae0-sonar-range-finder-mb1300.html)) beam characteristics:

| [![](https://core-electronics.com.au/attachments/localcontent/0J1964_37748bbf688.jpg)](https://core-electronics.com.au/attachments/localcontent/0J1964_192882e1641.jpg) |
|---|

Maxbotix XL-MaxSonar-[EZ1](https://core-electronics.com.au/maxbotix-xl-maxsonar-ez1-sonar-range-finder-mb1210.html) / [AE1](https://core-electronics.com.au/maxbotix-xl-maxsonar-ae1-sonar-range-finder-mb1310.html) ([MB1210](https://core-electronics.com.au/maxbotix-xl-maxsonar-ez1-sonar-range-finder-mb1210.html) / [MB1310](https://core-electronics.com.au/maxbotix-xl-maxsonar-ae1-sonar-range-finder-mb1310.html)) beam characteristics:

| [![](https://core-electronics.com.au/attachments/localcontent/0J1965_27213bf82d5.jpg)](https://core-electronics.com.au/attachments/localcontent/0J1965_12969f6e1cc.jpg) |
|---|

Maxbotix XL-MaxSonar-[EZ2](https://core-electronics.com.au/maxbotix-xl-maxsonar-ez2-sonar-range-finder-mb1220.html) / [AE2](https://core-electronics.com.au/maxbotix-xl-maxsonar-ae2-sonar-range-finder-mb1320.html) ([MB1220](https://core-electronics.com.au/maxbotix-xl-maxsonar-ez2-sonar-range-finder-mb1220.html) / [MB1320](https://core-electronics.com.au/maxbotix-xl-maxsonar-ae2-sonar-range-finder-mb1320.html)) beam characteristics:

| [![](https://core-electronics.com.au/attachments/localcontent/0J1966_20640afb9c5.jpg)](https://core-electronics.com.au/attachments/localcontent/0J1966_10523d6c38f.jpg) |
|---|

Maxbotix XL-MaxSonar-[EZ3](https://core-electronics.com.au/maxbotix-xl-maxsonar-ez3-sonar-range-finder-mb1230.html) / [AE3](https://core-electronics.com.au/maxbotix-xl-maxsonar-ae3-sonar-range-finder-mb1330.html) ([MB1230](https://core-electronics.com.au/maxbotix-xl-maxsonar-ez3-sonar-range-finder-mb1230.html) / [MB1330](https://core-electronics.com.au/maxbotix-xl-maxsonar-ae3-sonar-range-finder-mb1330.html)) beam characteristics:

| [![](https://core-electronics.com.au/attachments/localcontent/0J1967_16401080d64.jpg)](https://core-electronics.com.au/attachments/localcontent/0J1967_86259e4a6c6.jpg) |
|---|

Maxbotix XL-MaxSonar-[EZ4](https://core-electronics.com.au/maxbotix-xl-maxsonar-ez4-sonar-range-finder-mb1240.html) / [AE4](https://core-electronics.com.au/maxbotix-xl-maxsonar-ae4-sonar-range-finder-mb1340.html) ([MB1240](https://core-electronics.com.au/maxbotix-xl-maxsonar-ez4-sonar-range-finder-mb1240.html) / [MB1340](https://core-electronics.com.au/maxbotix-xl-maxsonar-ae4-sonar-range-finder-mb1340.html)) beam characteristics:

| [![](https://core-electronics.com.au/attachments/localcontent/0J1968_93972d9428.jpg)](https://core-electronics.com.au/attachments/localcontent/0J1968_56876be5f6e.jpg) |
|---|

**People often buy this product together with:**

| [![Maxbotix XL-MaxSonar-EZ0 Sonar Range Finder MB1200](https://core-electronics.com.au/attachments/localcontent/0J1963_3970ba8c5c.jpg)](https://core-electronics.com.au/maxbotix-xl-maxsonar-ez0-sonar-range-finder-mb1200.html) | [Maxbotix XL-MaxSonar-EZ0 Sonar Range Finder MB1200](https://core-electronics.com.au/maxbotix-xl-maxsonar-ez0-sonar-range-finder-mb1200.html) |
|---|---|

| [![0.1" (2.54mm) Crimp Connector Housing: 1x2-Pin 25-Pack](https://core-electronics.com.au/attachments/localcontent/0J1597_3580ef0a45.jpg)](https://core-electronics.com.au/0-1-2-54mm-crimp-connector-housing-1x2-pin-25-pack.html) | [0.1" (2.54mm) Crimp Connector Housing: 1x2-Pin 25-Pack](https://core-electronics.com.au/0-1-2-54mm-crimp-connector-housing-1x2-pin-25-pack.html) |
|---|---|

| [![Female Crimp Pins for 0.1" Housings 100-Pack](https://core-electronics.com.au/attachments/localcontent/0J2472_35509fe5b9.jpg)](https://core-electronics.com.au/female-crimp-pins-for-0-1-housings-100-pack.html) | [Female Crimp Pins for 0.1" Housings 100-Pack](https://core-electronics.com.au/female-crimp-pins-for-0-1-housings-100-pack.html) |
|---|---|

**Dimensions**

 | Size: | 0.870" x 0.785" x 0.989" |
|---|---|
| Weight: | 6.1 g |

**General specifications**

 | Resolution: | 1 cm |
|---|---|
| Maximum range: | 7.65 m |
| Minimum range: | 0 cm[1](https://core-electronics.com.au/#note1) |
| Sampling rate: | 10 Hz |
| Baud: | 9600 bps |
| Minimum operating voltage: | 3.3 V |
| Maximum operating voltage: | 5 V |
| Supply current: | 3.4 mA[2](https://core-electronics.com.au/#note2) |

**Notes:**

1Objects closer than 20 cm are reported as 20 cm.2At 5 V (2.1 mA at 3.3 V). **Recommended links**

- **[Maxbotix sonar range finder selection guide](https://www.maxbotix.com/SelectionGuide/Selection-Guide.htm)**
- **[Report on Maxbotix sonar range finder tests](https://core-electronics.com.au/attachments/localcontent/MaxSonar_Reliability_Demonstration_Test__RDT__and_MTBF_Report_13449516196.pdf)**
    
    This report explains testing procedures, calculations, and conclusions for Maxbotix’s reliability demonstration test and mean time between failure (MTBF) test. Testing demonstrated over 200,000 hours for a MTBF with a 90% confidence level.
- **[XL-MaxSonar-EZ0/AE0 (MB1200/MB1300) datasheet](https://core-electronics.com.au/attachments/localcontent/XL-MaxSonar-EZ_Datasheet_25548df933d.pdf)**
    
    Datasheet for the Maxbotix XL-MaxSonar-EZ0/AE0 (MB1200/MB1300) sonar range finders.
- **[XL-MaxSonar-EZ1/AE1 (MB1210/MB1310) datasheet](https://core-electronics.com.au/attachments/localcontent/XL-MaxSonar-EZ_Datasheet_25548df933d.pdf)**
    
    Datasheet for the Maxbotix XL-MaxSonar-EZ1/AE1 (MB1210/MB1310) sonar range finders.
- **[XL-MaxSonar-EZ2/AE2 (MB1220/MB1320) datasheet](https://core-electronics.com.au/attachments/localcontent/XL-MaxSonar-EZ_Datasheet_25548df933d.pdf)**
    
    Datasheet for the Maxbotix XL-MaxSonar-EZ2/AE2 (MB1220/MB1320) sonar range finders.
- **[XL-MaxSonar-EZ3/AE3 (MB1230/MB1330) datasheet](https://core-electronics.com.au/attachments/localcontent/XL-MaxSonar-EZ_Datasheet_25548df933d.pdf)**
    
    Datasheet for the Maxbotix XL-MaxSonar-EZ3/AE3 (MB1230/MB1330) sonar range finders.
- **[XL-MaxSonar-EZ4/AE4 (MB1240/MB1340) datasheet](https://core-electronics.com.au/attachments/localcontent/XL-MaxSonar-EZ_Datasheet_25548df933d.pdf)**
    
    Datasheet for the MaxBotix XL-MaxSonar-EZ4/AE4 (MB1240/MB1340) sonar range finders.
- **[FAQ and code examples from MaxBotix](https://www.maxbotix.com/tutorials.htm)**
- **Sonar Acoustic Ranger**
    
    A PC application for reading the MaxSonar serial protocol.
- **[MaxBotix website](https://www.maxbotix.com/)**
    
    Website for MaxBotix, which makes this and other easy-to-use ultrasonic sensors for a wide variety of applications.

## Images

- [Product image 1](https://core-electronics.com.au/media/catalog/product/m/a/maxbotix_xl_maxsonar_ez4_sonar_range_finder_mb1240__pololu_1654__00.jpg)
