Programming cable, Avr robot controller 1.1 software tools – SRS Labs SRS Robot Level 1 Kit User Manual

Page 10

Advertising
background image

AVR Robot Controller 1.1 Software Tools

Programming Cable

The kit is supplied with material to make a programming cable that works
with the BASCOM Basic Compiler or the AVRDUDE program (included
in the WinAVR suite for C/C++ programming). BASCOM and AVRDUDE
work with any third party programmer that has an Atmel 10-pin
programming socket, so you only need to build the cable if you don’t
already own a programmer.

The programmer uses a male DB25 connector that plugs directly into a PC
printer (parallel) port.

For this step, you will need:

ƒ

1 - programming adapter PCB

ƒ

3 - 330 ohm resistors (orange-orange-brown)

ƒ

1 - 2x5 pin right angle header

ƒ

1 - DB25 solder cup

ƒ

3’ - 10-conductor ribbon cable

ƒ

2 - IDC socket connectors (and strain-relief clips)


Solder the resistors, header, and DB25 connector to the board.

Hold an IDC connector with the sockets aiming down and the “pin 1” arrow on the right side. Align the ribbon cable
with the red stripe toward you, and slide the cable into the connector from the right
side until the edge of the cable just aligns with the left side of the connector. The
red stripe should be aligned with the arrow. Gently press on the top of the
connector to crimp it together. You may find it useful to use a vise or pliers, but be
careful, squeeze gently, and try to apply even pressure. After the connector is
together, fold the cable over the top so that it extends to the left. Insert a strain-
relief clip into the top. The final result should look like the picture on the right.

Install the second IDC connector on the other end of the cable in the same way. Plug one end of the cable into the
programming adapter, aligning the red stripe with pin 1, which is next to the “JP6” label. The other end plugs into
the programming header on the ARC board, with the red stripe aligned with the caret by pin 1.

AVR Robot Controller 1.1 Software Tools

This is a good point to test your robot controller. This section explains the basic terminology and procedure for
programming, and has instructions for loading your microcontroller with a program that will flash the green LED.

There are three main steps in teaching your robot to do something:
1. Write instructions (a “program”) for the robot to follow.
2. Translate (“compile”) those instructions into binary code that the robot can execute.
3. Convey (“download”) the binary code to the robot’s microcontroller using a special cable (the “programmer”).

Options for the first two steps are discussed below in the Tool Options section.

To download your program, you need to connect your computer to your robot using one of the following options:
• The least expensive option is to use the programmer included as part of the kit. It can be used for either BASIC or

C/C++ on Windows if you have a (DB-25) parallel port on your machine. (Note that it will most likely not work
to use a USB-to-parallel converter; they do not provide full parallel port functionality, just what's necessary for
printing!)

• If you are using a Mac, or a Windows machine without a parallel port, you can purchase an AVR-ISP

programmer from Digi-Key (part number ATAVRISP-ND) for $29. That programmer hooks up to a (DB-9) serial
port. You will also need to get a USB-to-serial converter if your machine does not have a serial port.

10

11-3-2005

Advertising