diff --git a/README.md b/README.md index 40ebb13..f22d1f3 100644 --- a/README.md +++ b/README.md @@ -95,19 +95,20 @@ as data (http://x.x.x.x/rgb). resolution images as there is not enough memory) GPIO PINS: -
The available pins are very limited on the esp32cam, my best understanding is: -
If using the sd card (must be in 1-bit mode) 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 also use pins 1 and 3 if you do not use Serial. -
Pin 4 is the onboard flash LED which you could possibly remove and use this pin for i/o but again sd card -
needs to be in 1-bit mode if you are using it otherwise the sd-card uses pin 4. pin 33 is another onboard -
led which could possibly be used? -
More info: https://randomnerdtutorials.com/esp32-cam-ai-thinker-pinout/ + +
13 free (used by sd card but free if using 1 bit mode) +
12 free (must be low at boot, used by sd card but free if using 1 bit mode) +
14 used by sd card (useable is SPI clock?) +
2 used by sd card (useabke as SPI MISO?) +
15 used by sd card (might be usable as SPI CS??) +
1 serial - output only? +
3 serial - input only? +
4 has the illumination/flash led on it - led could be removed and use as output? +
33 onboard led - possibly remove led and use as gpio? +
Some great info here: https://github.com/raphaelbs/esp32-cam-ai-thinker/blob/master/docs/esp32cam-pin-notes.md
BTW-You can use an MCP23017 io expander chip on pins 12 and 13 to give you 16 general purpose gpio pins, this requires the adafruit MCP23017 library to be installed. -
Pin 16 is used for psram but you may get away with using it as input for a button etc.?
Note: I have been told there may be issues reading files when sd-card is in 1-bit mode, I have only used it for writing them myself. -Some great info here: https://github.com/raphaelbs/esp32-cam-ai-thinker/blob/master/docs/esp32cam-pin-notes.md ----------------