int IRSensor = 2; // connect ir sensor to arduino pin 2 int count = 0; //variable to store how many times the door was activated int active = 0; //variable to store if the switch was activated ...
さて、前回の記事でマイコンボードの説明を行いました。今回はパソコン側の準備を行っていきます。マイコンボードには、見てわかるようにディスプレイもキーボードもついていません。そこで手持ちのパソコンと接続をして、パソコンからマイコン ...