* Hardware | ESP32 간단 사용기
- https://chocoball.tistory.com/entry/Hardware-simple-review-ESP32
* Hardware | ESP32 스펙 확인해 보기
- https://chocoball.tistory.com/entry/Hardware-ESP32-spec-check
* Hardware | ESP32 의 Dual core 확인해 보기
- https://chocoball.tistory.com/entry/Hardware-ESP32-Dual-core
* Hardware | ESP32 의 internal sensor 확인해 보기
- https://chocoball.tistory.com/entry/Hardware-ESP32-internal-sensors
* Hardware | EPS32 PWM 기능 확인해 보기
- https://chocoball.tistory.com/entry/Hardware-EPS32-PWM
* Hardware | ESP32 Cryptographic HW 가속 확인해 보기
- https://chocoball.tistory.com/entry/Hardware-ESP32-Cryptographic-HW-acceleration
* Hardware | ESP32 Deep sleep 알아보기
- https://chocoball.tistory.com/entry/Hardware-ESP32-Deep-sleep
* Hardware | ESP32 NTP Server 이용한 시간 맞추기
- https://chocoball.tistory.com/entry/Hardware-ESP32-NTP-Server
카메라가 달려 있는 ESP32-CAM 은 써보지 않아, 비교를 위해해 구매해 봅니다.
AliExpress 에서 비교적 적당한 판매처를 선택합니다. 배송비 포함 약 5 USD 정도 합니다. 특별히 신경 쓴 부분은, EPS32 쉴드 부분에 새겨진 로고. AI Thinker 제품도 있어서, ESPRESSIF 를 찾았습니다.
* ESP32-CAM ESP-32S WiFi Module ESP32 serial to WiFi ESP32 CAM Development Board 5V Bluetooth with OV2640 Camera Module
- https://www.aliexpress.com/item/32992663411.html
배송비가 책정되어 있는 만큼, 연말 연시 임에도 불구하고 10일 조금 더 걸렸습니다.
카메라는 플렉스 케이블로 되어 있어 낭창낭창 하지만, 너무 짧네요. OV2460 카메라 모듈에는 제품 분류번호로 보이는 RH21-M1510-40 이 쓰여 있습니다.
PCB 에 새겨진 안테나를 기본으로 사용할 수 있고, 전파 도달 거리를 확장하고 싶으면 외부 안테나를 사용할 수 있습니다.
외부 안테나를 사용하려면, R3 저항을 외부 안테나 커넥터 쪽으로 변경해 줘야 합니다.
RAM 모듈로는 ESP-PSRAM64H 가 실장되어 있습니다.
* ESP-PSRAM64H Chip – 64 Mbit Serial Pseudo SRAM – 3.3V 133 MHz
- https://blog.adafruit.com/2020/08/06/new-product-esp-psram64h-chip-64-mbit-serial-pseudo-sram-3-3v-133-mhz/
Flash 나 EEPROM 이 아닌 RAM 으로, 8MiB 용량과 QPI 의 고속 통신이 가능합니다. ESP32 와는 다르게, 화상 처리를 위해 대용량 RAM 을 사용한 듯 보입니다.
ESP-32S 라고 되어 있지만, ESPRESSIF 의 ESP-WROOM-32 의 fake 제품인 AI-Thinker ESP-32S 를 소개합니다... -_-;
카메라는 다음 사진 처럼 장착할 수 있습니다.
어떤 글들을 보면, 아래 사진 처럼 연결해야 동작하는 제품도 있다고 하네요. 다행히 제가 구입한 제품은 이 상태로는 동작하지 않았습니다.
조그마한 regulator 에 54FK 로 적혀 있네요. 정확한 회사는 알 수 없으나 SOT-23 2.8V 54FK transistor 계열 입니다.
지금까지 자주 봐오던 AMS1117 3.3V 용 레귤레이터도 붙어 있습니다.
전체적인 구성도는 다음과 같아요.
카메라 모듈은 정면을 바라보게끔 설치하게 됩니다.
Arduino IDE 와 연동하여 활용하려면, 아래 두 라인을 "Preference > Seetings > Additional Boards Manager URLs" 에 등록해줄 필요가 있습니다.
https://arduino.esp8266.com/stable/package_esp8266com_index.json
https://dl.espressif.com/dl/package_esp32_index.json
/*
* This sketch demonstrates how to scan WiFi networks.
* The API is almost the same as with the WiFi Shield library,
* the most obvious difference being the different file you need to include:
*/
#include "WiFi.h"
void setup()
{
Serial.begin(115200);
// Set WiFi to station mode and disconnect from an AP if it was previously connected
WiFi.mode(WIFI_STA);
WiFi.disconnect();
delay(100);
Serial.println("Setup done");
}
void loop()
{
Serial.println("scan start");
// WiFi.scanNetworks will return the number of networks found
int n = WiFi.scanNetworks();
Serial.println("scan done");
if (n == 0) {
Serial.println("no networks found");
} else {
Serial.print(n);
Serial.println(" networks found");
for (int i = 0; i < n; ++i) {
// Print SSID and RSSI for each network found
Serial.print(i + 1);
Serial.print(": ");
Serial.print(WiFi.SSID(i));
Serial.print(" (");
Serial.print(WiFi.RSSI(i));
Serial.print(")");
Serial.println((WiFi.encryptionType(i) == WIFI_AUTH_OPEN)?" ":"*");
delay(10);
}
}
Serial.println("");
// Wait a bit before scanning again
delay(5000);
}
댓글
댓글 쓰기