{:en}
This project will use a tilt sensor to control LED light. When the breadboard is tilting, the LED will light up.
Step 1 – connect tilt sensor, LED, resistors to Arduino, see following graph:

Step 2 – Down Load tilt.ino sketch file and load it into Arduino
Step 3 – Test the tilt sensor. Tilt the breadboard, the LED will light up. If you open serial monitor, you will see tilt value switching between 1023 and 0 when you change the angle of the breadboard.
Result Video:
{:}{:ja}
傾斜センサーとブレッドボードを使って、LED制御のプロジェクトです。ブレッドボードを傾けると、LEDを点灯します。
Step 1 -ブレッドボードを使って、ArduinoボードとLED、傾斜センサー、抵抗を接続してくださいませ。配線図は下記の写真(画像をクリックして拡大イメージを表示)をご参照よろしくお願い致します。

Step 2 – tilt.inoというファイルをダウンロードして、Arduinoにロードしてくださいませ。
Step 3 -傾斜センサーをテストしましょう~ブレッドボードを傾けると、LEDを点灯します。
Arduino IDEのserial monitorを開いて、1023から0までの傾き値が見えると思います。ブレッドボードの角度を変更したら、傾き値も変えます。
動画をご覧ください~
{:}
You must be logged in to post a comment
About the Author