ESP32-CAM(MicroPython)からサーバーへ画像をPOSTする https://qiita.com/tkinjo1/items/80be243d9f208930cc77
約800円のESP32-CAMで乾電池駆動のWebカメラサーバーを立てる https://qiita.com/Nabeshin/items/b195cad1afe99ce29f1e
ESP32-CAMをテスト https://tomono.tokyo/2019/03/11/7519/
http://esp32camip http://esp32camip:81/stream/
usg-ttlコンバータと接続
usb:gnd-gnd(黒)=esp32cam:gnd usb:rx -tx(白) =esp32cam:uot usb:tx -rx(緑) =esp32cam:uor
シリアルモニタのboudrateを115200とする
webserver+raspi https://randomnerdtutorials.com/esp32-cam-video-streaming-web-server-camera-home-assistant/
ESP32-CAM 開発ボード WiFi Bluetoothカメラモジュール 簡単ビルド方法 https://blog.bouhan-tool.com/all/esp32-cam
動作した
import networkが使えない・・惜しい
framesize(size) size == 1 FRAMESIZE_QQVGA // 160x120 size == 2 FRAMESIZE_QQVGA2 // 128x160 size == 3 FRAMESIZE_QCIF // 176x144 size == 4 FRAMESIZE_HQVGA // 240x176 size == 5 FRAMESIZE_QVGA // 320x240 size == 6 FRAMESIZE_CIF // 400x296 size == 7 FRAMESIZE_VGA // 640x480 size == 8 FRAMESIZE_SVGA // 800x600 size == 9 FRAMESIZE_XGA // 1024x768 (default) size == 10 FRAMESIZE_SXGA // 1280x1024 size == 11 FRAMESIZE_UXGA // 1600x1200 size == 12 FRAMESIZE_QXGA // 2048x1536 pixformat(num) 0:JPEG (default) 1:Grayscale 2:RGB565 contrast(num) num -2,2 (default 0). 2 highcontrast quality(num) num 10-63 lower number means higher quality saturation(num) num -2,2 (default 0). -2 grayscale brightness(num) num -2,2 (default 0). 2 brightest whitebalance(num) 0-4 (default 0) 1sunny 2cloudy 3office 4home
micropythonがcameraをサポートしていないのでspi経由でデータを取得する
namato/micropython-ov2640
https://github.com/namato/micropython-ov2640/blob/master/ov2640.py
micropythonで開発する
ESP32-CAM(MicroPython)からサーバーへ画像をPOSTする https://qiita.com/tkinjo1/items/80be243d9f208930cc77
ここのfirmwareを使用
ESP32のWi-fi設定方法調査
ここではubuntuの環境構築を想定
(chromebook上のlinuxでもarduinoIDEは動作するがボードに書き込めなかった)
ダウンロードしてinstall.shを実行してarduinoIDEをセットアップしておく
python2(python python-pip)をインストール
sudo apt install python python-pip
参照)https://docs.m5stack.com/#/en/arduino/arduino_development