Quote Originally Posted by acourtjester View Post
Is there a place to down load the Adriano sketch for the THC?
I updated the manual with directions. But, you have to download that The updated manual is on Git Hub. But, I've copied that section of the manual below........ When you download the zip file from Git Hub (as directed below), you get a 5 subdirectories:
1) "ArduinoSource" (the Arduino THC source code that can be compiled and downloaded)
2) "HardwareDesign" (Eagle files for both versions of the board)
3) "Mach Plugin" (Mach files to talk to the THC w/ a display screen for the interface)
4) "THC Manual" (The instruction manual for the boards and software.)
5) "WindowsSource" (The source code for the Windows interface program to run the THC.)

The section from the manual is:

7. Programming the Arduino

- Download the Arduino Tool Set

The Arduino compiler and tool set are constantly being updated. The currently supported version is 1.05. The software should work on new versions, but changes in the compiler can sometimes cause compile errors that require minor changes.
To download the Arduino tool set:
1) Go to www.arduino.cc
2) Click the “Download” label in the top title bar
3) You can use either the “Windows Installer” or the “Windows (ZIP File)”.
a. If you use the “Windows Installed”, run the program after downloading
b. If you use the “Windows ZIP file”, open the file after downloading and copy to a convenient location (usually “C:\Arduino-1.0.5” (or something similar)
Run the Arduino IDE and make sure it works.
If you’ve not used the Arduino before, try some of the example software to get the hang of the software and downloading.

- Download the Source Code

To build the software and load it on the Arduino, you need to have the source code. All source code is maintained on GitHub (www.github.com).
1) Go to the Git Hub site
2) Enter “regeg/ArduinoTHC” in the search box on the top menu bard of the window.
The Git hub name you search on is case sensitive! You must match the case: “regeg/ArduinoTHC”
3) Once the project page comes up, click the “Download ZIP” on the right size of the page.
4) Save the ZIP file somewhere convenient
5) Open the zip file and copy the directories to a convenient location

- Building and Downloading the Source Code

Now that you have the source code downloaded, you must build it and program the Arduino.
1) Start the Arduino development environment
2) Enter the “ArduinoTHC” directory (in the location you previously downloaded it)
3) Enter the “ArduinoSource” Directory
4) Enter the “THC_REV-EM sketch”
5) Open the “THC_sketch.ino” file
6) The project should now be opened with a number of tabs across the top (all the files in the project)
7) Select the “Platform.h” file.
8) Set the “define” for the hardware you are using
a. If you are using an Arduino Micro Pro, make sure the line with “#define MICRO_THC” IS NOT commented out (a “//” denotes a comment
b. If you are using an Arduino Mega, make sure the line with “#deifne MICRO_THC” IS commented out.
9) Plug in your Arduino (if using an Arduino Mega, unplug the shield before programming)
10) Select the “Board” Menu
11) Select the board type you are using, either
a. Arduino Mega 2560, or
b. Arduino Leonardo (for the Micro Pro)
12) Select the serial port that the board is on
13) In the tool bar, click the icon with a check mark. The software should compile without errors.
14) Click the icon with the arrow pointing to the right to download the code to the board
Once programmed successfully, you should be ready to go.