Measuring pendulum dynamics with magnetic field sensor
Yes, they do make such sensors already (google "angle sensor"). Typically, those contain a pair of orthogonal magnetic field sensors (Hall, GMR, you name it) and a small micro-controller which converts the raw measurements to angle using sin/cos transformation. There are cheaper varieties which will only give you raw sin/cos values, as well as more expensive varieties which can handle more DOFs.