Skip to content

Commit ed8ca2a

Browse files
committed
Merge branch 'master' of github.com:hpsaturn/esp32s3-cam
2 parents ff579ac + 536bf28 commit ed8ca2a

File tree

12 files changed

+147
-17
lines changed

12 files changed

+147
-17
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ The current version was tested with the next cameras:
4949
Add the following line to the lib_deps option of your [env:] section:
5050

5151
```python
52-
hpsaturn/EspNowCam@^0.1.12
52+
hpsaturn/EspNowCam@^0.1.13
5353
```
5454

5555
Or via command line:
5656

5757
```python
58-
pio pkg install --library "hpsaturn/ESPNowCam@^0.1.12"
58+
pio pkg install --library "hpsaturn/ESPNowCam@^0.1.13"
5959
```
6060

6161
**Arduino IDE**:
@@ -129,7 +129,7 @@ The library includes some pre-defined camera configs to have an easy implementat
129129
CamFreenove Camera;
130130
```
131131

132-
For now, it includes drivers for FreenoveS3, XIAOS3, M5UnitCamS3, ESP32Cam AI-Thinker and the TTGO T-Journal cameras, but you are able to define your custom camera like is shown in the [custom-camera-sender](examples/custom-camera-sender/) example. If you can run it in a different camera, please notify me :D
132+
For now, it includes drivers for FreenoveS3, XIAOS3, M5UnitCamS3, Freenove WRover, ESP32Cam AI-Thinker and the TTGO T-Journal cameras, but you are able to define your custom camera like is shown in the [custom-camera-sender](examples/custom-camera-sender/) example. If you can run it in a different camera, please notify me :D
133133

134134
### PSRAM or DRAM?
135135

@@ -158,7 +158,7 @@ Then compile and install each sample, only choose one of them **ENV names** in [
158158
pio run -e m5cores3-espnow-receiver --target upload
159159
```
160160

161-
Some examples, *.ino samples, only needs run `pio run --target upload` into each directory
161+
Some examples are for Arduino users (*.ino samples), but is possible too compile and install it from PlatformIO, only needs run `pio run --target upload` into each directory.
162162

163163
## Troubleshooting
164164

examples/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
| custom-camera-sender | Custom settings - optional PSRAM | QVGA | STABLE |
1313
| tjournal-espnow-sender | NOPSRAM, 1FB, internal JPG | QVGA | STABLE |
1414
| m5cores3-espnow-sender | PSRAM, 2FB, JPG built-in camera | QVGA | STABLE |
15-
| esp32cam-p2p-sender | PSRAM, 1FB, IDF-JPG | QVGA | UNTESTED |
15+
| esp32cam-p2p-sender | PSRAM, 2FB, JPG | QVGA | UNTESTED |
16+
| freenoveWR-basic-sender | PSRAM, 2FB, JPG | QVGA | UNTESTED |
1617

1718
### Receivers samples
1819

examples/esp32cam-basic-sender/platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ build_flags =
2020
extends = env
2121
board = esp32dev
2222

