Posts

Showing posts from March, 2023

ESP32 CAM Based Stereoscopic Camera with Serial Interface

Image
Below is the code corresponding to this video. For ESP32 C-code, start with Arduino sketches for the ESP32 Camera board as the template; this will make life much easier as the sketches will include the dependencies... you just need to modify the .ino file with the new code. Also, you will want to make sure you have the latest ESP32 files installed through the Arduino IDE boards manager - there may be some incompatibilities with the camera configuration options otherwise. Available from "https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json". ESP32 C-Code for upload using Arduino IDE: Master ESP32 Camera Code: // Tinker Foundry // Master camera device // C-Code for ESP32 Stereo camera example - this is Master device code // Connect to slave ESP32 camera device via Serial2 UART (RXD2 and TXD2) for device to device image data transfer // Takes serial input from Serial interface to capture images and read back #include <dummy.h> #inclu

ESP32 Web Sockets - Transferring Image Raw Data

Image
Code listings... For the ESP32 C-code, please start off with a sketch from any existing example for ESP32 CAM and use that as your starting point... it will include app_httpd.cpp and camera_pins.h files. CameraWebSocket.ino // refer to https://shawnhymel.com/1675/arduino-websocket-server-using-an-esp32/ // To make sure WebSocketServer.h is available: //    Sketch > Include Library > Manage Libraries //    Search for "WebSockets Sattler' and install the library named "WebSockets by Markus Sattler" // // WARNING!!! PSRAM IC required for UXGA resolution and high JPEG quality //            Ensure ESP32 Wrover Module or other board with PSRAM is selected //            Partial images will be transmitted if image exceeds buffer size // #include "esp_camera.h" #include <WiFi.h> #include <WebSocketsServer.h> // Select camera model #define CAMERA_MODEL_WROVER_KIT // Has PSRAM #include "camera_pins.h" // This must come after camera m

Prototyping with a PCB Stripboard

Image
Using a PCB stripboard (or Vectorboard) for prototyping and breakout boards. In this video, I share a my method of cutting the copper traces using an electric engraver.