Serial.println(analogValue, DEC); // print as an ASCII-encoded decimal Serial.println(analogValue, HEX); // print as an ASCII-encoded hexadecimal Serial.println(analogValue, OCT); // print as an ASCII ...
先日 Arduino と Raspberry Pi を USB シリアル通信で連携しながら、温度湿度を取得するセンサーを作ってみました。今回はそこから得た知見を書いていきます。 開発環境 今回の開発で使用する環境は以下のようになります。 今回開発に使用したPCは「MacBook Pro 2016 ...
赤外線リモコンの信号を受信してシリアルモニタに表示します。 リモコンはおうちにあるリモコンを使用します。 /* * IRリモコン信号受信プログラム * 赤外線リモコンの信号を受信してシリアルモニタに表示 * * 必要な部品: * - Arduino (Uno, Nano等) * - 赤外線 ...
I like to visualize things, so I decided to prepare this simple tutorial to help you better understand how to visualize data using Arduino. This tutorial assumes that you have some basic electronics ...
* 1) Create a sketch for your ESP board and verify * that it both compiles and works. * 2) In the IDE select: Sketch -> Export compiled Binary. * 3) Create an OTA ...
You can read the state of a button using Arduino and a few lines of code. The actual state is shown in the Serial Monitor window as 0 or 1, 0 meaning the button is not pressed and 1 that the button is ...