Difference: TinyMLOnTheEsp32s3-wroom (1 vs. 3)

Revision 32023-09-02 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="TinyML"
Changed:
<
<

TinyML on the esp32-cam

>
>

TinyML on the esp32s3-wroom

 

Introduction

Changed:
<
<
The esp32-cam is a very cheap esp32 board with 4MB PSRAM and an integrated OV2640 2 MPixel camera. Because of these features, it is particularly interesting for TinyML work. There is a C driver for this camera as well as its MicroPython language binding.
>
>
The esp32s3-wroom is a very cheap esp32s3 board with 8MB of octal PSRAM and an integrated OV2640 2 MPixel camera. Because of these features, it is particularly interesting for TinyML work. There is a C driver for this camera as well as its MicroPython language binding.
 
Changed:
<
<
The disadvantage of this module is the limited number of GPIO pins that can be accessed for general use. https://randomnerdtutorials.com/esp32-cam-ai-thinker-pinout has a complete description of all GPIO lines available and how they are used.
>
>
The module has 40 external piins of which many are used internally however.
 
Changed:
<
<
The module has 16 external pins, of which already 6 are used for power and ground. There are 2 pins, of which either one can be used to power the esp32-cam marked, 5V and 3V3. The pin labelled Vcc should not be used to power the board, it is in fact an output pin.
>
>
ESP32S3_pinout.png
  GPIO 1 and 3 are the serial Tx and Rx respectively. If you have a board with a USB connector, then these pins stay unused. In the other case, you must connect the board to your PC through these pins for serial communication and for flashing, using an USB to serial converter. When connecting GPIO-0 to ground and resetting the esp32-cam it enters into flash mode. For normal operation, this connection must be removed.
Changed:
<
<
The esp32-cam features a SD-card interface using GPIO 14,15,2,4,12,13. GPIO 4 is also used for the flashlight. These pins are available as regular inputs/outputs if the SD card is not used.

For more details, you may consult the circuit diagram:

https://iotworkshop.africa/pub/IoT_Course_English/TinyMLOnTheEsp32s3-wroom/ESP32_CAM_V1.6.pdf

>
>
The esp32s3-wroom features a SD-card interface using GPIO 14,15,2,4,12,13. GPIO 4 is also used for the flashlight. These pins are available as regular inputs/outputs if the SD card is not used.
 

Connecting the MPU6050 accelerometer and gyroscope

The MPU6050 accelerometer and gyroscope is used in the magic wand example.

Line: 38 to 35
 
SCK BCLK GPIO 15
WS SEL GPIO 2
L/R LRCL GND
Deleted:
<
<
 -- Uli Raich - 2022-09-23

Comments

Changed:
<
<
<--/commentPlugin-->
>
>

<--/commentPlugin-->
 
META FILEATTACHMENT attachment="ESP32_CAM_V1.6.pdf" attr="" comment="" date="1663954833" name="ESP32_CAM_V1.6.pdf" path="ESP32_CAM_V1.6.pdf" size="26813" user="UliRaich" version="1"
Added:
>
>
META FILEATTACHMENT attachment="ESP32S3_pinout.png" attr="" comment="" date="1693649031" name="ESP32S3_pinout.png" path="ESP32S3_pinout.png" size="359825" user="UliRaich" version="1"

Revision 22022-09-24 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="TinyML"

TinyML on the esp32-cam

Introduction

Line: 7 to 7
  The disadvantage of this module is the limited number of GPIO pins that can be accessed for general use. https://randomnerdtutorials.com/esp32-cam-ai-thinker-pinout has a complete description of all GPIO lines available and how they are used.
Changed:
<
<
The module has 16 external pins, of which already 6 are used for power and ground. There are 2 pins one of which can be used to power the esp32-cam marked 5V and 3V3. The pin labelled Vcc should not be used to power the board, it is in fact an output pin.
>
>
The module has 16 external pins, of which already 6 are used for power and ground. There are 2 pins, of which either one can be used to power the esp32-cam marked, 5V and 3V3. The pin labelled Vcc should not be used to power the board, it is in fact an output pin.
 
