Installing Course Software -- Windows

The following software is needed for this course:

In general you can simply follow the installation instructions available at the sites linked above. The following are some more detailed instructions. All of these instructions assume that the computer is connected to the internet with a reasonably high-speed connection. They will work on lower speed, but some of the downloads are quite large so it might take a while.

Install a Java Runtime Environment (JRE)

(If you already have a Java Runtime Environment for Java 5 or Java 6, you may skip this step. However there is little harm in not skipping it.)

The JRE is needed because Eclipse and the Teaching Machine are both written in Java. Furthermore the course notes require a Java plugin for your web browser.

  1. Download the installer
    1. Log on as an administrator
    2. Go to the Java download page
    3. Download the current JRE appropriate for your system.
  2. Run the installer
  3. You can now delete the installer.

Install MinGW

MinGW contains your C++ compiler.

  1. Download the installer
    1. Log on as an administrator
    2. Connect to the internet
    3. Click here to go to the MinGW site. Follow the links for Downloads, and download the intaller (mingw-get-setup.exe).
  2. Run the MinGW installer, mostly you can just accept the defaults.
    1. Use the pre-packaged repository catalogues
    2. You'll need to select to install the C++ Compiler
    3. The confirmation screen should look like this:
  3. You can now delete the installer from your computer.

Install the Eclipse IDE with AVR Plugin

Prerequisite: You should have the Java JRE installed before installing Eclipse.

Note: This version of Eclipse has been modified to work with the 3pi robot.

  1. Download the install file.
    1. Log on as an administrator
    2. Connect to the internet (a high-speed connection is needed).
    3. Download the Eclipse IDE with AVR Plugin by clicking on this link
  2. Extract the files
    1. Eclipse is distributed as a zip file, extract it to your computer by selecting the file, right-clicking and selecting Extract All….
    2. Select the destination folder C:\ (it will create a subfolder eclipse) and click on Extract

      Note: Eclipse must be extracted to C:\ or else the libraries will not work correctly and you will have to edit the path.

    3. Wait for the extraction to complete
    4. The eclipse executable is in the eclipse folder just created. You may find it handy to create a shortcut on the desktop, the startmenu and/or the taskbar.
  3. You can now delete the install zip file.

Fixing up the Environment Variables

Prequisite: You must have Eclipse and MinGW installed and be using Windows. These instructions use Windows 7 Professional, other OS versions may appear slightly different.

  1. Bring up the System Properties dialog. This can be done through the control panel: select System and Security then System then Advanced System Settings on the left. The dialog looks like this:

  2. Now click on Environment Variables… giving this…

  3. Grab the scroll elevator on the System variables pane and find the Path variable.
  4. Click on the Edit… button and add
    C:\MinGW\bin;C:\MinGW\mingw32\bin;
    to the start of the Path variable. This is actually two additions since the ';' separates pieces of the path. The additions must point to the bin directories in your installed MinGW, and must be added to the existing path rather than replacing it.

  5. Select OK, closing the edit System Variable window, then Ok on the Environment Variables window to finalize your edits.

Install WinAVR and the Programmer Drivers

  1. Download the installers
    1. Log on as an administrator
    2. Connect to the internet (a high-speed connection is needed).
    3. Download WinAVR by clicking on this link
    4. Download the Pololu USB AVR Progammer Drivers by clicking on this link
    5. Pololu AVR Library installer.
  2. Run the WinAVR file. Choose English and press OK. Allow it to install on your computer. You are finished installing WinAVR.
  3. Run the AVR Programmer Driver file. Click Install and the drivers will be installed.
  4. Run the Pololu AVR Library installer.

Install the Teaching Machine

Prerequisite: You must have the Java JRE Installed before you install the TM

  1. Download the installer
    1. Log on as an administrator
    2. Connect to the internet (a high-speed connection is needed).
    3. Download The Teaching Machine by clicking on this link
  2. Extract the zip file to somewhere convenient such as in the Downloads folder (but not C:\).
  3. In the extracted folder, the file TM-Distribution/index.htm contains further instructions and information. For Windows simply run TM-Distribution/Install-Windows/setup-tm.exe.
  4. If you want to use the TM eclipse plug-in then follow the instructions given in the file eclipse-plug-in-instructions.txt in the installation directory.
  5. You can now delete the installation zip and the extracted files (but not the installation directory).