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/3bhu0mW) ・フォトレジスタ(フォトセル)、Photoresistor (Photocell)、1個(https://amzn.to/30fYNdF) ・SG90(Arduinoミニサーボモーター)、1つ(https://amzn.to/2OrX423) 本体には「Micro Servo 9g SG90」と記載されています。 ・10K ohm resistor
![【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)