Changed:
<
<
GPIO 1 and 3 are the serial Tx and Rx respectively. If you have a board with a USB connector, then these pins stay unused. In the other case, you must connect the board to your PC through these pins for serial communication and for flashing. When connecting GPIO-0 to ground and resetting the esp32-cam it enters into flash mode. For normal operation, this connection must be removed.
>
>
GPIO 1 and 3 are the serial Tx and Rx respectively. If you have a board with a USB connector, then these pins stay unused. In the other case, you must connect the board to your PC through these pins for serial communication and for flashing, using an USB to serial converter. When connecting GPIO-0 to ground and resetting the esp32-cam it enters into flash mode. For normal operation, this connection must be removed.
  The esp32-cam features a SD-card interface using GPIO 14,15,2,4,12,13. GPIO 4 is also used for the flashlight. These pins are available as regular inputs/outputs if the SD card is not used.
Added:
>
>
For more details, you may consult the circuit diagram:

https://iotworkshop.africa/pub/IoT_Course_English/TinyMLOnTheEsp32s3-wroom/ESP32_CAM_V1.6.pdf

 

Connecting the MPU6050 accelerometer and gyroscope

Added:
>
>
The MPU6050 accelerometer and gyroscope is used in the magic wand example.
 Here is the connection table:
MPU6050 ESP32-CAM
Vcc_In 5V
GND GND
SCL GPIO 14
SDA GPIO 15
Added:
>
>

Microphone connection

I2S microphones are used in the Wake Word Detection example. Two different microphone breakout boards are available and can easily be connected to the esp32-cam (see WakeWordDetection)

For the esp32-cam the connections are given below:

INMP441 SPH0645 ESP32-CAMG
GND GND GND
VDD 3V 3.3V
SD DOUT GPIO 14
SCK BCLK GPIO 15
WS SEL GPIO 2
L/R LRCL GND
  -- Uli Raich - 2022-09-23

Revision 12022-09-23 - UliRaich

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="TinyML"

TinyML on the esp32-cam

Introduction

The esp32-cam is a very cheap esp32 board with 4MB PSRAM and an integrated OV2640 2 MPixel camera. Because of these features, it is particularly interesting for TinyML work. There is a C driver for this camera as well as its MicroPython language binding.

The disadvantage of this module is the limited number of GPIO pins that can be accessed for general use. https://randomnerdtutorials.com/esp32-cam-ai-thinker-pinout has a complete description of all GPIO lines available and how they are used.

The module has 16 external pins, of which already 6 are used for power and ground. There are 2 pins one of which can be used to power the esp32-cam marked 5V and 3V3. The pin labelled Vcc should not be used to power the board, it is in fact an output pin.

GPIO 1 and 3 are the serial Tx and Rx respectively. If you have a board with a USB connector, then these pins stay unused. In the other case, you must connect the board to your PC through these pins for serial communication and for flashing. When connecting GPIO-0 to ground and resetting the esp32-cam it enters into flash mode. For normal operation, this connection must be removed.

The esp32-cam features a SD-card interface using GPIO 14,15,2,4,12,13. GPIO 4 is also used for the flashlight. These pins are available as regular inputs/outputs if the SD card is not used.

Connecting the MPU6050 accelerometer and gyroscope

Here is the connection table:

MPU6050 ESP32-CAM
Vcc_In 5V
GND GND
SCL GPIO 14
SDA GPIO 15

-- Uli Raich - 2022-09-23

Comments

<--/commentPlugin-->

META FILEATTACHMENT attachment="ESP32_CAM_V1.6.pdf" attr="" comment="" date="1663954833" name="ESP32_CAM_V1.6.pdf" path="ESP32_CAM_V1.6.pdf" size="26813" user="UliRaich" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback