Advertisement

Quick Links

Pololu Orangutan USB Programmer User's Guide
Pololu Orangutan USB
Programmer User's Guide
1. Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2. Contacting Pololu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3. Module Pinout and Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
4. USB-to-Serial Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
5.a. Using AVR Studio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5.b. AVR Studio in More Detail . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.c. Configuring Your Programmer for AVR Studio . . . . . . . . . . . . . . . . . .
5.d. Using AVRDUDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6. Getting Started Using Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8. Updating Your Programmer's Firmware . . . . . . . . . . . . . . . . . . . . . . . .
8.b. Uploading the New Firmware . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
© 2001-2010 Pololu Corporation
12
14
16
17
19
21
21
26
Page 1 of 29

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Orangutan and is the answer not in the manual?

Questions and answers

Summary of Contents for Pololu Orangutan

  • Page 1: Table Of Contents

    2. Contacting Pololu ........
  • Page 2: Overview

    Orangutans or 3pi with any software that can talk through a serial port to an AVR ISP. The unit also doubles as a USB-to-serial adapter (TX and RX only), allowing you to communicate with your Orangutan, 3pi, or any other microcontroller, through a terminal program.
  • Page 3: Contacting Pololu

    You can check the Orangutan USB Programmer page [http://www.pololu.com/catalog/product/ for additional information. We would be delighted to hear from you about any of your 740] projects and about your experience with the Orangutan USB programmer. You can contact directly or post on our forum . Tell [http://www.pololu.com/contact] [http://forum.pololu.com/]...
  • Page 4: Module Pinout And Components

    RX pad to your target’s TX pin (PD1 on the Orangutan/3pi) and the TX pad to your target’s RX pin (PD0 on the Orangutan/3pi) while in USB-to-serial mode. These pads expect logic-level signals (i.e. 0 V lows, 5 V highs).
  • Page 5 ISP connector should be lined up with the arrow to pin 1 on the Baby Orangutan PCB. You will only be able to achieve this alignment by connecting to the top side of the Baby Orangutan PCB, so be very careful not to solder your 6-pin ISP header onto the wrong side of your Baby Orangutan! 3.
  • Page 6 Note: The programmer does not deliver power to the device it is programming, so your Orangutan must be turned on to be programmed. If you are using programmer version PGM02A, attempting to program an unpowered device will have unpredictable results; this might randomly...
  • Page 7: Usb-To-Serial Drivers

    Pololu Orangutan USB Programmer User's Guide © 2001–2010 Pololu Corporation 4. USB-to-Serial Drivers Before you connect your Orangutan USB programmer to your computer, you must install the driver for the programmer’s CP2102 USB-to-UART [http://www.pololu.com/docs/0J7/] bridge. Once you have successfully installed your this driver, you should see the green USB status LED near the mini-B connector lit whenever it is connected to your computer.
  • Page 8: Getting Started Using Windows

    Orangutan, Orangutan SV-168, Orangutan SV-328, Orangutan LV-168, Baby Orangutan, or 3pi robot. Please note that this program will not work on the Orangutan X2. If you want to skip the steps that set up the LED-blinker code and jump straight into using your Orangutan USB programmer, you can download the AVR Studio project these steps would help you create and proceed straight to step 4.
  • Page 9 Creating a new AVR Studio project, step 1 2. Select AVR Simulator as the debug platform and then select the appropriate device for your Orangutan or 3pi. This will either be ATmega48, ATmega168, or ATmega328P depending on which chip your Orangutan or 3pi has. Click Finish.
  • Page 10 Orangutan rather than a Baby Orangutan, Orangutan SV-168, Orangutan SV-328, Orangutan LV-168, or 3pi robot. F_CPU should be defined as the clock frequency of your target device in Hz. For the Orangutan this should be 8000000UL (8 MHz), while for the Orangutan SV-xx8, Orangutan LV-168, Baby Orangutan, and 3pi robot this should be 20000000UL (20 MHz).
  • Page 11 © 2001–2010 Pololu Corporation AVR Studio’s programmer-selection dialog 6. If you have not done so already, connect your programmer to your Orangutan or 3pi using the 6-pin ISP cable. Make sure the cable is oriented so that pin 1 on the connector lines up with pin 1 on your target device! You can test your connection by going to the Main tab and clicking the Read Signature button.
  • Page 12: Avr Studio In More Detail

    FLASH contents is equal to file.. OK Leaving programming mode.. OK! If there were no problems, the red LED on your Orangutan, Baby Orangutan, or 3pi should now be flashing! Note that if you are trying this on a 3pi robot and you haven’t...
  • Page 13 57.6 kHz setting, which is the Orangutan USB programmer’s default ISP frequency. An 8 MHz device (e.g. the Orangutan) can be safely programmed using the 460.8 kHz setting and a 20 MHz device (e.g. the Orangutan SV-xx8, Orangutan LV-168, Baby Orangutan, and 3pi robot) can be safely programmed using the fastest 1.845 MHz...
  • Page 14: Configuring Your Programmer For Avr Studio

    (AVR Studio will time out waiting for a response from your Orangutan), but it will still let you set the fuses. Be aware that if you attempt to program flash or EEPROM using the 4.00 kHz setting, it might take somewhere on the order of five to ten minutes depending on the size of your program, so you should only use this ISP frequency as a last resort.
  • Page 15 AVR Studio is expecting. The first step in the configuration process is to determine the COM port of your Orangutan USB programmer. One way to do this is to bring up your computer’s Device Manager, expand the “Ports (COM &...
  • Page 16: Using Avrdude

    5.d. Using AVRDUDE It is also possible to program your Orangutan using AVRDUDE, which is included in the WinAVR package. To send the blinking LED program to your Orangutan, you would type...
  • Page 17: Getting Started Using Linux

    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 or Baby Orangutan blink.
  • Page 18 Thank you. rm BlinkLED.o BlinkLED.obj 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).
  • Page 19: Troubleshooting

    B cable. If it was previously working and has since stopped, try cycling the power by unplugging it from your computer and then reconnecting it. • Make sure you have installed the drivers the Orangutan USB programmer needs to operate.
  • Page 20 There could also be a short or cut trace somewhere on your target device. The ideal way to test for this would be to try programming a different device with your Orangutan USB programmer (or, conversely, try using a different programmer to program your target device).
  • Page 21: Updating Your Programmer's Firmware

    Note: Only programmer revision PGM02B supports firmware upgrades. If you have revision PGM02A, this section does not apply to your product. On August 20, 2008 we released a firmware update (firmware version 1.4) for the Orangutan USB programmer revision PGM02B that fixes a bug where the programmer could be left trying to drive some of its programming lines high if programming failed.
  • Page 22 Pololu Orangutan USB Programmer User's Guide © 2001–2010 Pololu Corporation 1. Install a suitable terminal program To perform the firmware update, you will need a terminal program capable of sending binary files. We recommend Tera Term Pro v2.3, available for free at http://hp.vector.co.jp/ authors/VA002416/teraterm.html...
  • Page 23 Pololu Orangutan USB Programmer User's Guide © 2001–2010 Pololu Corporation 2. Close any programmer serial port connections Close any existing COM port connections you have that might interfere with the upgrading process. For example, if you have AVR Studio open, make sure the AVRISP programming window is closed as this window ties up the COM port your programmer is using.
  • Page 24 “Ports (COM & LPT)” list on the right. Make note of the COM port associated with “Pololu USB-to-serial adapter”. (If you have another Pololu device that uses the CP2102 USB adapter, you might see a different device description.) In our example below you can see the port is COM6.
  • Page 25 Tera Term cannot connect to COM6, so we need to change the COM port number. Right- click the “Pololu USB-to-serial adapter (COMx)” and select “Properties”. Select the “Port Settings” tab of the resulting dialog box and click the “Advanced…” button.
  • Page 26: Uploading The New Firmware

    Pololu Orangutan USB Programmer User's Guide © 2001–2010 Pololu Corporation 1) find a way to free up one of those ports by disconnecting something 2) find another terminal program that will let you send binary files to ports greater than COM4 3) reassign your programmer to an “in use”...
  • Page 27 Pololu Orangutan USB Programmer User's Guide © 2001–2010 Pololu Corporation 1. Run Tera Term Pro v2.3 You will be greeted by a “TeraTerm: New connection” dialog box. Click cancel, then go to the “Setup” menu and select “Serial port…”. Configure the settings as shown below, substituting your own COM port. The baud rate should be 115200 with 8-bit data, no parity, one stop bit, and no flow control.
  • Page 28 Pololu Orangutan USB Programmer User's Guide © 2001–2010 Pololu Corporation 2. Enter the programmer’s firmware update mode When you connect your programmer to your computer via the USB cable, you should see both the red and green status LEDs light for approximately five seconds. During this time, the programmer is waiting for the proper input sequence that will put it into firmware update mode.
  • Page 29 Pololu Orangutan USB Programmer User's Guide © 2001–2010 Pololu Corporation 3. Loading the new firmware From the “File” menu, select “Send file….” Navigate to the directory that has the .pgm file you wish to upload and select the file. Before you click “Open,”...

Table of Contents