Difference: DriverIntegrationIntoNopMicroPython (1 vs. 2)

Revision 22020-01-25 - UliRaich

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

Integrating the camera driver into MicroPython.

Programming the esp32-cam processor

Line: 13 to 13
  These will be the programming pins connected to USB to serial converter.
Added:
>
>
usbToSerial.png
 Here are the connections:

ESP32-cam  
Line: 27 to 29
  https://afnog.iotworkshop.africa/pub/AFNOG/DriverIntegrationIntoNopMicroPython/ESP32_CAM_V1.6.pdf
Added:
>
>
To flash a new program into the esp32 flash we must first connect GPIO 0 to ground, which can be done with a simple jumper. Then we can erase the flash with:

esptool erase_flash

I give the command with power on the esp32-cam off and switch power on as soon as esptool tries to connect to the esp32

Finally we can flash the program:

esptool write_flash --flash_size=detect --flash_mode dio 0x1000 binaryToBeFlashed

Again I give the command with power to the esp32 off and switch power on as soon as esptool tries to connect to the esp32.

This procedure will allow to flash our custom MicropPython with the camera driver installed.

 -- Uli Raich - 2020-01-25

Comments

Line: 37 to 53
 
META FILEATTACHMENT attachment="esp32-cam-Pinout.png" attr="" comment="" date="1579948678" name="esp32-cam-Pinout.png" path="esp32-cam-Pinout.png" size="175973" user="UliRaich" version="1"
META FILEATTACHMENT attachment="ESP32_CAM_V1.6.pdf" attr="" comment="" date="1579949933" name="ESP32_CAM_V1.6.pdf" path="ESP32_CAM_V1.6.pdf" size="26813" user="UliRaich" version="1"
META FILEATTACHMENT attachment="esp32-camSchema.png" attr="" comment="" date="1579950360" name="esp32-camSchema.png" path="esp32-camSchema.png" size="174124" user="UliRaich" version="1"
Added:
>
>
META FILEATTACHMENT attachment="usbToSerial.png" attr="" comment="" date="1579955944" name="usbToSerial.png" path="usbToSerial.png" size="103277" user="UliRaich" version="1"

Revision 12020-01-25 - UliRaich

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

Integrating the camera driver into MicroPython.

Programming the esp32-cam processor

The esp32-cam does not come with a serial USB interface as many other ESP32 processor boards do. This makes programming the device quite a bit more tricky.

esp32-cam.png

Having a look at the pin-out we see that GPIO 1 and 3 are connected to UoTXD and U0RXD respectively.

esp32-cam-Pinout.png

These will be the programming pins connected to USB to serial converter.

Here are the connections:

ESP32-cam  
Power 5V left side of esp32-cam external power supply 5V
GND left side of esp32-cam external power supply GND
GND top right of esp32-cam USB to serial GND
U0TXD USB to serial RX
U0RXD USB to serial TX
GPIO0 connect to GND when flashing
GND  
In order to understand how to program the device the circuit diagram will be very helpful.

https://afnog.iotworkshop.africa/pub/AFNOG/DriverIntegrationIntoNopMicroPython/ESP32_CAM_V1.6.pdf

-- Uli Raich - 2020-01-25

Comments

<--/commentPlugin-->

META FILEATTACHMENT attachment="esp32-cam.png" attr="" comment="" date="1579948676" name="esp32-cam.png" path="esp32-cam.png" size="229435" user="UliRaich" version="1"
META FILEATTACHMENT attachment="esp32-cam-Pinout.png" attr="" comment="" date="1579948678" name="esp32-cam-Pinout.png" path="esp32-cam-Pinout.png" size="175973" user="UliRaich" version="1"
META FILEATTACHMENT attachment="ESP32_CAM_V1.6.pdf" attr="" comment="" date="1579949933" name="ESP32_CAM_V1.6.pdf" path="ESP32_CAM_V1.6.pdf" size="26813" user="UliRaich" version="1"
META FILEATTACHMENT attachment="esp32-camSchema.png" attr="" comment="" date="1579950360" name="esp32-camSchema.png" path="esp32-camSchema.png" size="174124" 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