AI Camera
.png)

The AI Camera is a smart image processing project built using an ESP32-CAM module, an OLED screen, and three buttons. This device captures images and processes them using OpenAI's API. Each button is associated with a specific prompt, such as "Summarize the image." When a button is pressed, the camera captures an image, sends it along with the assigned prompt to OpenAI’s API, and displays the generated response on the OLED screen. This project is useful for AI-assisted image interpretation and automation tasks.
Supplies


- ESP32-CAM Module
- ESP32 CAM Programming Board
- OLED Display
- Breadboard
- Buzzer
- 3 * Push Buttons
- 3 * 10k Resistors
- Wires
- Micro USB Cable
- Cable Cutter
- Double Sided Tape
Solder ESP32 CAM Board With Perfboard


First of all we need to solder the ESP32 CAM board on a perfboard such that we have female pins for all the pins from the mounting board, so that we can connect the wires from external source in addition to the ESP32 Cam board that is mounted.
Paste the Mounting Board on Breadboard

Paste the ESP32 Cam mounting board on back of the breadboard using the double-sided tape.
Connect the Buttons and Buzzer

Connect the buttons with resistors and the buzzer on the breadboard.
Connect the OLED Screen

Connect the OLED screen on the breadboard.
Make the Connections According to the Circuit Diagram



Connect the OLED screen, buzzer and the buttons to the ESP32 Cam board according to the circuit diagram.
Upload the Code
Replace the value of following three variables and upload the code.
Downloads
Disconnect the Ground Pin

Disconnect the ground pin like this and connect the ESP32 Cam module back on the mounting board. We want to disconnect the ground pin here because when it is connected the board is loaded in boot mode.
Ready to Use


Now the AI Camera is ready to use. You can configure different button with different prompts.
Following are some examples:
- Summarize the image.
- Solve this math problem
- Translate the text in English
- Tell the weather in the image.
I hope you liked this project.
Thank you