 His Edinburgh house stood at the head of what is mow Ramsay Lane, just north of what is now the Camera Obscura.Andrew Ramsay was the third son of the Reverend Andrew Ramsay (d.1659), Minister of the Old Kirk, Edinburgh, and from 1620 – 1626 Professor of Divinity and Rector at Edinburgh University, a younger son of David Ramsay, 1534 – 1625, and Katherine Carnegie; and a great-grandson of William Ramsay of Balmain, 1510 – 1569.Sir Andrew's mother was Mary, daughter of Alexander Frazer, Laird of Dores.