kopia lustrzana https://github.com/alanesq/esp32cam-demo
Update README.md
rodzic
3345dbe58c
commit
e2d418c91c
58
README.md
58
README.md
|
@ -14,21 +14,15 @@ So they are far from perfect but still for the price I think well worth having.
|
|||
|
||||
This can be used as a starting point sketch for projects using the esp32cam development board,
|
||||
it has the following features:
|
||||
<br>Web server with live video streaming and control buttons
|
||||
<br>SD card support (using 1-bit mode - data pins are usually 2, 4, 12 & 13 but using 1bit mode only uses pin 2)
|
||||
<br>Stores captured image in spiffs if no sd card is present
|
||||
|
||||
IO pins available for use are 12 and 13 (12 must not be pulled high at boot)
|
||||
|
||||
Option to connect a MCP23017 chip to pins 12 and 13 to give you 16 gpio pins to use (this requires the Adafruit MCP23017 library)
|
||||
|
||||
Flash led is still available for use on pin 4 when using an sd card
|
||||
|
||||
PWM control of flash/illumination lED brighness implemented (i.e. to give brighness control)
|
||||
|
||||
Can read the image as RGB data (i.e. 3 bytes per pixel for red green and blue value)
|
||||
|
||||
Act as web client (reading the web page in to a string) - see requestWebPage()
|
||||
<br>-Web server with live video streaming and control buttons
|
||||
<br>-SD card support (using 1-bit mode - data pins are usually 2, 4, 12 & 13 but using 1bit mode only uses pin 2)
|
||||
<br>-Stores captured image in spiffs if no sd card is present
|
||||
<br>-IO pins available for use are 12 and 13 (12 must not be pulled high at boot)
|
||||
<br>-Option to connect a MCP23017 chip to pins 12 and 13 to give you 16 gpio pins to use (this requires the Adafruit MCP23017 library)
|
||||
<br>-Flash led is still available for use on pin 4 when using an sd card
|
||||
<br>-PWM control of flash/illumination lED brighness implemented (i.e. to give brighness control)
|
||||
<br>-Can read the image as RGB data (i.e. 3 bytes per pixel for red green and blue value)
|
||||
<br>-Act as web client (reading the web page in to a string) - see requestWebPage()
|
||||
|
||||
|
||||
I have tried to make the sketch as easy to follow/modify as possible with lots of comments etc. and no additional libraries used,
|
||||
|
@ -62,26 +56,26 @@ Will capture an image and save it to the sd card
|
|||
There is a procedure which demonstarates how to get RGB data from an image which will allow for processing the images
|
||||
as data (http://x.x.x.x/rgb).
|
||||
|
||||
URLs:
|
||||
http://x.x.x.x/ Hello message
|
||||
http://x.x.x.x/photo Capture an image and save to sd card
|
||||
http://x.x.x.x/stream Show live streaming video
|
||||
http://x.x.x.x/img Show most recent image saved to sd card
|
||||
http://x.x.x.x/img?img=1 Show image number 1 on sd card
|
||||
http://x.x.x.x/rgb Captures an image and converts to RGB data (will not work with the highest
|
||||
<br>URLs:
|
||||
<br>http://x.x.x.x/ Hello message
|
||||
<br>http://x.x.x.x/photo Capture an image and save to sd card
|
||||
<br>http://x.x.x.x/stream Show live streaming video
|
||||
<br>http://x.x.x.x/img Show most recent image saved to sd card
|
||||
<br>http://x.x.x.x/img?img=1 Show image number 1 on sd card
|
||||
<br>http://x.x.x.x/rgb Captures an image and converts to RGB data (will not work with the highest
|
||||
resolution images as there is not enough memory)
|
||||
|
||||
GPIO PINS:
|
||||
The main io pins available for general use are 13 and 12 (12 must not be high at boot),
|
||||
14, 2 & 15 should also be available if you are not using the SD Card.
|
||||
You can use 1 and 3 if you do not use Serial.
|
||||
More info: https://randomnerdtutorials.com/esp32-cam-ai-thinker-pinout/
|
||||
BTW-You can use an MCP23017 io expander chip on pins 12 and 13 to give you 16 general purpose gpio pins.
|
||||
Note: If using an sd card you this will normally stop you using pins 12, 13 and the led on 4,
|
||||
but if you put it in to 1-bit mode it allows you to carry on using these pins.
|
||||
The command to use 1-bit mode in the Arduino IDE is: SD_MMC.begin("/sdcard", true)
|
||||
see an example of its use here: https://github.com/alanesq/esp32cam-demo
|
||||
Pin 16 is used for psram but you may get away with using it as input for a button etc.?
|
||||
<br>The main io pins available for general use are 13 and 12 (12 must not be high at boot),
|
||||
<br>14, 2 & 15 should also be available if you are not using the SD Card.
|
||||
<br>You can use 1 and 3 if you do not use Serial.
|
||||
<br>More info: https://randomnerdtutorials.com/esp32-cam-ai-thinker-pinout/
|
||||
<br>BTW-You can use an MCP23017 io expander chip on pins 12 and 13 to give you 16 general purpose gpio pins.
|
||||
<br>Note: If using an sd card you this will normally stop you using pins 12, 13 and the led on 4,
|
||||
<br>but if you put it in to 1-bit mode it allows you to carry on using these pins.
|
||||
<br>The command to use 1-bit mode in the Arduino IDE is: SD_MMC.begin("/sdcard", true)
|
||||
<br>see an example of its use here: https://github.com/alanesq/esp32cam-demo
|
||||
<br>Pin 16 is used for psram but you may get away with using it as input for a button etc.?
|
||||
|
||||
|
||||
----------------
|
||||
|
|
Ładowanie…
Reference in New Issue