electronics design for compass project