0% found this document useful (0 votes)
118 views12 pages

ESP32 Cam LED Blink

This document provides instructions for making an LED blink project using an ESP32 Cam board. It includes a list of necessary hardware supplies and links to purchase them. The steps explain how to install the ESP32 firmware, download the FT232RL driver, build a prototype circuit, and write a MicroPython script to blink the onboard LED. The script turns the LED on and off each second using pins 4 and the Pin and utime modules.

Uploaded by

Franco Palumbo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
118 views12 pages

ESP32 Cam LED Blink

This document provides instructions for making an LED blink project using an ESP32 Cam board. It includes a list of necessary hardware supplies and links to purchase them. The steps explain how to install the ESP32 firmware, download the FT232RL driver, build a prototype circuit, and write a MicroPython script to blink the onboard LED. The script turns the LED on and off each second using pins 4 and the Pin and utime modules.

Uploaded by

Franco Palumbo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

instructables

ESP32 Cam LED Blink

by BTechRam547

INTRODUCTION:

Hello everyone!. Today I am going to introduce you about ESP32 Cam board which is an ESP32 board with on board
camera(OV2640). This board is the best choice for making Face scanner, QR code scanner, web security camera and video
streaming etc. There is an on board LED Flash light, so we can also take pictures if there is no light. The board also have a
micro SD card slot, so we can store the captured pictures in the micro SD card. So I think that this cam board is really an
awesome one to make lots of IOT, AI projects. But here I am going to make an LED Blink project with it because this is a
basic introduction of ESP32 Cam module. The only think that we need to care about is that the ESP32 Cam board does
not have any USB connector or USB to UART converter chip, So we also need an USB to UART converter to upload the the
rmware and programs.
Supplies:

List of Necessary Hardware:

ESP32 Camera board


https://quartzcomponents.com/products/esp32-camera-development-board-wi -bluetooth-with-ov2640-camera-
module?_pos=1&_sid=6fe191208&_ss=r
Bread Board
https://quartzcomponents.com/products/small-breadboard-mini-solderless-board?_pos=1&_sid=99de09b75&_ss=r
Jumper Wires
https://quartzcomponents.com/products/65pcs-breadboard-jumper-cable?_pos=9&_sid=7ef602f2e&_ss=r
FT232RL USB to UART Converter
https://quartzcomponents.com/products/ft232rl-usb-to-ttl-3-3v-5-5v-serial-adapter-module?
_pos=1&_sid=aab1f797f&_ss=r
Micro-B USB Cable
https://quartzcomponents.com/products/arduino-nano-cable?_pos=3&_sid=1771b5758&_ss=r

SOFTWARE:

IDE needed to Uploading the sketch and rmware on ESP32 Cam board.
Download link is given below:
https://thonny.org/

ESP32 Cam LED Blink: Page 1


ESP32 Cam LED Blink: Page 2
ESP32 Cam LED Blink: Page 3
ESP32 Cam LED Blink: Page 4
Step 1: Downloading the Firmware of ESP32 Cam Board

Before running the program we need to upload the new ESP32 Cam rmware on the board. You can download the
rmware for ESP32 Cam using the link given below:
https://github.com/ramjipatel041/ESP32-Camera-module.git

Step 2: Downloading the Driver for FT232RL Module

When we connect the FT232RL module to our laptop then if there is to driver installed on the compute then the
computer does not recognize the USB port. We can also check it by opening the device manager on the computer. If our
connected USB device(FT232RL) does not show then we need to download the driver for FT232 module. You can
download the required driver by the link given below:
https://ftdichip.com/drivers/d2xx-drivers/

ESP32 Cam LED Blink: Page 5


Step 3: Making a Prototype Circuit on Bread Board

Fix the camera module and and FT232 module on the breadboard as shown in my picture. Now connect the following
pins with male to male jumper wires using the given wiring scheme:
3V3----------->VCC (Connect the 3V3 pin of camera module to VCC Pin of FT232 Board)
IO0---------->GND (Connect the IO0 pin of the camera module to GND pin of the camera module itself)
UOR---------->Tx (Connect the UOR pin of the camera module to Tx pin of the FT232 module)
UOT----------->Rx (Connect the UOT pin of the camera module to Rx pin of the FT232 module)
GND----------->GND (Connect the GND pin of the camera module to GND pi of the FT232 module)

ESP32 Cam LED Blink: Page 6


ESP32 Cam LED Blink: Page 7
Step 4: Installing the Firmware on Camera Module

After making the prototype circuit on the bread board we are ready to install the rmware, For that open the Thonny IDE
on your laptop. click on 'tools' option and then select 'options...'. Again click on interpreter tab and now rst we have to
choose the interpreter. Since our camera module is an ESP32 board so we shall select the 'MicroPython(ESP32)'. In the last
option we have to choose the comport of our FT232 module. After choosing the right comport.
Click on 'Install or update MicroPython' option and then again choose the right com port and the choose the location of
the downloaded rmware and then click on 'install'. Now our rmware starts installing.
After completion of the installation process, remove the jumper wire connected between IO0 and GND pins so that our
camera module will in normal mode.
Now you will be able to see MicroPython v1.14-122-g9fef1c0bd-dirty on 2021-03-30; Camera Module (i2s) with ESP32
Type "help()" for more information. in your shell area.
Type print('hello world!') in the shell are and then hit enter and then you just see the 'hello word!' replied by the ESP32.
Perfect!. Now we are con rm that every thing is working.

ESP32 Cam LED Blink: Page 8


ESP32 Cam LED Blink: Page 9
ESP32 Cam LED Blink: Page 10
Step 5: Writing and Running a Blink Script

ESP32 Cam LED Blink: Page 11


Micro python Blink script.

from machine import Pin


import utime

flash_led = Pin(4, Pin.OUT) # on board flash led is connected to GPIO-4 pin

while True:
flash_led.off() #turns on the flash led
utime.sleep(1) #wait(delay) for one second
flash_led.on() #turns off the flash led
utime.sleep(1) #wait(delay) for one second

After running the above python program, the ash LED of the camera module starts blinking.

ESP32 Cam LED Blink: Page 12

You might also like