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
for(size_t i = 0; i < bufferSize; i += CHUNK_SIZE) {
194
209
size_t chunkSize = min(bufferSize - i, CHUNK_SIZE);
195
210
sendChunk(buffer + i, chunkSize);
196
-
}
197
-
211
+
}
212
+
198
213
sendChunk(STOP_SEQUENCE, sizeof(STOP_SEQUENCE));
199
-
214
+
200
215
digitalWrite(LED_BUILTIN, HIGH);
201
216
} else {
202
217
blinkLED(20);
@@ -215,9 +230,9 @@ void sendCameraConfig(){
215
230
}
216
231
217
232
void loop() {
218
-
if(!Serial) {
233
+
if(!Serial) {
219
234
Serial.begin(115200);
220
-
while(!Serial);
235
+
while(!Serial);
221
236
}
222
237
223
238
if(!Serial.available()) return;
@@ -227,26 +242,30 @@ void loop() {
227
242
switch(request){
228
243
case IMAGE_SEND_REQUEST:
229
244
sendFrame();
230
-
break;
245
+
break;
231
246
case CONFIG_SEND_REQUEST:
232
247
sendCameraConfig();
233
248
break;
234
249
}
235
-
250
+
236
251
}
237
252
238
253
```
239
254
240
255
### Step 2: Web Serial
241
256
242
-
Open the Webserial Interface which allows you to view the camera feed. As data is streamed via serial, make sure you close the Serial Monitor during this process, else it will not work.
257
+
Open the [Webserial Interface](https://labs.oniudra.cc/en/labs/web-serial-camera) which allows you to view the camera feed. As data is streamed via serial, make sure you close the Serial Monitor during this process, else it will not work.
There is also a variety of video filters that can be applied.
266
+
267
+

268
+
250
269
## Summary
251
270
252
-
In this article, we learned a bit more about the camera connector on board the GIGA R1 board, how it is connected to the STM32H747XI microcontroller, and a simple example on how to connect an inexpensive OV7675 camera module through web serial.
271
+
In this article, we learned a bit more about the camera connector on board the GIGA R1 board, how it is connected to the STM32H747XI microcontroller, and a simple example of how to connect ArduCam camera modules through web serial.
0 commit comments