Pretty Smart Dog Toy

An ESP32-powered dog puzzle toy that automatically adjusts its difficulty based on how well the dog is performing — keeping dogs engaged without frustrating them.
Overview
The Pretty Smart Dog Toy is an interactive puzzle toy designed to keep dogs mentally stimulated. Unlike static puzzle toys that become boring once mastered, this toy continuously adapts its difficulty to match the dog’s skill level, using onboard sensors and logic to track performance in real time.
Problem
Mental stimulation is critical for dog health and behavior. Research shows that dogs will keep attempting a puzzle independently as long as they succeed at least 60% of the time — but most commercial puzzle toys offer a fixed difficulty. Dogs either master them quickly and lose interest, or find them too hard and disengage entirely.
Solution
A dynamic difficulty system controlled by an ESP32 that tracks button presses, monitors success rate, and scales the puzzle accordingly. The toy rewards the dog with food when it solves the puzzle, and resets or increases complexity based on performance. A motion sensor ensures the toy only activates when the dog is awake and nearby.
Key Features
- Adaptive difficulty — puzzle level adjusts automatically based on success rate, targeting the 60% engagement threshold
- Food dispenser — physical reward mechanism that dispenses treats on successful puzzle completion
- 3 RGB buttons — full color backlighting provides visual feedback cues for each puzzle state
- Motion sensor + interval timer — detects when the dog is present and ready to play before activating
- Audio feedback — onboard buzzer for positive and negative sound cues
- Web interface — monitor performance stats and adjust settings remotely (future: add small screen to eliminate phone dependency)
- Easy-to-clean design — disassembly considered from the start; food-contact surfaces are accessible and washable
Technology Stack
- Microcontroller: ESP32 (Wi-Fi for web interface, GPIO for sensors/actuators)
- Mechanical: Helical gears with center ball bearing for smooth, quiet operation
- CAD: Custom-designed enclosure and gear system
- Fabrication: FDM 3D printing throughout
- Firmware: Embedded C++ with state machine for puzzle logic
Development Process
This project went through two full design iterations (IDC 1 and IDC 2) as part of an iterative design course.
Prototype (IDC 1)

The first iteration validated the core concept — adaptive difficulty with food reward — but had mechanical noise issues and a complex disassembly process.
Final Design (IDC 2)
The second iteration addressed both. Helical gears replaced spur gears to reduce noise. The enclosure was redesigned with a voronoi vent pattern for aesthetics and airflow, and the food dispensing mechanism was rebuilt for reliability.

Challenges and Learnings
- Mechanical noise: Spur gears in IDC 1 were unacceptably loud. Switching to helical gears with a center ball bearing in IDC 2 dramatically reduced noise — important since dogs are sensitive to sound.
- Dispenser reliability: Getting consistent single-treat dispensing required several geometry iterations in CAD before finding a reliable mechanism.
- State machine complexity: Tracking puzzle state, difficulty level, success rate, and motion detection simultaneously required careful firmware design to avoid race conditions.
- Design for cleanability: Food-adjacent hardware needs thoughtful disassembly paths — an easy-to-overlook constraint that shaped the enclosure design from the start.
Future Work
- Add a small screen to the device, eliminating the need for a phone or computer to view stats
- Expand puzzle modalities beyond button sequences (e.g., sliding panels, rotary elements)
- Log performance data over time to surface trends in engagement and difficulty progression
- Explore treat variety support (different sizes/shapes in the dispenser)