gudiom / ESP32-Cam-LED-web-control

Arduino code for ESP32-cam with LED web control of the onboard LED

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESP32-Cam-LED-web-control

Taken from the official Espressif ESP32 camera examples: https://github.com/espressif/arduino-esp32/tree/master/libraries/ESP32/examples/Camera/CameraWebServer

I have copied and changed the status_handler. When calling the pages:

http://ipcam/ledon

Or

http://ipcam/ledoff

Then the GPIO4 will set to HIGH or LOW, the LED goes on or off and a simple JSON output with LED:true or LED:false is generated. It's not pretty but it works. GPIO4 should only be responsible for the LED when no SD card is insert. I have never worked with the intern sd card slot.

Changes were made only to app_httpd.cpp

Have fun with it.

Setup

Wiring and settings as usual:

I flash with 5V, don't forget to connect IO0 to GND during flashing and de-wire it during testing.

fritzing of the wiring

Arduino Settings

screenshot of arduino settings

About

Arduino code for ESP32-cam with LED web control of the onboard LED


Languages

Language:C 66.6%Language:C++ 33.4%