If there are errors read the errors and do some debugging. If everything is successful you should see at the bottom of the screen that the build has succeeded. Now time to build the project, hit F7 on your keyboard this will build the project and create a hex file for you to program using the Avrdude. Copy and paste the code from my project onto your project area. Now that you are this far open up the led blink code I have included with notepad or notepad++(Recommended). You are given a nice template to start with. Search for this device on the list and select it. Notice that the name of the chip the arduino uses is the ATMEGA328p. You will then be prompted to pick the name of your device. Moving along after you have avrdude in your C: directory open up Atmel studio and start a new project notice I named my file HelloWorld(LED). Next you need to grab avrdude & and throw it in your C: home directory you can either download it from this site directory ( avrdude/ ) or you can download my copy here (include link) keep in mind that I made this page in 2012 and my avrdude might be outdated. With that said however the IDE limits your knowledge, many users find it hard to make the transition from the arduino to the pic or to a cheaper atmega chip such as the atmega8 (extremely useful and cheap 2$ a chip vs 10$ for 328p).Īssumptions: this tutorial assumes you use windows, assumes you have basic computer experience.įirst things first you will need to download and install Atmel studio.
#ATMEL 328P PINOUT HOW TO#
Hello World ( avrstudio & avrdude): Lose the IDEĪbstract: this article will show you how to use avrdude and Atmel studio 6 to program your arduino.īackground: The arduino is a brilliant educational tool with easy to use libraries in the arduino IDE.