The inspiration for this hack is the ending scene of Guardians of the Galaxy where Baby Groot dances to "I want you back by Jackson 5." Drax occasionally looks up from cleaning his tools and Groot freezes immediately. He only starts up again when Drax turns away.

Arduino Uno controls a stepper motor base under each Groot. An MSGEQ7 graphic equalizer chip filters live audio input and allows for switching between 7 frequency bands. Through trial and error, we wrote script to capture the song beat and trigger a reversal of motion on the stepper motors. This sharp direction change looks like a dance move!

Python utilizing OpenCV accesses a computer's built in webcam to detect and track faces. If a face is detected, Python writes to serial using pySerial and tells Groot to stop moving. As soon as no faces are in view, Groot starts dancing again.

Built With

Share this project: