バージョン情報 Arduino Uno , Arduino IDE 1.0.5 , processing 1.5.1 , windows 8.1 Arduinoを使ってシリアル通信を試してみた。 今回の実験内容 アナログセンサ : フォトリフレクタ ↓ Arduino ↓ PC : processingでグラフ化 写真 回路図 【Arduinoのスケッチ】 今回のコードは、センサからの入力を40msec毎に1byteのバイナリデータとして送信するのみ。(受信はせずに強制的に送信し続ける。) int analog_in = 0; //アナログピン A0 byte val = 0; unsigned long sTime = 0; void setup() { Serial.begin(9600); } void loop() { sTime = millis(); val = analogR