Major site overhaul: resources hub, content migration, new blog posts, forms
- Redesign /resources as sectioned hub with category pages - Migrate 645 Squarespace CDN images to local /images/content/ - Create 9 new news/blog posts with event photos - Fix blog post slugs (rename gibberish filenames) - Rename Design Blog to Design Blogs across site - Remove education page, replace with Platform in nav - Redesign rover repair request form with dynamic rover entries - Add school search combobox to contact, store, and repair forms - Extract shared KNOWN_SCHOOLS data - Make /rover-expansion-3d-printing dynamically pull from MDX - Add related resources sections to product pages - Fix homepage broken /quote links to /store - Store page: sample kit cards, inline quote builder, mailing list opt-in
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
---
|
||||
title: "The Ultrasonic Sensor"
|
||||
date: "2021-07-21"
|
||||
categories: ["All", "Guides"]
|
||||
categories: ["All", "Sensor Guides"]
|
||||
tags: []
|
||||
excerpt: "Learn all about the ultrasonic sensor!"
|
||||
featuredImage: "/images/resources/ultrasonic-sensor.png"
|
||||
---
|
||||
|
||||

|
||||

|
||||
|
||||
The ultrasonic sensor is one of the fives types of sensors on the Micromelon rover.
|
||||
|
||||
@@ -33,13 +33,11 @@ To detect objects, the ultrasonic sensor uses sound. Ultrasonic sound is defined
|
||||
|
||||
**Based on how long it took the sound to bounce back, the sensor calculates how far away the object is using the speed of sound.**
|
||||
|
||||

|
||||

|
||||
|
||||
**The Parts That Make It Work**
|
||||
**The Parts That Make It Work** The sensor is made up of two different components,** the transmitter** and ** the receiver**. These are called transducers. The transmitter is making the ultrasonic sound and the receiver is listening for the reflected sound waves. Some ultrasonic sensors use a single transducer as both the transmitter and receiver.
|
||||
|
||||
The sensor is made up of two different components, **the transmitter** and **the receiver**. These are called transducers. The transmitter is making the ultrasonic sound and the receiver is listening for the reflected sound waves. Some ultrasonic sensors use a single transducer as both the transmitter and receiver.
|
||||
|
||||

|
||||

|
||||
|
||||
**Why Can’t Humans Hear The Sound?**
|
||||
|
||||
@@ -51,7 +49,7 @@ Wanna know something cool though? If you take a video of the ultrasonic sensor w
|
||||
|
||||
Echo location is another name for ultrasonic sensing. Bats and dolphins are just two examples of animals who use ultrasonic sensing to detect where they are going and where to find food.
|
||||
|
||||

|
||||

|
||||
|
||||
Finley (above) works in Micromelon marketing
|
||||
|
||||
@@ -61,7 +59,7 @@ Finley (pictured) uses ultrasonic sensing to detect where pods of fish are in th
|
||||
|
||||
**Sound Waves Reflected Away Or Absorbed**
|
||||
|
||||

|
||||

|
||||
|
||||
When the emitted sound waves don’t reflect back to our sensor we won’t be able to get an accurate reading. This will happen when trying to detect angled or curved surfaces. Soft or textured surfaces can absorb the sound waves and reduce the range of the sensor.
|
||||
|
||||
@@ -81,21 +79,21 @@ In the sensor view dialog, the ultrasonic value is located at the top of the rov
|
||||
|
||||
255 is the returned value when the sensor is unable to detect an object. If you are seeing 255 it means you may be attempting to detect objects further away than 1m or because the sound waves are being absorbed or reflected away from the sensor.
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
**Using The Ultrasonic In Code**
|
||||
|
||||
Let’s write a simple program to print our ultrasonic sensor value every second.
|
||||
|
||||

|
||||

