This tutorial is on how to use arduino uno and esp32 cam.
The esp32 cam is a low-cost module that has Wi-Fi and bluetooth capabilities. It also supports TF cards or micro SD cards
The esp32 cam pinout is as follows:
To program this module follow the diagram as shown:
Watch this video to know how to install esp32 add-on.
The sketch we will be using is the CameraWebServer sketch which is located in the File -> Examples -> esp32 -> camera -> CameraWebServer or similar.
Press the GPIO0 to GND button and power the esp32 cam. If you see a bright flash for a few millisecond and then off you are good to go.if not leave the reset button and unplug it and re-plug it again with the GPIO0 to GND button pressed. Repeat the process until you get a small duration flash.
Go to tools and set the following as shown
- Upload speed: 15200
- Flash frequency: 40mhz
- Flash mode: QIO
- Partion scheme: Huge App
Make the necessary changes:
Select your model
// Select camera model
//#define CAMERA_MODEL_WROVER_KIT // Has PSRAM
//#define CAMERA_MODEL_ESP_EYE // Has PSRAM
//#define CAMERA_MODEL_M5STACK_PSRAM // Has PSRAM
//#define CAMERA_MODEL_M5STACK_V2_PSRAM // M5Camera version B Has PSRAM
//#define CAMERA_MODEL_M5STACK_WIDE // Has PSRAM
//#define CAMERA_MODEL_M5STACK_ESP32CAM // No PSRAM
#define CAMERA_MODEL_AI_THINKER // Has PSRAM
//#define CAMERA_MODEL_TTGO_T_JOURNAL // No PSRAM
Uncomment your ESP32 cam model.
My model is AI thinker so comment everything and uncomment #define CAMERA_MODEL_AI_THINKER
.
Then
const char* ssid = "******";
const char* password = "*******";
Change ssid to your wifi name and password to your wifi password.
After that upload the code.
Wait for some time and if it shows somthing like:
Leaving
Hard resetting via RTS pin
Then open the Serial Monitor and click the reset button. Then you should see a link(which is your IP address) and go to the address.
In the bottom of the website there will be a Start Stream button and click on that. Then you should see your esp32 cam feed. Here you can adjust settings, etc to get best quality.
you are good to go for any other projects!!
I hope this inspires new projects with the esp32 cam and let me know what they are, how they work, etc. I am not an esp32 pro or anything having spent 6 days trying to upload code but it was worth the time.
Any questions feel free to tell me in the comments. I will try to answer.
Comments
Please log in or sign up to comment.