ES-73BeginnerPremium
ESP32 Robot Dog That Sees You: Wags Its Tail and Barks (HC-SR04 + 2 Servos + Buzzer)
A robot dog that sleeps and snores when nobody is around, then wakes up when you reach out and tilts its head to say hello. The HC-SR04 is its eyes: the closer you get, the faster the tail servo wags, and under 15 cm it barks "woof woof". Walk away and it waits, then sulks: the head servo turns away and the buzzer sighs. Come back and it can't contain its joy. All built on a state machine, a median filter and non-blocking timing.
0.0(0)

You build a robot dog that wakes up when you reach out, tilts its head to say hello and wags its tail. A distance sensor is its eyes: the closer you get, the faster the tail goes, get too close and it barks, walk away and it sulks and turns its head, come back and it can't sit still with joy. You see for yourself how a few simple rules give a toy a real personality.
Source Code
Premium Content
The source code, block version and FAQ of this project are open to Premium members.
- All Project Code
- Block version
- Frequently Asked Questions
