'embeded/esp32'에 해당되는 글 35건

  1. 2021.06.24 esp32-cam camerawebserver
  2. 2021.06.23 esp32 cpu 사양 및 성능
  3. 2021.06.23 ov2640 on esp32-cam
  4. 2021.06.23 esp32 fw upload
  5. 2021.06.20 esp32-cam
embeded/esp322021. 6. 24. 16:17

환경설정에서 espressif의 패키지를 추가한다.

[링크 : https://dl.espressif.com/dl/package_esp32_index.json]

 

 

보드 매니저에서 esp32를 추가한다.

 

소스 예제에서 esp32 / cam / camerawebserver를 끌어와서

camera_model_ai_thinker로 변경하고 ssid와 password를 변경한다.

 

음.. 구으면서 CPU 모델이 나오네?

스케치는 프로그램 저장 공간 2594790 바이트(82%)를 사용. 최대 3145728 바이트.
전역 변수는 동적 메모리 56256바이트(17%)를 사용, 271424바이트의 지역변수가 남음.  최대는 327680 바이트. 
esptool.py v3.0-dev
Serial port /dev/ttyUSB0
Connecting.....
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 84:cc:a8:2f:0d:d0
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 12970.2 kbit/s)...
Hash of data verified.
Compressed 18656 bytes to 12053...
Writing at 0x00001000... (100 %)
Wrote 18656 bytes (12053 compressed) at 0x00001000 in 0.3 seconds (effective 532.1 kbit/s)...
Hash of data verified.
Compressed 2594912 bytes to 2073530...
Writing at 0x00010000... (0 %)
...
Writing at 0x00208000... (100 %)
Wrote 2594912 bytes (2073530 compressed) at 0x00010000 in 48.9 seconds (effective 424.9 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 119...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (119 compressed) at 0x00008000 in 0.0 seconds (effective 5636.1 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...




3.3V로 했더니 전력 부족으로 켜지지 못해서 brown out detector 가 트리거 되었다고 에러가 뜬다. -_ㅠ

Brownout detector was triggered

ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (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:1216
ho 0 tail 12 room 4
load:0x40078000,len:10944
load:0x40080400,len:6388
entry 0x400806b4

 

5V로 하니 정상적으로 켜지는 느낌? 일단 점만 찍어대고 먼가 진행을 못하네..

다시 코드를 보니 아무생각 없이 5G 공유기 SSID를 적어놨... 2.4GHz만 되는 WIFI에 무슨 학대를!!!

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (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:1216
ho 0 tail 12 room 4
load:0x40078000,len:10944                                                       
load:0x40080400,len:6388                                                        
entry 0x400806b4                                                                
                                                               

[링크 : https://dronebotworkshop.com/esp32-cam-intro/]

 

공유기에서 ip 찾아서 (시리얼 로그에서 아이피 출력되면 좋으련만) 접속하니 된다!

그런데 카메라 문제인가 -_ㅠ 한쪽에 노란줄이 생기네!! 불량아냐 불량?!!?

그리고 동시에 여러 곳에서 접속은 불가능하다(한곳에서 start stream 하면 다른 곳에서는 엑박으로 나온다)

 

그나저나 가동한지 얼마 안되었는데 5V 전압을 넣어서 그런건진 모르겠지만

손으로 잡고 있기 조금 부담스러울 정도로 열이 난다.

비접촉식으로 재보니 50도 넘게 올라가는 듯(5분 정도 켜놓으니)

 

+

AMS1117 라고 써있어서 보니 5V -> 3.3V LDO 인데

왜이렇게 열이 미친듯이 나지?

[링크 : https://www.devicemart.co.kr/goods/view?no=1321251]

 

아니면 PSRAM?

ipus ips6404lsq

[링크 : http://platform.digiic.com/Docs/Product/IPS6404L-SQ-SPN/IPUS%2064Mbit%20SQPI%20PSRAM%20.pdf]

'embeded > esp32' 카테고리의 다른 글

esp32cam webservercam rtsp?  (0) 2021.06.28
LDO 발열?  (0) 2021.06.25
esp32 cpu 사양 및 성능  (0) 2021.06.23
ov2640 on esp32-cam  (0) 2021.06.23
esp32 fw upload  (0) 2021.06.23
Posted by 구차니
embeded/esp322021. 6. 23. 15:55

M4랑 비근하지만 M7 보단 낮은 수준?

As I've understood, Extensa LX6 (esp32 CPU) is aprox. on par with Cortex M4, but below M7 

[링크 : https://www.esp32.com/viewtopic.php?t=5093]

 

아키텍쳐 종류는 파악 불가 ㅠㅠ

[링크 : https://en.wikipedia.org/wiki/Tensilica]

 

There are 2 CPU cores that can be individually controlled or powered, and the clock frequency is adjustable from 80 MHz to 240 MHz

ESP32 contains two low-power Xtensa® 32-bit LX6 microprocessors. The internal memory includes:

• 448 KBytes ROM for booting and core functions.
• 520 KBytes on-chip SRAM for data and instruction.
• 8 KBytes SRAM in RTC, which is called RTC SLOW Memory and can be accessed by the co-processor during the Deep-sleep mode.
• 8 KBytes SRAM in RTC, which is called RTC FAST Memory and can be used for data storage and accessed by the main CPU during RTC Boot from the Deep-sleep mode.
• 1 Kbit of EFUSE, of which 256 bits are used for the system (MAC address and chip configuration) and the remaining 768 bits are reserved for customer applications, including Flash-Encryption and Chip-ID.

[링크 : https://www.es.co.th/Schemetic/PDF/ESP32.PDF]

 

6*6 36핀 인가?

[링크 : https://www.reddit.com/r/esp32/comments/b6wyjt/aithinker_esp32cam_schematic/]

 

공식 홈페이지 링크

[링크 : https://docs.ai-thinker.com/en/esp32-cam]

[링크 : https://docs.ai-thinker.com/_media/esp32/docs/esp32-cam_product_specification_zh.pdf]

[링크 : https://docs.ai-thinker.com/_media/esp32/docs/esp32_cam_sch.pdf]

 

SPI 32Mbit (4MB)

RAM 520KB + 8MB PSRAM

FreeRTOS + LWIP

[링크 : https://docs.ai-thinker.com/_media/esp32/docs/esp32-cam_product_specification_zh.pdf]

[링크 : http://www.ai-thinker.com/pro_view-24.html]

 

정리하고 보니 얘는 ESP32S가 아닌 ESP32 인듯. 패키지가 QFN77 정도는 되어야 하는데 작음.

ESP32-D0WD-V3 / 240 MHz / 600 MIPS / Dual core

ESP32-D0WDQ6-V3 / 240 MHz / 600 MIPS / Dual core

ESP32-D0WD / 240 MHz / 600 MIPS / Dual core

ESP32-D0WDQ6 / 240 MHz / 600 MIPS / Dual core

ESP32-D2WD / 160 MHz / 400 MIPS / Dual core

ESP32-S0WD / 160 MHz / 200MIPS / Single core

ESP32-U4WDH / 160 MHz / 200MIPS / Single core

[링크 : https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf]

'embeded > esp32' 카테고리의 다른 글

LDO 발열?  (0) 2021.06.25
esp32-cam camerawebserver  (0) 2021.06.24
ov2640 on esp32-cam  (0) 2021.06.23
esp32 fw upload  (0) 2021.06.23
esp32-cam  (0) 2021.06.20
Posted by 구차니
embeded/esp322021. 6. 23. 14:22

1600x1200@15fps / SVGA 800x600@30fps / CIF 352x288@60fps

 

MIPI를 기대한건 너무 큰 욕심이었을까 -ㅁ-

SCCB Interface
The Serial Camera Control Bus (SCCB) interface controls the CAMERACHIP operation. Refer to OmniVision Technologies Serial Camera Control Bus (SCCB)

[링크 : https://datasheetspdf.com/datasheet/OV2640.html]

'embeded > esp32' 카테고리의 다른 글

LDO 발열?  (0) 2021.06.25
esp32-cam camerawebserver  (0) 2021.06.24
esp32 cpu 사양 및 성능  (0) 2021.06.23
esp32 fw upload  (0) 2021.06.23
esp32-cam  (0) 2021.06.20
Posted by 구차니
embeded/esp322021. 6. 23. 13:02

장치는 샀는데 어떻게 펌웨어를 올려야 하나..

아무튼 대충 보니 외부 시리얼 통신을 통해서 올려주는 형상이고

라즈베리 파이 pico 처럼 내부 펌웨어는 따로 있고, 사용자 펌웨어만 올리는 구조인 듯 하다.

 

[링크 : https://dronebotworkshop.com/esp32-intro/]

[링크 : https://dronebotworkshop.com/esp32-cam-intro/]

 

[링크 : https://randomnerdtutorials.com/program-upload-code-esp32-cam/]

[링크 : https://docs.espressif.com/.../development-environment/firmware-update.html]

'embeded > esp32' 카테고리의 다른 글

LDO 발열?  (0) 2021.06.25
esp32-cam camerawebserver  (0) 2021.06.24
esp32 cpu 사양 및 성능  (0) 2021.06.23
ov2640 on esp32-cam  (0) 2021.06.23
esp32-cam  (0) 2021.06.20
Posted by 구차니
embeded/esp322021. 6. 20. 07:58

헐.. 카메라 모듈까지 포함인것 같은데 고작 9천원?

[링크 : https://www.devicemart.co.kr/goods/view?no=12496229]

[링크 : https://makernambo.com/109]

 

32MBit SPI 플래시도 있고 램 512KB에 Wifi + BT/BLE 지원이라니 신세계인데?

아무튼.. 동영상 예제로는 스트리밍 정도가 아니라 웹 서비스를 올려서

카메라로 부터 받아 스트리밍을 하는데 도대체 정체가 머지?

 

esp32-s2는 USB HID 내장인 듯?

[링크 : https://esp32.com/viewtopic.php?t=11761]

'embeded > esp32' 카테고리의 다른 글

LDO 발열?  (0) 2021.06.25
esp32-cam camerawebserver  (0) 2021.06.24
esp32 cpu 사양 및 성능  (0) 2021.06.23
ov2640 on esp32-cam  (0) 2021.06.23
esp32 fw upload  (0) 2021.06.23
Posted by 구차니