山姆的編程實作分享。。。

Sam Blog, Sam Sharing, Sam Studio

2019年4月23日

ESP32-CAM ( Ai-Thinker Module )


今天拿到了新板子 -- ESM32-CAM
順勢測試一下ESP-IDF開發環境以及這塊板子Camera的效能

以下參考資料都來自 Ai-Thinker提供的 ESP32_CAMERA_QR 使用教程
https://github.com/donny681/ESP32_CAMERA_QR/wiki

Step 1: 首先, 照 ESP32_CAMERA_QR 使用教程連接 USBtoTTL, 注意喔! 這塊板子的工作電壓是5V,不是3.3V !

Step 2: 接著就下載原始碼
git clone https://github.com/donny681/ESP32_CAMERA_QR.git

Step 3: 再來當然就是 make flash (build code 以及 download code, 一指令搞定)

Step 4: 接著就是透過 make monitor 來觀察 camera 運作狀況了
Conclusion:
1. 初試結果,感覺效能不好 (官網資料就不是很好啊,自己要買還嫌)

2. 範例程式穩定度很差,stream mode 常跑不到100 frames 就hang住了


rst:0x1 (POWERON_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1100
load:0x40078000,len:10088
load:0x40080400,len:6380
entry 0x400806a4

.................
WiFi connected
Starting web server on port: '80'
Starting stream server on port: '81'
Camera Ready! Use 'http://192.168.11.12' to connect
MJPG: 3156B 68ms (14.7fps), AVG: 68ms (14.7fps), 0+0+0+0=0 0
MJPG: 3170B 37ms (27.0fps), AVG: 52ms (19.2fps), 0+0+0+0=0 0
;
;
MJPG: 3890B 20ms (50.0fps), AVG: 38ms (26.3fps), 0+0+0+0=0 0
MJPG: 3953B 63ms (15.9fps), AVG: 40ms (25.0fps), 0+0+0+0=0 0
MJPG: 3841B 16ms (62.5fps), AVG: 39ms (25.6fps), 0+0+0+0=0 0
MJPG: 3848B 64ms (15.6fps), AVG: 40ms (25.0fps), 0+0+0+0=0 0
MJPG: 3845B 20ms (50.0fps), AVG: 39ms (25.6fps), 0+0+0+0=0 0

掛了! :-( :-( :-(

3. 再來就是身為工程師的你來改進它吧!

熱門文章