Page 1 of 1

ESP32-CAM 101

Posted: Tue Nov 06, 2018 7:10 pm
by rp346@njit.edu
I just got ESP32-CAM with 2M Camera from alibaba.com. I order this assuming it can do whatever ESP32-Wemos with capturing pics.

First question came into my mind, how do I connect it to computer for flash ?

Anyone know how to set up ESP32-CAM to run microPython and then run basic code ? any link with information is appreciated.

Thanks

Re: ESP32-CAM 101

Posted: Tue Nov 06, 2018 7:52 pm
by loboris
See the ESP32-CAM Product Specification.pdf and schematic.

You must use some USB to UART adapter connected to GND, U0R & U0T pins. Use IO0 and RST button to enter the download mode and flash the MicroPython firmware.

Some usefull info can be found in ESP32_CAMERA_QR GitHub repository.

I'm planning to add the camera support to my MicroPyrthon port soon.

Re: ESP32-CAM 101

Posted: Sat Nov 10, 2018 3:37 am
by rp346@njit.edu
I connected UART wires to ESP32-CAM with following pins

Red: VCC
Green: U0T
White : U0R
Black: GND

But I don't see ESP32-CAM getting detected on mac. What is required here ?

Also can you explain this Use IO0 and RST button to enter the download mode and flash the MicroPython firmware.

Re: ESP32-CAM 101

Posted: Sat Nov 10, 2018 4:40 am
by OutoftheBOTS_
When the ESP32 starts up it checks the status of IO0 and if it is pulled to GND then the ESP32 enters boot loader mode ready to accept flashing of new bin file. If IO0 if high or floating then the ESP32 will just run the bin file that is already stored in flash.

Re: ESP32-CAM 101

Posted: Sat Nov 10, 2018 8:43 am
by loboris
rp346@njit.edu wrote:
Sat Nov 10, 2018 3:37 am
I connected UART wires to ESP32-CAM with following pins

Red: VCC
Green: U0T
White : U0R
Black: GND

But I don't see ESP32-CAM getting detected on mac. What is required here ?
If you are using the USBtoSERIAL cable like this one, green is TxD and has to be connected to U0R, white is RxD and must be connected to U0T on ESP32-CAM.

Red wire is +5V, so connect it to 5V pin on ESP32-CAM, Black wire is GND, connect it to GND pin.
VCC pin on ESP32-CAM is connected to either 5V or 3.3V depending which jumper is installed (5V or 3.3V), so if not shure, don't use it with this kind of USBtoUART cable, use the pin marked 5V for 5V power.

After connected, short IO0 to GND and press and release the RST button. ESP32-CAM should now be in flash dovnload mode and you should be able to flash it. Remove the IO0-GND connection.

First of all, check if your USBtoSERIAL adapter is detected on your OS without ESP32-CAM connected. The right drivers must be installed

Re: ESP32-CAM 101

Posted: Sun Nov 11, 2018 3:49 pm
by rp346@njit.edu
Thanks guys, it worked.