Skip to content

This page is archived material from a previous course. Please check for updated material.

    Getting Started

    In order to get the TINAH board to operate, do the following:

    Step

    Downloads and Links

    Notes

    1.   Setup Wiring Environment & USB drivers on your computer. 

    Instructions from wiring.org.co here.

    The USB VCP driver allows your computer to recognize the Wiring board

    The Wiring Environment can be extracted and executed from a single directory, and does not need to go through an installation.

    The Wiring files has already been put onto the computers in Hebb 42, so skip this step.

    Use the USB drivers only if your computer does not automatically recognize and install the USB device.

    2.  Copy the Phys253 Library into the Wiring Environment.

    Use one of the following:

    phys253wiringv1.zip (use this in Hebb 42, since you do not have admin access on the machines)

    phys253wiringv1.exe (self-extracting Windows file)


    Close down the Wiring environment.

    Download the library directory “phys253libraryVx” and unzip the files into the folder “wiring-0xx/libraries”, where xx=the version name.

    Restart the Wiring environment.

    NB:

    • These files were written to use the features on the TINAH boards, like the LCD screen, servos, and motor drivers.
    • Do not put it into the similarly named”wiring-0xx/lib”).

    3.   Download and use the template file.

    phys253_templatefile.pde

    When writing any file using the TINAH board, make sure to include the following #include statements before the void setup() declaration, and two commands in the setup loop.

    4.   Power your TINAH Board

    The TINAH board requires external power to operate, either through an external battery or the power jack input.  Plugging the board into the USB port does not provide the power to operate the board.

    A small piece of plastic has been inserted into the power jack in the Wiring board – this is to prevent you from plugging power into that power jack; using this jack powers the Wiring board but does not power the TINAH shield board.

    5.   Write and Download code

    Once your code is written, press the “Verify” button to compile the code, then press “Upload to IO Board” as well as the reset button on the Wiring board to initiate program download.

    See the Toolbar instructions at Wiring

    When downloading code, the green and red LEDs just above the LCD screen should light up indicating communication transfer.

    A few things to look at in case the code doesn’t download:

    • In Wiring, check under “Tools –> Serial Port” that the correct serial port for the wiring board is selected.

    • Check under “Tools –> Firmware” to select version 2.0.

    • Unfortunately, the green and red LEDs are not very bright, and might be hard to see in a bright room.

    • Press the Reset button on the TINAH periodically may get the bootloader to connect (hold down for one second, wait 2 seconds, repeat a few times).
    • On Windows 7 machines, you may occasionally get a Visual C++ Runtime Error – r6061.  This appears to be caused since the wiring environment isn`t supported natively as an 64-bit application.


    5.   Try the Demo Program

    phys253_demoprogram.pde

    The above demo program shows some of the functionality of the board (LCD screen, digital and analog inputs, and motor/servo motor outputs).