Mocht het nog helpen, hier vind je een voorbeeld van wat je nodig hebt:
http:www.jo3ri.be/arduino/projects/barebonearduino-1