Arduino Elegoo MEGA2560 R3ボードで超音波センサーモジュールを使用してサーボモーターを制御してみます。 ■用意したもの・Arduinoバージョン1.8.13がインストールされているPC(Windows10) ・Elegoo MEGA2560 R3ボード、1個(https://amzn.to/33ytufU) ・BREADBOARD(ブレットボード) MB-102、1個(https://amzn.to/33l1nky) ・超音波センサモジュール(Ultrasonic sensormodule) HC-SR04、1個(https://amzn.to/3mt8Nd0) 本体に「HC-SR04」と記載されています。 ・SG90(Arduinoミニサーボモーター)、1つ(https://amzn.to/2OrX423) 本体には「Micro Servo 9g SG90」と記載
![【Arduino】超音波センサーモジュールを使用してサーボモーターの制御](https://cdn-ak-scissors.b.st-hatena.com/image/square/b0e6c97966e87a40b9ffc727d8131acbff631a61/height=288;version=1;width=512/https%3A%2F%2Flaboratory.kazuuu.net%2Fwp-content%2Fuploads%2F2021%2F07%2FL.png)