From e2d418c91cc07abea3fc1bacb48e3ea7a2be3d7a Mon Sep 17 00:00:00 2001
From: Alan <60433566+alanesq@users.noreply.github.com>
Date: Tue, 29 Dec 2020 09:57:13 +0000
Subject: [PATCH] Update README.md
---
README.md | 58 +++++++++++++++++++++++++------------------------------
1 file changed, 26 insertions(+), 32 deletions(-)
diff --git a/README.md b/README.md
index dd367e1..a532f49 100644
--- a/README.md
+++ b/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:
-
Web server with live video streaming and control buttons
-
SD card support (using 1-bit mode - data pins are usually 2, 4, 12 & 13 but using 1bit mode only uses pin 2)
-
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()
+
-Web server with live video streaming and control buttons
+
-SD card support (using 1-bit mode - data pins are usually 2, 4, 12 & 13 but using 1bit mode only uses pin 2)
+
-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()
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
+
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
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.?
+
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.?
----------------