For this assignment, I created a board that imitates playing catch with a dog. A solenoid is the “ball” being thrown, light races across 3 LEDs (as a dog would run across a yard) at varying speeds dependent on “dogEnergy”, and a servo wags its tail in an arc proportional to “dogHappiness”. The “dog” is happier/more tired when it is played with, and more energized/ less happy when its fed (it’s high standards for food are unfortunately rarely met).
Push buttons allow the user to play fetch with and feed the dog.
This is a video of my project: Happy and Hungry Pupper
Here’s the zip of my project: zipMotorEmotGillianNolan (feat .ino and .fzz)