「Arduino」の「シリアル通信」についてまとめました。 「Arduino」は、他のデバイスと通信するために、どのボードにも最低1つの「シリアル通信」を行うためのポートが用意されています。通常、「TXピン」(1ピン)と「RXピン」(0ピン)が使われます。 「Arduino ...
A serial port JSON websocket & web server that runs from the command line on Windows, Mac, Linux, Raspberry Pi, or Beagle Bone that lets you communicate with your serial port from a web application.
int trig = 2; // 距離センサーの出力ピン=arduinoの2にさしてあるよ int echo = 3; // 距離センサーの入力ピン=arduinoの3にさして ...