【esp32】ロードセルで重さをはかる

水耕栽培で使う栽培養液は、苗の時期、生育期、結実期それぞれで消費される養液の量が異なり、天候でも異なってきます。 そこで1日の養液使用量が判れば自動で補充出来て水耕栽培管理が楽になるんじゃない?ということで水耕栽培養液の量を測定してみること ...
磁気センサー割り込みサンプル-arduino

arduinoのloop()で通常の処理をしながら急ぎの仕事をこなす特別なコマンドattachInterrupt(割り込み処理)についての備忘録です。 外部割り込み モーターの回転を計測する必要があってどうしたらいいものか調べていたらatt ...
esp32からシリアル通信でarduinoへデータを送る

esp32からシリアル通信でarduino megaへデータを送ってみました。 シリアルモニタでそのデータを見るのは簡単ですが、いざ使えるように整数型に変換しようとするといろいろ困ったことが起きるようです。 グローバル変数とローカル変数 グ ...
BME280 とesp32で温度・湿度・気圧を測定する

今までarduino megaでbme280を動かしていたのですがesp32に変えたところそのままでは動かないことが判明しました。 そこでesp32でbme280を使えるようにするまでの備忘録です。 BME280 BME280はあのBOSC ...
arduino IDEをインストールしてesp32を使う

arduinoの統合開発環境 arduino IDEをインストールしarduino unoやarduino mega esp32を使えるようにする備忘録です。 arduino入門 Arduino(アルディーノ)とは、ハードウェアの「Ardu ...
【Windows10】COMポートが見えない場合には?

Windows10を再インストールしたところデバイスマネージャにCOMポートが表示されなくなりました。 MSコミュニティで情報を探したり色々試してもCOMポートが見えずにあきらめ… でも、これをインストールすることで解決しました。 マイクロ ...
【ntp サーバ esp32】日本でのおすすめは?

esp32でntpの時刻を表示させてみました。 arduino IDEにあるスケッチ例をちょっと変えてそのまま使えます。 cayenneに送信した時刻をシリアルモニタで見れるようにした備忘録です。 ntp サーバとは? NTPサーバとは、イ ...
【iot農業・温度】スマホで温度センサーの値を表示させてみた

DS18B20温度センサーは固有のシリアル番号が付与されているのでGPIOが同じでも読み取りができます。 ということは1本の信号線で多くの温度計測が出来ますね。 この温度センサーをesp32やarduinoで自作した備忘録です。 温度センサ ...
【iotで水やり】カイエンIOTとスマホでスマート農業?

スマート農業が注目をされていますが問題点の一つに導入費用があります。そこで某企業も使う高度なプラットフォームを無料で使わせていただくことにします。 iotプラットフォーム マイクロソフトやアリババ(巨大Eコマース)も戦略的パートナーシップを ...
【arduino_IDE】googlesheetに書き込んでみた

IFTTT利用では一度にgoogle sheetに書き込めるセル数に制限があるので、esp32(esp-wroom-32)からgoogle sheetsに直接書き込めるようにしてみました。 google sheet作成 googleドライブ ...