Disclosed herein are device and methods for determining an orientation of an instrument for inserting a medical device in a bone. One such method includes simulating an insertion point and an orientation of a simulated surgical hardware installation on a diagnostic representation of the bone, and then using an electronic device to align an instrument for inserting a surgical hardware installation at a desired orientation through an insertion point of the bone by indicating when an orientation of the electronic device is within a threshold of the simulated orientation.