At age 17 he went to London to serve an apprenticeship as a civil engineer, but through the help of Charles Wheatstone he left engineering to accept a position at the Royal Greenwich Observatory under George Biddell Airy.