A collection of scripts I used to control multiple servo motors in sync with funky music. This project was so much fun. See the final awesome video on my blog at the link just below.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
audio_config_default.yml
beats.py
controls.py
damped_servo.py
lego.py
process_audio.ipynb

README.md

DampedServo

I have always wanted to control something interesting involving little servo motors. That's somewhat of an ill-defined dream, isn't it? But it has all been made possible by using my handy dandy Raspberry Pi computer, five servos, and my son's Lego blocks. I built a dancing robot arm and synchronized its motion to some funky music.

Full details are available on my blog post: http://www.smokedbits.com/2013/05/dancing-lego-and-five-servos.html

Files

  • damped_servo.py: Classes for controlling individual servos with natural motion.
  • beats.py: Functions for analyzing music contained in user-supplied audio files.
  • lego.py: Main dance controller tying together serovo control with timing derived from music beats.

Dependencies

Information