Artificial Intelligence is no longer limited to powerful computers or cloud servers. Today, even compact and affordable boards like the ESP32-CAM can perform real-time image recognition. In this project, we build an ESP32 CAM Currency Recognition capable of identifying currency denominations using Edge AI (TinyML) directly on the device.
This system captures images using the ESP32-CAM, processes them locally using a trained machine-learning model, and identifies the currency note placed in front of the camera. LEDs provide instant visual feedback, while the Serial Monitor displays the detected denomination.
What You’ll Learn
- TinyML and Edge AI concepts
- ESP32-CAM camera interfacing
- Dataset collection and labelling
- Model training using Edge Impulse
- Deploying AI models on microcontrollers
How ESP32-CAM Currency Recognition Works
The ESP32-CAM captures an image of the currency note and runs a trained machine-learning model locally. Instead of sending images to the cloud, processing happens directly on the device — known as AI on Edge.
The trained model recognises visual features such as:
- Colour patterns
- Text layout
- Design elements
- Security markings
Once a denomination is detected:
- The corresponding LED glows
- The detected value appears in the Serial Monitor
This enables fast, private, and offline recognition.
Components Required
- ESP32-CAM Module
- USB-to-Serial Converter
- LEDs (for denomination indication)
- 100Ω Resistors
- Breadboard
- Jumper Wires
- Arduino IDE
- Edge Impulse Studio
System Workflow
The project follows three major stages:
1. Dataset Collection
Images of Indian currency notes (₹10, ₹20, ₹50, ₹500, etc.) are captured using the ESP32-CAM web interface.
A plain background and proper lighting improve accuracy.
2. Model Training using Edge Impulse
Images are uploaded and labelled in Edge Impulse.
The platform:
- Processes image features
- Trains an object detection model
- Evaluates accuracy using performance metrics
The trained model is then exported as an Arduino library.
3. Deployment on ESP32-CAM
The trained model is uploaded through Arduino IDE.
After deployment, the system works completely offline.
Hardware Setup
The ESP32-CAM connects to a USB-to-Serial converter for programming. LEDs are connected to GPIO pins through resistors, where each LED represents a specific currency denomination.
When a note is placed under the camera:
- Image is captured
- Model processes the frame
- Matching denomination LED turns ON
Real-World Performance
For reliable detection:
- Keep the camera fixed at a stable angle
- Maintain consistent lighting
- Ensure the full note is visible
Under proper conditions, the system successfully recognises different Indian currency notes in real time.
Applications
- Assistive device for visually impaired users
- Automated retail currency validation
- Smart vending machines
- Currency counting systems
This ESP32-CAM Currency Recognition project demonstrates how embedded AI and TinyML can bring intelligent vision capabilities to low-cost hardware. Using Edge Impulse simplifies the entire workflow - from data collection to deployment - making edge AI accessible even for students and hobbyists.
By combining computer vision with microcontrollers, this project opens the door to real-world applications in automation, accessibility, and smart financial systems. It’s a powerful example of how modern embedded systems can see, analyse, and respond intelligently - all without the cloud.
Robotics Projects |Arduino Projects | Raspberry Pi Projects|
ESP32 Projects | AI Projects | IoT Projects