Skip to content

Commit 32c8047

Browse files
committed
feat: Add a streaming app
Signed-off-by: Anastassios Nanos <ananos@nubificus.co.uk>
1 parent ac58269 commit 32c8047

12 files changed

Lines changed: 471 additions & 89 deletions

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
[submodule "components/ota-service"]
55
path = components/ota-service
66
url = git@github.com:nubificus/ota-service
7+
[submodule "components/esp32-camera"]
8+
path = components/esp32-camera
9+
url = https://github.com/espressif/esp32-camera.git

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ else()
4848
message(WARNING "Secure OTA update disabled")
4949
endif()
5050
51-
project(esp32-ota-update)
51+
project(esp32-cam-stream)

components/esp32-camera

Submodule esp32-camera added at b5fd891

components/ota-service

main/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
idf_component_register(
2-
SRCS "http_server.c" "wifi.c" "esp32-ota-update.c"
2+
SRCS "http_server.c" "wifi.c" "esp32-cam-stream.c" "camera_pins.h"
33
INCLUDE_DIRS "."
4-
REQUIRES mbedtls esp_partition app_update esp_netif esp_wifi nvs_flash esp_http_server ota-service esp32-akri
4+
REQUIRES mbedtls esp_partition app_update esp_netif esp_wifi nvs_flash esp_http_server ota-service esp32-akri esp32-camera esp_timer
55
)

main/camera_pins.h

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
#ifndef CAMERA_PINS_H_
2+
#define CAMERA_PINS_H_
3+
4+
#define CONFIG_BOARD_ESP32CAM_AITHINKER 1
5+
6+
// Freenove ESP32-WROVER CAM Board PIN Map
7+
#if CONFIG_BOARD_WROVER_KIT
8+
#define CAM_PIN_PWDN -1 //power down is not used
9+
#define CAM_PIN_RESET -1 //software reset will be performed
10+
#define CAM_PIN_XCLK 21
11+
#define CAM_PIN_SIOD 26
12+
#define CAM_PIN_SIOC 27
13+
14+
#define CAM_PIN_D7 35
15+
#define CAM_PIN_D6 34
16+
#define CAM_PIN_D5 39
17+
#define CAM_PIN_D4 36
18+
#define CAM_PIN_D3 19
19+
#define CAM_PIN_D2 18
20+
#define CAM_PIN_D1 5
21+
#define CAM_PIN_D0 4
22+
#define CAM_PIN_VSYNC 25
23+
#define CAM_PIN_HREF 23
24+
#define CAM_PIN_PCLK 22
25+
#endif
26+
27+
// ESP-EYE PIN Map
28+
#if CONFIG_BOARD_CAMERA_MODEL_ESP_EYE
29+
#define PWDN_GPIO_NUM -1
30+
#define RESET_GPIO_NUM -1
31+
#define XCLK_GPIO_NUM 4
32+
#define SIOD_GPIO_NUM 18
33+
#define SIOC_GPIO_NUM 23
34+
35+
#define Y9_GPIO_NUM 36
36+
#define Y8_GPIO_NUM 37
37+
#define Y7_GPIO_NUM 38
38+
#define Y6_GPIO_NUM 39
39+
#define Y5_GPIO_NUM 35
40+
#define Y4_GPIO_NUM 14
41+
#define Y3_GPIO_NUM 13
42+
#define Y2_GPIO_NUM 34
43+
#define VSYNC_GPIO_NUM 5
44+
#define HREF_GPIO_NUM 27
45+
#define PCLK_GPIO_NUM 25
46+
#endif
47+
48+
49+
// AiThinker ESP32Cam PIN Map
50+
#if CONFIG_BOARD_ESP32CAM_AITHINKER
51+
#define CAM_PIN_PWDN 32
52+
#define CAM_PIN_RESET -1 //software reset will be performed
53+
#define CAM_PIN_XCLK 0
54+
#define CAM_PIN_SIOD 26
55+
#define CAM_PIN_SIOC 27
56+
57+
#define CAM_PIN_D7 35
58+
#define CAM_PIN_D6 34
59+
#define CAM_PIN_D5 39
60+
#define CAM_PIN_D4 36
61+
#define CAM_PIN_D3 21
62+
#define CAM_PIN_D2 19
63+
#define CAM_PIN_D1 18
64+
#define CAM_PIN_D0 5
65+
#define CAM_PIN_VSYNC 25
66+
#define CAM_PIN_HREF 23
67+
#define CAM_PIN_PCLK 22
68+
#endif
69+
70+
71+
72+
// TTGO T-Journal ESP32 Camera PIN Map
73+
#if CONFIG_BOARD_CAMERA_MODEL_TTGO_T_JOURNAL
74+
#define PWDN_GPIO_NUM 0
75+
#define RESET_GPIO_NUM 15
76+
#define XCLK_GPIO_NUM 27
77+
#define SIOD_GPIO_NUM 25
78+
#define SIOC_GPIO_NUM 23
79+
80+
#define Y9_GPIO_NUM 19
81+
#define Y8_GPIO_NUM 36
82+
#define Y7_GPIO_NUM 18
83+
#define Y6_GPIO_NUM 39
84+
#define Y5_GPIO_NUM 5
85+
#define Y4_GPIO_NUM 34
86+
#define Y3_GPIO_NUM 35
87+
#define Y2_GPIO_NUM 17
88+
#define VSYNC_GPIO_NUM 22
89+
#define HREF_GPIO_NUM 26
90+
#define PCLK_GPIO_NUM 21
91+
#endif
92+
93+
#endif

0 commit comments

Comments
 (0)