O'Reilly logo

Arduino for Kids by Vijay Varada, Rishi Gaurav Bhatnagar, Priya Kuber

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Psst...come closer...

Before we move on to breaking this project into blocks, let's look at this new sensor that we are dealing with. As discussed earlier, a sensor is a device that gives an input to the Arduino, and tells it some kind of information about its surroundings.

An Ultrasonic Proximity Sensor, is a kind of sensor that gives the Arduino information about how close someone or something is to the sensor. It works by using very high frequency sound waves also called as ultrasonic waves, having frequency above 20,000 Hz. How this sensor can figure out the closeness of an object is similar to how bat's use their screeches to navigate while flying or hunting. You can visualize it by having a look at the following image:

Image source: https://in.pinterest.com/pin/572731277582697045/ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required