23-
[env:freenove-basic-sender]
23+
[env:esp32cam-basic-sender]
2424
extends = esp32common
2525
lib_deps =
2626
hpsaturn/EspNowCam@^0.1.12
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/**************************************************
2+
* ESP32Cam Freenove Wrover - Transmitter
3+
* by @hpsaturn Copyright (C) 2024
4+
* This file is part ESPNowCam project:
5+
* https://github.com/hpsaturn/ESPNowCam
6+
**************************************************/
7+
8+
// N O T E:
9+
// -------
10+
// Don't forget first install NanoPb library!
11+
// and also review the README.md file.
12+
13+
#include <Arduino.h>
14+
#include <ESPNowCam.h>
15+
#include <drivers/CamFreenoveWR.h>
16+
17+
// Object for the old ESP32Cam Freenove WRover
18+
CamFreenoveWR Camera;
19+
ESPNowCam radio;
20+
21+
void processFrame() {
22+
if (Camera.get()) {
23+
uint8_t *out_jpg = NULL;
24+
size_t out_jpg_len = 0;
25+
frame2jpg(Camera.fb, 12, &out_jpg, &out_jpg_len);
26+
radio.sendData(out_jpg, out_jpg_len);
27+
free(out_jpg);
28+
Camera.free();
29+
}
30+
}
31+
32+
void setup() {
33+
Serial.begin(115200);
34+
Serial.setDebugOutput(true);
35+
Serial.println();
36+
37+
delay(1000); // only for debugging.
38+
39+
if(psramFound()){
40+
size_t psram_size = esp_spiram_get_size() / 1048576;
41+
Serial.printf("PSRAM size: %dMb\r\n", psram_size);
42+
}
43+
44+
// M5Core2 receiver target (P2P or 1:1 mode)
45+
// uint8_t macRecv[6] = {0xB8,0xF0,0x09,0xC6,0x0E,0xCC};
46+
// radio.setTarget(macRecv);
47+
radio.init();
48+
49+
// You are able to change the Camera config E.g:
50+
// Camera.config.fb_count = 2;
51+
// Camera.config.frame_size = FRAMESIZE_QQVGA;
52+
53+
if (!Camera.begin()) {
54+
Serial.println("Camera Init Fail");
55+
}
56+
delay(500);
57+
}
58+
59+
void loop() {
60+
processFrame();
61+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
; ESPNowCam Freenove ESP32S3CAM
2+
; https://github.com/hpsaturn/esp32s3-cam
3+
; @Hpsaturn 2024
4+
5+
[platformio]
6+
src_dir = ./
7+
8+
[env]
9+
platform = espressif32
10+
framework = arduino
11+
monitor_speed = 115200
12+
monitor_filters =
13+
esp32_exception_decoder
14+
time
15+
build_flags =
16+
-D CORE_DEBUG_LEVEL=3
17+
-D BOARD_HAS_PSRAM=1
18+
19+
[esp32common]
20+
extends = env
21+
board = esp32dev
22+
23+
[env:freenoveWR-basic-sender]
24+
extends = esp32common
25+
lib_deps =
26+
hpsaturn/EspNowCam@^0.1.12

examples/unitcams3-basic-sender/unitcams3-basic-sender.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**************************************************
22
* ESPNowCam video Transmitter
33
* by @hpsaturn Copyright (C) 2024
4-
* This file is part ESP32S3 camera tests project:
5-
* https://github.com/hpsaturn/esp32s3-cam
6-
**************************************************/
4+
* This file is part ESPNowCam project:
5+
* https://github.com/hpsaturn/ESPNowCam
6+
*************************************************/
77

88
#include <Arduino.h>
99
#include <ESPNowCam.h>

examples/xiao-espnow-sender/xiao-espnow-sender.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**************************************************
22
* ESPNowCam video Transmitter
33
* by @hpsaturn Copyright (C) 2024
4-
* This file is part ESP32S3 camera tests project:
5-
* https://github.com/hpsaturn/esp32s3-cam
4+
* This file is part ESPNowCam project:
5+
* https://github.com/hpsaturn/ESPNowCam
66
**************************************************/
77

88
#include <Arduino.h>

examples/xiao-fpv-sender/xiao-fpv-sender.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* this board to have some power consumption improvements
77
*
88
* by @hpsaturn Copyright (C) 2024
9-
* This file is part ESP32S3 camera tests project:
10-
* https://github.com/hpsaturn/esp32s3-cam
9+
* This file is part ESPNowCam project:
10+
* https://github.com/hpsaturn/ESPNowCam
1111
**************************************************/
1212

1313
#include <Arduino.h>

library.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "EspNowCam",
3-
"version": "0.1.12",
3+
"version": "0.1.13",
44
"homepage":"https://github.com/hpsaturn/esp32s3-cam",
55
"keywords":
66
[
@@ -15,6 +15,7 @@
1515
"Esp32s3",
1616
"XIAO",
1717
"AI-Thinker",
18+
"Freenove",
1819
"M5CoreS3",
1920
"M5Core2",
2021
"Nanopb"

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=EspNowCam
2-
version=0.1.12
2+
version=0.1.13
33
author=@hpsaturn
44
maintainer=Antonio Vanegas <[email protected]>
55
sentence=ESPNowCam, a straightforward video streamer for popular ESP32Cam models, leveraging the ESPNow protocol. No need for IPs, routers, or credentials—keeping it simple! :D

0 commit comments

Comments
 (0)