Documents » Pololu Orangutan USB Programmer User's Guide »6. Getting Started Using LinuxRecent versions of the linux kernel include support for the Pololu Orangutan USB Programmer as part of the usb-serial driver. We have tested the following instructions under Ubuntu Linux 7.04; if you experience any problems, we recommend you upgrade to the most recent version of your distribution. To begin working with AVRs under linux, you will need to install four software packages, which can be downloaded from their respective websites. Under Ubuntu Linux, these packages are provided in the “Universe” repository.
Once these packages are installed, you will be able to compile C programs for the AVR with gcc to produce hex files. We will not go into the details of writing C programs for the AVR here, but, as an example, we will show you how to use your linux computer and Orangutan USB programmer to make the user LED on your Orangutan, Orangutan LV-168, or Baby Orangutan blink. Download the archive BlinkLED.zip (14k zip) and unpack it on your linux computer. Copy the file BlinkLED/linux/Makefile into the BlinkLED/ directory. It may be necessary for you to edit this file, changing the settings at the beginning to reflect the locations where the AVR utilities were installed. In addition, the line
should be changed to
if you are using a Baby Orangutan with an ATmega48 processor. Lastly, if you are using an Orangutan (instead of a Baby Orangutan or Orangutan LV-168), you might want to edit BlinkLED.c by uncommenting line 2 and commenting out line 3 to account for the Orangutan’s lower clock frequency. At this point, you should be ready to compile the example program and load it onto the Orangutan. Plug in the programmer and type
You should see output like this:
This output indicates the Orangutan was successfully programmed, and the LED on the board should begin to blink. If programming was not successful, please take a look at our troubleshooting advice (Section 7). |
|
Home
|
Contact
|
About
|
Forum
|
US toll free: 1-877-7-POLOLU |