The Castle of Mey is formely known as Barrogil Castle which is located in Caithness was built between 1566 and 1572. This castle served as the royal residence at that time.
The residence is named Palace of Holyrood House. You can read more about it, below.
Castle of Mey
Blarney Castle is in Ireland, not Scotland. It is just outside of the city of Cork.
Glamis Castle.
Stirling Castle.
Aberdour Castle
Yes, Fyvie Castle.
Terpersie Castle is in Aberdeenshire, Scotland. Tulloch Castle is located in Dingwall, Scotland.
There is a Beaufort Castle in Luxembourg, in the Lebanon and in Scotland.
The castle
In the play "Macbeth" by William Shakespeare, King Duncan's castle is located in Inverness, Scotland.