Giter Site home page Giter Site logo

esp32-cam's Introduction

esp32-cam

ESP32 Cam - TimeLapse, Streaming, Prusa Connect ..

Hardware

ESP32-CAM board with OV2640 camera module, there are several hardware versions of the board

  • original AI-Thinker board
  • different copies, some exact some with notable differences
  • S3 version with more PSRAM, faster

Flashing HW helper boards

  • CH340 chip, USB micro

  • CH340 chip, USB C, passtru dupont connectors for prototyping

Pinout

Instalation

Insert ESP32-CAM into helper board and connect it to PC.

Visual Studio Code with PlatformIO IDE

VSC with PlatformIO

Arduino IDE

Gremlins ate this part - rewrite needed ..

Using Camera

Connect to the DHCP assigned IP and enjoy!

Notable Weblinks

Web server listening port is 8080, changed from default 80 for easier router port-mapping, configurable at start of Web Server code

  • {CAM_IP:8080}/login
    enter credentials
  • {CAM_IP:8080}/espReset
    force complete ESP32-CAM reset
  • {CAM_IP:8080}/sdcard
    reinit SD Card after (re)inserting microSD
  • {CAM_IP:8080}/metrics
    output metrics for prometheus/grafana nerds
  • {CAM_IP:8080}/scan
    JSON display of neighbour WiFi SSID/Channels
  • {CAM_IP:8080}/archive
    browse saved timelapse pictures
  • {CAM_IP:8080}/prusa
    force upload of last captured photo to Prusa Connect

Configuration details

  • Camera Model
    uncomment only one of the #define that is correct for your camera board
    if you are using ESP32S3-CAM also copy ESP32S3-CAM board definition to PlatformIO dir C:\Users....platformio\platforms\espressif32\boards dir and use 'board = esp32s3cam' in PlatformIO ini
  • Config Definitions
    several interesting #defines
    • set #undef HAVE_CAMERA if you don't want to use camera (OV sensor misbehaving or similar)
    • set ESP_CAM_HOSTNAME for your cam board name
    • set CAM_SERIAL if you have several camera boards
    • set FLASH_ENABLED true if you want to use flash LED, currently working only on AI-Thinkers
    • set #undef HAVE_SDCARD if you don't want to use microSD
    • set TIME_LAPSE_MODE true for camera board to start saving interval photos to microSD
  • Prusa Connect Setup
    • login to Prusa Connect
    • choose registered printer
      • open 'Camera' menu
      • click on 'Add new other camera' and note Token text (copy to clipboard)
      • paste that text in credentials line
        static const char* prusaToken = "paste_here";
      • generate fingerprint text with uuidgen command and paste that text in credentials also
      • compile and upload the firmware to the cam board, in a minute or so picture should be appearing on Prusa Printer Web

ToDo

  • [] add AP/Config mode at the very first start
  • [] add GUI config mode for hardcoded #defines
  • [] rewrite archive GUI to be much more pwetty
  • [] better doc about all hardcoded links
  • [] better doc about PC USB drivers

esp32-cam's People

Contributors

mozgy avatar

Stargazers

 avatar  avatar ZeroCircle avatar  avatar

Watchers

 avatar

esp32-cam's Issues

prusa connect only reacts on manual refresh

thanks for the great work first!
i got a xiao sense setup. seems everything worked quite fine, i got the prusa connect registered, can adjust and view the webstream, but the camera picture in prusa connect only ever changes when i type 192.169.1.xxx:8080/prusa in my browser and let it push the pic there manually.

refresh rate

is there a chance to make prusa connect refresh the camera picture in shorter intervals?

Not working without connection to PC

Hi,
great project first of all, thanks a lot :-)
I'm using it with a XIAO ESP32 S3 and it works great so far.

But I noticed, that the code is only working when connected to a PC/Notebook, but not when charged only through USB-C.

I think the issue is here:

void setup() {

  Serial.begin( 115200 );
  while( !Serial );   // TODO - rework all Serial outputs to log_info, log_error, log_debug
  ....

If there is no Serial present, it will wait forever. I commented the line while( !Serial ); in my code and now it works.
Just wanting to let you know :-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.