AI Camera

by PushpendraC2 in Circuits > Arduino

669 Views, 12 Favorites, 0 Comments

AI Camera

Copy of Copy of THIS DIY DEVICE CAN TRACK ISS (8).png
Making an AI Camera 📸🔥 #arduino #coding #ai

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

IMG20250215125352.jpg
IMG20250215125419.jpg
  1. ESP32-CAM Module
  2. ESP32 CAM Programming Board
  3. OLED Display
  4. Breadboard
  5. Buzzer
  6. 3 * Push Buttons
  7. 3 * 10k Resistors
  8. Wires
  9. Micro USB Cable
  10. Cable Cutter
  11. Double Sided Tape

Solder ESP32 CAM Board With Perfboard

IMG20250215125900.jpg
Screenshot 2025-02-28 233619.png

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

IMG20250215130200.jpg

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

Connect the Buttons and Buzzer

IMG20250215130610.jpg

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

Connect the OLED Screen

IMG20250215130741.jpg

Connect the OLED screen on the breadboard.

Make the Connections According to the Circuit Diagram

Screenshot 2025-02-28 234357.png
IMG20250214201033.jpg
IMG20250215123726.jpg

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.

const char* ssid = "<WIFI-SSID>";
const char* password = "<WIFI-PASSWORD>";
const String apiKey = "<OPENAI-API-KEY>";

Disconnect the Ground Pin

IMG20250215130032.jpg

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

thumbnail-right.jpg
thumbnail-left.jpg

Now the AI Camera is ready to use. You can configure different button with different prompts.

Following are some examples:

  1. Summarize the image.
  2. Solve this math problem
  3. Translate the text in English
  4. Tell the weather in the image.

I hope you liked this project.

Thank you