0% found this document useful (0 votes)
52 views24 pages

ESP32 Cam LED Blink: Projects (/projects) Contests (/contest) Teachers (/teachers) New

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 24

ESP32 Cam LED Blink by BTechRam547 (/member/BTechRam547/)

Projects (/projects) Contests (/contest)


Follow
Teachers (/teachers)
Download Favorite
(/search)
w I Made It
New(/editor)

(/)

ESP32 Cam LED Blink


By BTechRam547 (/member/BTechRam547/) in Circuits (/circuits/) > Microcontrollers (/circuits/microcontrollers/projects/) 582 3 Featured

Published Apr 3rd, 2023 Download Favorite


ESP32 Cam LED Blink by BTechRam547 (/member/BTechRam547/) w

auto=webp&frame=1&width=1024&fit=bounds&md=4cdb1648d33f4afa1e6d104bc4c84df0)
(https://content instructables com/FIE/KACH/LG15YBPH/FIEKACHLG15YBPH jpg?
ESP32 Cam LED Blink by BTechRam547 (/member/BTechRam547/) w
auto=webp&frame=1&width=1024&fit=bounds&md=d43214c2e743157df8b23f3ce1e85797)
(https://content.instructables.com/FSG/JRE7/LG0UEL5S/FSGJRE7LG0UEL5S.jpg?
ESP32 Cam LED Blink by BTechRam547 (/member/BTechRam547/) w
(/member/BTechRam547/)
By BTechRam547
(/member/BTechRam547/)
More by
https://www.instructables.com/me
the author:
(https://www.instructables.com/member/BTechRam547)

Follow

About: Myself Ramji Patel. I am an Electronic projects hobbyist and designer. In present I am pursuing my B-tech from
Institute of Engineering and Rural Technology, Prayagraj (Allahabad) More About BTechRam547 »
(/member/BTechRam547/)

INTRODUCTION:

Hello everyone!. Today I am going to introduce youauto=webp&frame=1&width=1024&fit=bounds&md=742e5376c1e86601b314e688421328de)


(https://content instructables com/FX9/KS5F/LG15YBPJ/FX9KS5FLG15YBPJ jpg?
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 firmware and
programs.

 Add Tip V Ask Question | Comment Download


ESP32 Cam LED Blink by BTechRam547 (/member/BTechRam547/)
Supplies
w
ESP32 Cam LED Blink by BTechRam547 (/member/BTechRam547/) w

(https://content instructables
auto=webp&frame=1&width=1024&fit=bounds)
com/FS8/OO9A/LG54PQ12/FS8OO9ALG54PQ12 jpg?

(https://content instructables
auto=webp&frame=1&height=1024&fit=bounds)
com/FDD/7CC0/LG15YBRX/FDD7CC0LG15YBRX jpg? (https://content instructables
auto=webp&frame=1&width=1024&fit=bounds)
com/FWM/TVW0/LG54PQ1K/FWMTVW0LG54PQ1K jpg?
List of Necessary Hardware:
ESP32 Cam LED Blink by BTechRam547 (/member/BTechRam547/) w
https://quartzcomponents.com/?

ESP32 Camera board

https://quartzcomponents.com/products/esp32-camera-development-board-wifi-bluetooth-
with-ov2640-camera-module?_pos=1&_sid=6fe191208&_ss=r
(https://learn.sparkfun.com/tutorials/how-to-install-ch340-drivers/all)

Bread Board

https://quartzcomponents.com/products/small-breadboard-mini-solderless-board?
_pos=1&_sid=99de09b75&_ss=r (https://learn.sparkfun.com/tutorials/how-to-install-ch340-
drivers/all)

Jumper Wires

https://quartzcomponents.com/products/65pcs-breadboard-jumper-cable?
_pos=9&_sid=7ef602f2e&_ss=r (https://learn.sparkfun.com/tutorials/how-to-install-ch340-
drivers/all)

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 (https://learn.sparkfun.com/tutorials/how-to-install-ch340-
drivers/all)
ESP32 Cam LED BlinkMicro-B USB Cable
by BTechRam547 (/member/BTechRam547/) w
https://quartzcomponents.com/products/arduino-nano-cable?_pos=3&_sid=1771b5758&_ss=r
(https://learn.sparkfun.com/tutorials/how-to-install-ch340-drivers/all)

https://www.amazon.in/? (https://learn.sparkfun.com/tutorials/how-to-install-ch340-drivers/all)

ESP32 Cam Board

https://www.amazon.in/Electronics-ESP32-CAM-Bluetooth-Development-
Camera/dp/B09PJKNCCD/ref=sr_1_4?
crid=1JVMCFUVRWFK2&keywords=esp32+cam&qid=1680807775&sprefix=esp32%2Caps%2C3
80&sr=8-4 (https://learn.sparkfun.com/tutorials/how-to-install-ch340-drivers/all)

Bread Board

https://www.amazon.in/OLatus-Ol-Breadboard-Gl-Points-Solderless-
Circuit/dp/B06XZ54VTN/ref=sr_1_14?
crid=2XBBNXHFR94AM&keywords=bread+board&qid=1680807811&sprefix=bread+board%2Ca
ps%2C364&sr=8-14 (https://learn.sparkfun.com/tutorials/how-to-install-ch340-drivers/all)

Jumper Wires (male to male)

https://www.amazon.in/REES52-75pcs-Jumper-wires-Solderless/dp/B01IMZ5VK8/ref=sr_1_9?
crid=2RQR32JPGR86V&keywords=jum%5Ber+wires&qid=1680807845&sprefix=jumper+wire%2
Caps%2C282&sr=8-9 (https://learn.sparkfun.com/tutorials/how-to-install-ch340-drivers/all)
ESP32 Cam LED BlinkFT232RL USB to
by BTechRam547 UART Converter
(/member/BTechRam547/) w
https://www.amazon.in/Easy-Electroncis-FT232RL-Converter-
Adapter/dp/B07F2FW34D/ref=sr_1_4?
crid=3NSNB7LHTWGV0&keywords=ft232rl&qid=1680807878&sprefix=FT232%2Caps%2C266&sr
=8-4 (https://learn.sparkfun.com/tutorials/how-to-install-ch340-drivers/all)

Micro-B USB Cable

https://www.amazon.in/Unbreakable-Charging-Transfer-Devices-MX-
2107/dp/B08XW18D4P/ref=sr_1_22_sspa?
crid=33MS76WJQM89Z&keywords=micro%2Bb%2Busb%2Bcable&qid=1680808012&sprefix=mi
cro%2Bb%2Bus%2Caps%2C270&sr=8-22-
spons&sp_csd=d2lkZ2V0TmFtZT1zcF9idGY&smid=A9ZK7QI498R39&th=1
(https://learn.sparkfun.com/tutorials/how-to-install-ch340-drivers/all)

SOFTWARE:
IDE needed to Uploading the sketch and firmware on ESP32 Cam board.

Download link is given below:

https://thonny.org/ (https://thonny.org/)
 Add Tip V Ask Question | Comment Download
Step 1: Downloading the Firmware of ESP32 Cam Board
ESP32 Cam LED Blink by BTechRam547 (/member/BTechRam547/) w
Before running the program we need to upload the new ESP32 Cam firmware on the board. You
can download the firmware for ESP32 Cam using the link given below:

https://github.com/ramjipatel041/ESP32-Camera-module.git
(https://github.com/ramjipatel041/ESP32-Camera-module.git)

 Add Tip V Ask Question | Comment Download

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/ (https://ftdichip.com/drivers/d2xx-drivers/)

 Add Tip V Ask Question | Comment Download


Step 3: Making a Prototype Circuit on Bread Board
ESP32 Cam LED Blink by BTechRam547 (/member/BTechRam547/) w
ESP32 Cam LED Blink by BTechRam547 (/member/BTechRam547/) w

auto=webp&frame=1&width=1024&fit=bounds&md=8e64d69f5cf915760e36459cc63b95e1)
(https://content instructables com/FJG/ETC8/LG15YBOR/FJGETC8LG15YBOR jpg?
ESP32 Cam LED Blink by BTechRam547 (/member/BTechRam547/) w

auto=webp&frame=1&width=1024&fit=bounds&md=d9e5dc63568b5b4418187785a8935449)
(https://content instructables com/FV1/C9FY/LG15YBOY/FV1C9FYLG15YBOY jpg?
auto=webp&frame=1&width=1024&fit=bounds&md=554b5649e68376313674e3f9bfb3dc3a)
(https://content.instructables.com/FBL/ER91/LG0UEEUX/FBLER91LG0UEEUX.jpg?
ESP32 Cam LED Blink by BTechRam547 (/member/BTechRam547/) w

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)

 Add Tip V Ask Question | auto=webp&frame=1&width=1024&fit=bounds&md=6ca405c4708cd3ce09f621fa3ac2d139)


(https://content instructables
Comment Download com/FQX/ZAOA/LG15YBP8/FQXZAOALG15YBP8 jpg?
Step 4: Installing the Firmware on Camera Module
ESP32 Cam LED Blink by BTechRam547 (/member/BTechRam547/) w
ESP32 Cam LED Blink by BTechRam547 (/member/BTechRam547/) w

(https://content
auto=webp&frame=1&fit=bounds&md=b33a750f411eed73e7499cdfc6898053)
instructables com/F43/YTL8/LG15YC02/F43YTL8LG15YC02 png?
ESP32 Cam LED Blink by BTechRam547 (/member/BTechRam547/) w

After making the prototype circuit on the bread board we are ready to install the firmware, For
that open the Thonny IDE on your laptop. click on 'tools' option and then select 'options...'. Again
click on interpreter tab and now first 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 firmware and then click on 'install'. Now our
firmware starts installing. (https://content
auto=webp&frame=1&fit=bounds&md=85268b4a5b9e65c740e34f486cfde573)
instructables com/FHC/PANL/LG15YC0L/FHCPANLLG15YC0L png?

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.


ESP32 Cam LED BlinkType print('hello
by BTechRam547 world!') in the shell
(/member/BTechRam547/) w
are and then hit enter and then you just see the 'hello
word!' replied by the ESP32. Perfect!. Now we are confirm that every thing is working.
 Add Tip V Ask Question | Comment Download
Step 5: Writing and Running a Blink Script
ESP32 Cam LED Blink by BTechRam547 (/member/BTechRam547/) w
ESP32 Cam LED Blink by BTechRam547 (/member/BTechRam547/) w
ESP32 Cam LED Blink by BTechRam547 (/member/BTechRam547/) w
ESP32 Cam LED Blink by BTechRam547 (/member/BTechRam547/)
Micro python Blink script.
w
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 flash LED of the camera module starts blinking.

 Add Tip V Ask Question | Comment Download

Be the First to Share


Did you make this project? Share it with us!

I Made It!

Recommendations
ESP32 Cam LED Blink by BTechRam547 (/member/BTechRam547/) w

(/DIY-Arduino-Camera-Robot-Motorized-Pan-Tilt- (/Arduino-Water-Quality-Monitoring-System/)
Head/)
Arduino Water Quality Monitoring System
DIY Arduino Camera Robot (Motorized (/Arduino-Water-Quality-Monitoring-
Pan Tilt Head) (/DIY-Arduino-Camera- System/) by RowlesGroupResearch
Robot-Motorized-Pan-Tilt-Head/) by
 8116 8.7K
 872 7.0K

(/contest/gamedesign2023/) (/contest/reuse23/)

 Add Tip

V Ask Question

| Post Comment

We have a be nice policy.


Please be positive and constructive.
ESP32 Cam LED Blink by BTechRam547 (/member/BTechRam547/)
Add Images Post
w

Categories About Us Resources


 Circuits  Living (/living/) Who We Are (/about/) Sitemap (/sitemap/)
(/circuits/)  Outside Why Publish? Help (/how-to-write-a-
 Workshop (/outside/) (/create/) great-instructable/)
(/workshop/)  Teachers Contact (/contact/)
 Craft (/craft/) (/teachers/)
 Cooking
(/cooking/)
Find Us

(https://www.instagram.com/instructables/) (https://www.pinterest.com/instructables) (https://www.facebook.com/instructables) (https://www.twitter.com/instructables)

© 2023 Autodesk, Inc.

Terms of Service Privacy Statement Privacy settings | Legal Notices & Trademarks
(http://usa.autodesk.com/adsk/servlet/item?(http://usa.autodesk.com/adsk/servlet/item?Do not sell or share my personal information (http://usa.autodesk.com/legal-
siteID=123112&id=21959721) siteID=123112&id=21292079) (https://www.autodesk.com/company/legal-notices- notices-trademarks/)
| | trademarks/ccpa-do-not-sell)
|
(http://www.autodesk.com)

You might also like