You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ESPNowCam library is a simple and direct video streamer designed for popular ESP32Cam models, utilizing the ESPNow protocol. No need for IPs, routers, or credentials—keeping it straightforward and hassle-free! :D
5
+
The ESPNowCam library is a simple and direct video or data streamer designed for popular ESP32 devices, utilizing the ESPNow protocol. No need for IPs, routers, or credentials—keeping it straightforward and hassle-free! :D
6
6
7
7
**This library is for general purpose**, as it accepts pointers to various types of data, including buffers, strings, images, or any byte-formatted content. This flexibility enables transmission of larger packages across different scenarios, not limited to cameras alone. For instance, a buffer of 4000 bytes takes approximately 1/9 of a second to transmit, resulting in a frame rate of around 9FPS.
8
8
@@ -16,14 +16,15 @@ The ESPNowCam library is a simple and direct video streamer designed for popular
@@ -50,7 +51,53 @@ For `Arduino IDE` is a little bit more complicated because the Arduino IDE depen
50
51
51
52
Note: Nanobp is not included as a dependency because, despite being 25 years after the invention of symbolic links, Arduino IDE does not support these types of files. Consider exploring PlatformIO for your future developments, as it offers a more versatile and modern development environment.
52
53
53
-
## Examples and Tests
54
+
## Usage
55
+
56
+
**To send** any kind of data, you only need a buffer and the size to send:
57
+
58
+
```cpp
59
+
ESPNowCam radio;
60
+
61
+
radio.init();
62
+
radio.sendData(out_jpg, out_jpg_len);
63
+
```
64
+
65
+
**To receive** the data, you only need to define a buffer and callback:
The library includes some pre-defined camera configs to have an easy implementation, for example:
90
+
91
+
```cpp
92
+
#include<ESPNowCam.h>
93
+
#include<drivers/CamFreenove.h>
94
+
95
+
CamFreenove Camera;
96
+
```
97
+
98
+
for now, it includes drivers for FreenoveS3, XIAOS3, 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
| m5core2-basic-receiver | Video receiver via ESPNow [1]| STABLE |
66
115
| m5core2-espnow-receiver | Video receiver via ESPNow [1]| STABLE |
67
116
| m5cores3-espnow-receiver | Video receiver via ESPNow [1]| STABLE|
@@ -85,12 +134,30 @@ pio run -e m5cores3-espnow-receiver --target upload
85
134
86
135
Some examples, only needs run `pio run --target upload` into each directory
87
136
137
+
## ESPNow Transmitter and Receiver
138
+
139
+
The last version has many improvements, and right now is very stable. For now, it supports one transmitter and multiple receivers in real time using broadcast, and also P2P connections using MAC address. It is possible, using IDs, uses of multiple sources to one receiver.
140
+
141
+
[](https://youtu.be/zXIzP1TGlpA)
142
+
[[video]](https://youtu.be/zXIzP1TGlpA)
143
+
144
+
## Troubleshooting
145
+
146
+
The **Freenove camera** sometimes needs good power cable and also takes some seconds to stabilization, that means, that not worries for initial video glitches.
147
+
148
+
The **XIAO camera** experiences thermal issues; after a few minutes, it may stop transmission and won't restart it until it's cooled down.
149
+
150
+
For **Arduino IDE users**, if you have a compiling error, maybe you forget install NanoPb library. Please see above.
151
+
152
+
This project was developed and thoroughly tested on PlatformIO. While I did compile and execute it successfully on Arduino IDE using Espressif 2.0.11 and Arduino IDE 2.2.1, with PSRAM enabled, I generally avoid using Arduino IDE due to its tendency to mix everything and its buggy nature. Therefore, **I highly recommend using PlatformIO** for a smoother and more reliable development experience.
153
+
88
154
## Tested devices
89
155
90
156
**Cameras:**
91
157
92
-
-[x] ESP32S3 Cam Freenove
93
-
-[x] M5CoreS3 builtin Camera
158
+
-[x] ESP32 TTGO T-Journal (without PSRAM)
159
+
-[x] ESP32S3 Freenove Camera
160
+
-[x] M5CoreS3 (builtin Camera)
94
161
-[x] XIAO ESP32S3 Sense Camera
95
162
96
163
**Receivers:**
@@ -108,24 +175,10 @@ Some examples, only needs run `pio run --target upload` into each directory
108
175
-[x] Isolate the ESPNow Receiver and Transmitter in a seperated library
109
176
-[x] Unified and migrated to only one header `ESPNowCam.h`
110
177
-[x] Add sender callback to improve speed
178
+
-[ ] Add callback to Radio send action. issue #20
111
179
-[ ] Migration to esp_wifi_80211_tx() to improve Payload and Quality
112
180
113
-
## ESPNow Transmitter and Receiver
114
-
115
-
The last version has many improvements, and right now is very stable. It needs some tiny changes but now it supports ~9FPS with JPG Quality 18.
116
181
117
-
[](https://youtu.be/zXIzP1TGlpA)
118
-
[[video]](https://youtu.be/zXIzP1TGlpA)
119
-
120
-
## Troubleshooting
121
-
122
-
The **Freenove camera** sometimes needs good power cable and also takes some seconds to stabilization, that means, that not worries for initial video glitches.
123
-
124
-
The **XIAO camera** experiences thermal issues; after a few minutes, it may stop transmission and won't restart it until it's cooled down.
125
-
126
-
For **Arduino IDE users**, if you have a compiling error, maybe you forget install NanoPb library. Please see above.
127
-
128
-
This project was developed and thoroughly tested on PlatformIO. While I did compile and execute it successfully on Arduino IDE using Espressif 2.0.11 and Arduino IDE 2.2.1, with PSRAM enabled, I generally avoid using Arduino IDE due to its tendency to mix everything and its buggy nature. Therefore, **I highly recommend using PlatformIO** for a smoother and more reliable development experience.
0 commit comments