Supplying power to a standalone ATMega328P-PU

samwhiteUK:
Thanks Cookies, so I need pin20 connected to 5V if I'm using the analog pins?

At least some of the Atmega chips won't work at all if you don't connect AVcc to the positive supply, even if you are not using the ADC. Always connect AVcc as well as Vcc, and connect AGnd as well as Gnd.