- Download Arduino IDE
- Go to File > Preferences > Additional Board Manager URLs
- Enter in the textbox: http://s3.amazonaws.com/energiaUS/packages/package_energia_index.json
- Go to Tools > Board > Boards Manager
- Search for "Energia MSP432" and install the library
- After installing, select the board under Tools > Board > "Energia MSP432 Red Boards" > "Red LaunchPad MSP432P401R EMT"
-
Open "Calibrate.ino" in the folder Calibrate.
-
Upload to the TI-RSLK.
-
Check what serial port the TI-RSLK is under by going to Tools > Port and selecting a port (for example, COM3). Go to Tools > Serial Monitor and enter in any key. If the program prints out 5 lines of values, then the port is correct. Keep a note of this port.
-
Open "sensorcalibration.exe".
-
Enter in your serial port under Serial Port (for example, COM3). This is case-sensitive.
-
Enter in 9600 under Baud Rate.
-
Click the Connect button.
-
In between shifting your calibration paper, click the Read Sensors button to log the minimum and maximum IR readings for each sensor.
-
Copy the C code under the table to use as your minimum and maximum value arrays.
-
Go to File > Save As to save the C code in a .txt file.