In stock, ships same business day if ordered before 2PM
Delivered by Tue, 24th of Dec
Quantity Discounts:
Recommended Essentials:
Add an easy-to-use modern distance sensor to your project.
Much like a bat or submarine, the module uses echolocation to determine the distance from objects from 2cm to 4.5m away.
This sensor is pin and software compatible with the maker classic HC-SR04 Ultrasonic sensor used in so many projects with many added benefits.
Connect the Vcc and Gnd to your development board's IO level power supply, 3.3V for Raspberry Pi, Pico and micro:bit, or 5V for Arduino.
Then Trig and Echo into digital input and output pins respectively.
Once you've got it configured correctly, use your code to take the Input reading from the Echo pin and plug it into the distance formula: distance = (traveltime/2) x speed of sound to get a distance reading.
from machine import Pin, time_pulse_us import time # Define the trigger and echo pins trigger_pin = Pin(5, Pin.OUT) echo_pin = Pin(4, Pin.IN) # Define a function to measure the distance def measure_distance(): # Trigger the sensor by sending a 10 microsecond pulse trigger_pin.on() time.sleep_us(10) trigger_pin.off() # Measure the duration of the echo pulse duration = time_pulse_us(echo_pin, 1, 30000) # Convert the duration to distance in centimeters distance = duration / 58 return distance while True: distance = measure_distance() print(int(distance)) time.sleep(.3)
Exact shipping can be calculated on the view cart page (no login required).
Products that weigh more than 0.5 KG may cost more than what's shown (for example, test equipment, machines, >500mL liquids, etc).
We deliver Australia-wide with these options (depends on the final destination - you can get a quote on the view cart page):
Non-metro addresses in WA, NT, SA & TAS can take 2+ days in addition to the above information.
Some batteries (such as LiPo) can't be shipped by Air. During checkout, Express Post and International Methods will not be an option if you have that type of battery in your shopping cart.
International Orders - the following rates are for New Zealand and will vary for other countries:
If you order lots of gear, the postage amount will increase based on the weight of your order.
Our physical address (here's a PDF which includes other key business details):
Unit 18, 132 Garden Grove Parade
Adamstown
NSW, 2289
Australia
Take a look at our customer service page if you have other questions such as "do we do purchase orders" (yes!) or "are prices GST inclusive" (yes they are!). We're here to help - get in touch with us to talk shop.
Have a product question? We're here to help!
Makers love reviews as much as you do, please follow this link to review the products you have purchased.
Product Comments