The dog was illustrated on card stock that was cut out and mounted to a piece of cardboard. A hole was made in the cardboard for the servo motor which has the dog's tailed tapped to it.
When the Arduino sketch is started, the dog loops through the programmed emotions; first sadness, then alert, and finally happiness. I used for loops and delays to control how long long the dog stays in each emotional state as I could not get millis() working the way I wanted.
Servo Schematic |
ServoDog Sketch |
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.