Point it at a bunch of grapes and it tells you what they are
Build a pocket-sized object scanner. Press a button, the tiny ESP32-CAM takes a photo, an AI works out what it is, and a small colour screen shows the name, the type and two fun facts. It works on almost anything you can hold up to the lens.
Try it: pick something to scan
Ready!
Pick an object below
1.8" TFT 128x160
This is a demo of the kind of screen you will see. Your real scanner asks an AI, so its words will be different each time.
What you're building
A camera, a small screen and a helper in the cloud.
The Object Scanner has three parts that work as a team. The ESP32-CAM board has a tiny camera and a WiFi chip. A 1.8 inch TFT screen shows the results. And when you press the button, the board shrinks the photo, sends it over WiFi to an AI service, and gets a short answer back. The ESP32 then writes the object's name, its type and two fun facts onto the screen.
Eyes: ESP32-CAM
The OV2640 camera takes a photo of whatever you hold up.
Brain: an AI service
A big AI online looks at the photo and writes a short answer.
Screen: ST7735 TFT
A small colour display shows the name and fun facts.
- PressHold up an object and press the button.
- LookThe camera takes a photo.
- ThinkThe photo travels over WiFi to the AI.
- ShowThe answer appears on the screen.
Why does it need the internet?
Because recognising any object takes a very big AI, and the ESP32-CAM is very small.
- The ESP32-CAM is tiny. It has a camera and WiFi, but not enough memory to recognise thousands of different objects on its own.
- The AI lives online. The board sends a small photo over WiFi and gets back a few lines of text.
- It costs a little each time. AI services charge a very small amount per photo, so an adult should create the account and set a low spending limit.
- It can be wrong. Blurry photos and unusual objects can fool it, which makes a great science talking point.
A job for a grown-up
An adult needs to make the AI account, add a low spending limit and create the secret key (called an API key) that the scanner uses. This page uses the Claude API from Anthropic (see docs.claude.com). Other AI services that understand photos work in a similar way, but their request code is different.
Materials list
No soldering needed if your parts come with pin headers.
Electronics
- 1x ESP32-CAM (AI-Thinker) with OV2640 camera module
- 1x 1.8 inch ST7735 SPI TFT display, 128x160 (the red PCB kind)
- 1x FTDI USB-to-serial programmer (the ESP32-CAM has no USB port)
- 1x push button
- Breadboard and jumper wires (male-to-male and female-to-male)
- 5V 2A power supply or a USB power bank, with a short, good-quality cable
- USB cable for the FTDI programmer
Everything else
- 2 alligator clips or a small stand to hold the camera
- Objects to scan: grapes, a banana, a pencil, a toy, a resistor
- A plain sheet of paper or card for a clean background
- A computer with the Arduino IDE
- A 2.4 GHz WiFi network with internet (the ESP32-CAM cannot use 5 GHz)
- An AI account and API key (made by an adult)
Check before you start
Take the tiny microSD card out of the ESP32-CAM's slot if there is one. The card shares pins with the screen wires and can stop them working.
Circuit diagram
The screen and button use the pins on the bottom edge of the ESP32-CAM. The FTDI programmer is only for uploading.
Comments
Post a Comment