Software Set Up

Version 20 (J. Simmons, 10/29/2017 04:40 am)

1 1 J. Simmons
h1. Software Set Up
2 1 J. Simmons
3 2 J. Simmons
{{>toc}}
4 2 J. Simmons
5 20 J. Simmons
h2. TODO
6 20 J. Simmons
7 20 J. Simmons
* Update Arduino library installation instructions (Bounce2 and ArrduinoJSON are available from the Arduino IDE) - see Firmware README.txt
8 20 J. Simmons
9 2 J. Simmons
h2. Introduction
10 2 J. Simmons
11 15 J. Simmons
These instructions cover the software set up of a newly built Holoseat controller.  There are three pieces of software required to configure and use the Holoseat: the Arduino IDE, the Holoseat controller firmware, and the desktop configuration app.  
12 1 J. Simmons
13 6 J. Simmons
Note, these steps are for Windows (tested on Windows 7).  The process is similar on other platforms, but the desktop configuration app only runs on Windows for v0.3.  Future versions will support other platforms.
14 6 J. Simmons
15 3 J. Simmons
h2. 1. Download required Software
16 1 J. Simmons
17 5 J. Simmons
# Download the following files
18 6 J. Simmons
## "Arduino IDE":https://www.arduino.cc/en/Main/Software (v1.6.4+)
19 7 J. Simmons
## "Adafruit Windows Drivers":https://github.com/adafruit/Adafruit_Windows_Drivers/releases/download/1.0.0.0/adafruit_drivers.exe
20 18 J. Simmons
## Firmware source code ("v0.3.0":http://opendesignengine.net/dmsf_files/624?download= | "v0.3.5":http://opendesignengine.net/dmsf_files/655?download=)
21 19 J. Simmons
## Desktop configuration app executable("v0.3.0":http://opendesignengine.net/dmsf_files/623?download= | "v0.3.5":http://opendesignengine.net/dmsf_files/654?download=)
22 5 J. Simmons
# Unzip Holoseat files (see figure)
23 5 J. Simmons
## Create a new folder under Documents\ named Holoseat
24 5 J. Simmons
## Unzip the firmware source code to Documents\Holoseat
25 5 J. Simmons
## Unzip the desktop configuration app to Documents\Holoseat
26 2 J. Simmons
27 5 J. Simmons
!HoloseatDir.png!
28 1 J. Simmons
29 1 J. Simmons
h2. 2. Install Arduino IDE
30 6 J. Simmons
31 6 J. Simmons
# Run the Arduino IDE installer
32 6 J. Simmons
# Configure the Arduino IDE to work with the Feather board
33 1 J. Simmons
Complete details are available at learn.adafruit.com: "General details":https://learn.adafruit.com/adafruit-arduino-ide-setup/arduino-1-dot-6-x-ide | "Feather specific details":https://learn.adafruit.com/adafruit-feather-32u4-basic-proto/using-with-arduino-ide
34 7 J. Simmons
## Launch the Arduino IDE 
35 15 J. Simmons
## Open the Arduino IDE Preferences by selecting *File>Preferences* from the menu
36 7 J. Simmons
## Add @https://adafruit.github.io/arduino-board-index/package_adafruit_index.json@ to the *Additional Boards Manager URLs* field
37 7 J. Simmons
## Click the *OK* button to save the new preferences
38 7 J. Simmons
## Launch the Boards Manager by selecting *Tools>Board>Board Manager* from the menu
39 7 J. Simmons
## Select _Contributed_ from the *Type* select box
40 7 J. Simmons
## Select _Adafruit AVR Boards by Adafruit_ in the list of contributed boards then click the *Install* button
41 15 J. Simmons
## Click the *Close* button, then exit out of the Arduino IDE (you may optionally relaunch the Arduino IDE and verify the list of boards under *Tools>Board* includes the Adafruit Feather)
42 8 J. Simmons
## *ON WINDOWS ONLY* Install the Windows Adafruit Drivers (optional: only select the _Feather 32u4_ to minimize the number of drivers installed)
43 8 J. Simmons
!InstallFeatherDriver.png!
44 15 J. Simmons
# Copy the Arduino libraries to the Holoseat libs directory
45 9 J. Simmons
## Launch the Arduino IDE
46 9 J. Simmons
## Open the Arduino IDE Preferences by selecting File>Preferences from the menu
47 9 J. Simmons
## Note the Sketchbook location (typically Documents\Arduino)
48 9 J. Simmons
## Close the Arduino IDE Preferences and exit the Arduino IDE
49 9 J. Simmons
## Copy Documents\Holoseat\Firmware\libs\Bounce2 to the libraries folder in the sketchbook folder (typically Documents\Arduino\libraries)
50 9 J. Simmons
!LibrariesFolder.png!
51 2 J. Simmons
52 2 J. Simmons
h2. 3. Install Firmware on Holoseat Controller
53 2 J. Simmons
54 10 J. Simmons
# Launch the Arduino IDE
55 10 J. Simmons
# Plug the Holoseat controller into a USB port
56 15 J. Simmons
# Set the board type to _Adafruit Feather 32u4_ by selecting *Tools>Board>Adafruit Feather 32u4* in the menu
57 15 J. Simmons
# Set the port the Feather is connected to by selecting *Tools>Port>COM# (Adafruit Feather 32u4)* in the menu where # is an integer (see figure)
58 10 J. Simmons
!SelectComPort.png!
59 15 J. Simmons
# Open the Holoseat firmware in the Arduino by selecting *File>Open* and navigating to Documents\Holoseat\Firmware\holoseat_firmware\holoseat_firmware.ino
60 11 J. Simmons
# Confirm the firmware compiles by clicking the *Verify* button (with the check mark icon)
61 11 J. Simmons
# Flash the Holoseat controller with the firmware by clicking the *Upload* button (with the right facing arrow icon)
62 2 J. Simmons
63 2 J. Simmons
h2. 4. Install Desktop Configuration App
64 2 J. Simmons
65 14 J. Simmons
The desktop configuration app does not currently require any installation steps.  You can run it directly from Documents\Holoseat\HoloseatConfigurationUtility