A project I completed which takes input from a pendulum connected to an Arduino, and collects this data so pendulum motion can be studied. A potentiometer was connected to the inputs of an arduino, ...
Try running the driven_pendulum.py script without any arguments to get an idea of how the pendulum works. Use the --help flag for an explanation of which optional arguments you can pass in to change ...