|
||||
|
||||
- Start by adding a **Print **statement. You can find this block in the **Utilities **category.
|
||||
- Start by adding a **Print** statement. You can find this block in the ** Utilities** category.
|
||||
|
||||
- Place our ultrasonic sensor read inside the print statement.
|
||||
|
||||
You can find the **Read Ultrasonic **block in the **Sensors** category. The Python command is **Ultrasonic.Read()**.
|
||||
You can find the **Read Ultrasonic** block in the ** Sensors** category. The Python command is ** Ultrasonic.Read()**.
|
||||
|
||||
- Wrap this Print statement in a **While True Loop**.
|
||||
|
||||
@@ -110,177 +108,3 @@ While this is running we will see our ultrasonic value every second.
|
||||
### Wrapping Up
|
||||
|
||||
Now that we’re familiar with what the ultrasonic is, how it works, and how to program with it, it’s time to start doing some activities that use the ultrasonic sensor.
|
||||
|
||||
Resources
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/driving-school-basics)
|
||||
|
||||
[Driving School Basics](/resources/driving-school-basics)
|
||||
|
||||
Learn the basics of rover motors and sensors while navigating Duck City.
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/spike-drop)
|
||||
|
||||
[Activity: Spike Drop](/resources/spike-drop)
|
||||
|
||||
Simulator activity for learning ultrasonic, colour sensor and iteration.
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/maze)
|
||||
|
||||
[Activity: Maze](/resources/maze)
|
||||
|
||||
Learn branching, iteration, algorithm design, and how to use the Rover’s motors, ultrasonic, colour, and IR sensors.
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/lane-guidance)
|
||||
|
||||
[Activity: Lane Guidance](/resources/lane-guidance)
|
||||
|
||||
Learn iteration, branching, algorithm design, maths, and how to use the motors, ultrasonic, and IR sensors.
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/puppy-bot)
|
||||
|
||||
[Activity: Puppy Bot](/resources/puppy-bot)
|
||||
|
||||
Branching and looping with the ultrasonic sensor.
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/sumo)
|
||||
|
||||
[Activity: Sumo](/resources/sumo)
|
||||
|
||||
Learn branching, iteration, algorithm design, and how to use the Rover’s motors, colour, ultrasonic, and IR sensors.
|
||||
|
||||
### Related Posts
|
||||
|
||||
Resources
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/creating-a-sumo-unit)
|
||||
|
||||
[All](/resources?category=All)
|
||||
|
||||
[Creating A Sumo Unit For Your Digital Technologies Class](/resources/creating-a-sumo-unit)
|
||||
|
||||
[All](/resources?category=All)
|
||||
|
||||
How to run a sumo unit in your digital technologies classroom.
|
||||
|
||||
[Read More →](/resources/creating-a-sumo-unit)
|
||||
|
||||
[All](/resources?category=All)
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/ultrasonic-sensor)
|
||||
|
||||
[All](/resources?category=All), [Guides](/resources?category=Guides)
|
||||
|
||||
[The Ultrasonic Sensor](/resources/ultrasonic-sensor)
|
||||
|
||||
[All](/resources?category=All), [Guides](/resources?category=Guides)
|
||||
|
||||
Learn all about the ultrasonic sensor!
|
||||
|
||||
[Read More →](/resources/ultrasonic-sensor)
|
||||
|
||||
[All](/resources?category=All), [Guides](/resources?category=Guides)
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/year-7-digital-tech-at-st-peters)
|
||||
|
||||
[All](/resources?category=All), [Customer Stories](/resources?category=Customer+Stories)
|
||||
|
||||
[Case Study: Year 7 Digital Tech at St Peters Lutheran College](/resources/year-7-digital-tech-at-st-peters)
|
||||
|
||||
[All](/resources?category=All), [Customer Stories](/resources?category=Customer+Stories)
|
||||
|
||||
See how Meg Foley at St Peters conducted a challenge for their Year 7s using Micromelon.
|
||||
|
||||
[Read More →](/resources/year-7-digital-tech-at-st-peters)
|
||||
|
||||
[All](/resources?category=All), [Customer Stories](/resources?category=Customer+Stories)
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/robot-simulator)
|
||||
|
||||
[All](/resources?category=All), [Getting Started](/resources?category=Getting+Started)
|
||||
|
||||
[Getting Started With The Robot Simulator](/resources/robot-simulator)
|
||||
|
||||
[All](/resources?category=All), [Getting Started](/resources?category=Getting+Started)
|
||||
|
||||
How to get started with the Micromelon Robot Simulator.
|
||||
|
||||
[Read More →](/resources/robot-simulator)
|
||||
|
||||
[All](/resources?category=All), [Getting Started](/resources?category=Getting+Started)
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/getting-started-with-the-micromelon-rover)
|
||||
|
||||
[All](/resources?category=All), [Getting Started](/resources?category=Getting+Started)
|
||||
|
||||
[Getting Started With The Micromelon Rover](/resources/getting-started-with-the-micromelon-rover)
|
||||
|
||||
[All](/resources?category=All), [Getting Started](/resources?category=Getting+Started)
|
||||
|
||||
Crash course on basic rover function, how and what to program and starter activities to attempt.
|
||||
|
||||
[Read More →](/resources/getting-started-with-the-micromelon-rover)
|
||||
|
||||
[All](/resources?category=All), [Getting Started](/resources?category=Getting+Started)
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/prison-escape)
|
||||
|
||||
[Activities](/resources?category=Activities), [All](/resources?category=All)
|
||||
|
||||
[Activity: Prison Escape](/resources/prison-escape)
|
||||
|
||||
[Activities](/resources?category=Activities), [All](/resources?category=All)
|
||||
|
||||
Learn branching and iteration using the colour sensors and motors.
|
||||
|
||||
[Read More →](/resources/prison-escape)
|
||||
|
||||
[Activities](/resources?category=Activities), [All](/resources?category=All)
|
||||
|
||||
Reference in New Issue
Block a user