Arduino library to drive a bendulum or pendulum