{:en}HC-SR04 UltraSound Distance Sensor Project{:}{:ja}HC-SR04超音波測距センサープロジェクト{:}

Byadmin

{:en}HC-SR04 UltraSound Distance Sensor Project{:}{:ja}HC-SR04超音波測距センサープロジェクト{:}

{:en}

Objective:
In this project, we will use the Arduino UNO board to drive HC-SR04 ultra Sound Distance Sensor and read distance in Arduino’s serial monitor.

Parts:

1 pc Osoyoo UNO Board uno-o
1 pc HC-SR04 ultra Sound Distance Sensor ultrasound-o.png
1 pc breadboard BREADBOARD

Circuit Graph:

ultrasound

download code and copy/paste the code onto the Arduino IDE, then run the code.

Open the serial window on the upper right hand corner of the Arduino IDE, you will see result as below:

ultrasoundresult

The number displayed on the monitor is directly proportional to the distance an object is away from the sensor. A small LED on the Arduino will light up if your hand is more than 50cm away from the sensor.{:}{:ja}

目的:
このプロジェクトでは、Arduino UNO ボードを使って、HC-SR04超音波測距センサー(測定できる範囲2cm~400cm)を作動し、Arduino IDEのserial monitorで距離数値を表示します。

パーツ:

1 pc Osoyoo UNO ボード uno-o
1 pc HC-SR04超音波測距センサー ultrasound-o.png
1 pc ブレッドボード BREADBOARD

回路図(画像をクリックして拡大イメージを表示):

ultrasound

コード をダウンロードして、Arduino IDEにコーピーして、作動してくださいませ。

Arduino IDEのserial monitorで画像のように表示します(画像をクリックして拡大イメージを表示):

ultrasoundresult

serial monitorの数値は障害物とセンサーの距離です、障害物をセンサーに近づいてくると数値も小さくなります。

{:}

About the Author

admin administrator

You must be logged in to post a comment