what hardware do I need?

I wonder if it was built on an arduino using a GPS module??

If you're standing still, a GPS module can't tell where north is.

You need a magnetometer (electronic compass) to do this.