Curriculum
Course: Ultrasonic Sensor Basics
Login
Text lesson

About the Project

About the Project

Starting with the simplest version first so students(you) can understand how the ultrasonic sensor works before adding LED and OLED.

Components

  • Arduino UNO
  • HC-SR04 Ultrasonic Sensor
  • Jumper wires

Connections

HC-SR04 Arduino UNO
VCC 5V
GND GND
TRIG Pin 9
ECHO Pin 10

Steps

  • TRIG pin sends sound waves.
  • ECHO pin receives the reflected sound.
  • Arduino measures the time taken and calculates the distance.
  • The distance is shown in the Serial Monitor.
×
×

Cart