Pendulum with horseshoe magnet