Society of Robots
Search and Index Search Here

MISC
 Parts List
 Robot Forum
 Chat
 Member Pages
 Axon MCU
 Robot Books
 Shop
 Contact

SKILLS
 How To Build
  A Robot
  Tutorial

 Calculators
 Mechanics
 Programming
 Miscellaneous

 Robots
 Space

HARDWARE
 Actuators
 Batteries
 Electronics
 Materials
 Microcontrollers
 Sensors

SCIENCE
 Robot Journals
 Robot Theory
 Conferences


    Axon Microcontroller

    GETTING STARTED
    Installing Software


    Part #1: Installing Software
    Part #2: Setting up Hardware
    Part #3: Using the Bootloader

    NOTE: THESE ARE UPDATED INSTRUCTIONS FOR WEBBOTLIB
    TO SEE OLD INSTRUCTIONS CLICK HERE.


    STEP 1: Install WinAVR

    WinAVR will install the GNU Compiler and a ton of useful utilities.

    download WinAVR (29mb)

    For those with Windows 8.1, a problem and a fix has been reported.

    WinAVR


    STEP 2: Install AVR Studio

    AVR Studio is an IDE, assembler, and programming software all in one. When you want to write and compile code, this is the software you will be using. Install in this order (SP2 is not needed).

    AVR Studio, latest version ( 124mb+ )

    Further AVR Studio upgrades (untested by SoR) can be found on the AVR Studio Download page. Or for direct links to download tested upgrades go here. Because AVR Studio is not compatible with Mac or Linux, you might find this post and this post helpful. If you use Vista 64 bit, read this and this. And here are instructions for programming the Axon using Ubuntu.

    AVR Studio


    STEP 3: Download WebbotLib

    WebbotLib is GUI-based software that writes all the low-level code for you. It's very easy to learn and use.

    Save this file on your desktop: WebbotLib Downloader

    Run the program. You should see this pop-up:

    Double click 'Project Designer' as highlighted. In the new window that pops up, tell it where you'd like to install this new program. Do the same for 'WebbotLib V2' at the bottom. The other programs are optional. For additional help/instructions, please see the WebbotLib Downloader page.

    Everything you need to know about WebbotLib is in the WebbotLib pdf manual found in the folder you saved WebbotLib V2 at. In WebbotLib Downloader, you can also click Run for WebbotLib HTML Docs.

    WebbotLib is updated regularly - always try the latest version before reporting a bug. To keep updated, subscribe to this forum thread, but DO NOT POST SUPPORT QUESTIONS IN IT.


    STEP 4: Setup Project with Project Designer

    In step 3 you downloaded Project Designer, so a shortcut should now be on your desktop. Run the program, then start a new Axon project as shown in the below image. Click File -> New -> Axon

    Follow the official Project Designer instructions to finish your new project setup.

    An example tutorial video on how to use Project Designer:


    STEP 5: Run AVR Studio

    In this step, we will run AVR Studio.

    After generating code, go into the new code folder that Project Designer created for you. Look for a file with the extension .aps, and double click it. It will then open up AVR Studio for you with all the required configuration settings you need.

    AVR Studio should now look something like this:

    AVR Studio


    STEP 6: Compile Code

    The final programming step is to compile the code. This converts your code written in C to machine code in a .hex that only your specific microcontroller can read. You should do a Rebuild All the first time you compile the downloaded source code, if you manually replace any program files, or if you modify the generated files using Project Designer. Otherwise, use the faster Build command.

    Rebuild All

    If all went well, you should see this message after compiling. It will show how much memory you have used:

    Compiled Output

    If you get errors, and you are new to programming, it may be a little difficult to debug at first. Go back and check to make sure you followed all the steps, especially properly naming the files (a common error).

    A new .hex file can be found in your project folder. This is the compiled program that can be uploaded to your microcontroller. Whenever you modify your program, just click 'Build' and it will recompile a new .hex for you. Don't forget to Save before recompiling.

    Note: A common error you may get is

    "gcc plug-in: Error: Object file not found on expected location C:\Documents and Settings\User\My Documents\My_Robots\[your project name]\[your project name].elf

    Make sure your makefile specifies the output .elf file as [your project name].elf"

    If you get that error, it means you made a mistake naming your files. For example, do not put in spaces in either the file name or the file directory.


    STEP 7: Save Everything

    Lastly, save your project configuration.

    Save AVR Studio Project Configuration


    Now that you are done setting up software, continue to
    Part #2: Setting up Hardware >>>



Get Your Ad Here

Has this site helped you with your robot? Give us credit - link back, and help others in the forums!
Society of Robots copyright 2005-2014
forum SMF post simple machines