Setting up Arduino
UPLOAD SOFTWARE USING ARDUINO IDE: A STEP-BY-STEP WALKTHROUGH
Please visit the Arduino Home Page for instructions how to install the Arduino IDE and upload code using it to your DIYino Stardust board: https://www.arduino.cc/en/Guide/Windows (instructions are also available for Mac OS X and Linux) The DIYino Stardust boards are configured as an Arduino/Genuino Uno compatible board, so when choosing your board please select Arduino/Genuino Uno. To upload open-sorce code to your DIYino board or home-brew solution using the Atmega328P, follow the steps described here:
Step 1: Download Arduino IDE from http://www.arduino.cc. Go to Software and then to Download the Arduino IDE.
Step 2: From this page you will be redirected to another page where you can donate to the developers of the Arduino IDE. Optional, you can choose not to donate by clicking on Just Download.
Step 3: The Arduino IDE will be downloaded. When download is completed, unzip the software anywhere you like to your PC.
Step 4: Download the lightsaber code of your choice, from example from GitHub: https://github.com/Protonerd/FX-SaberOS
Step 5: Navigate to the folder you unzipped the Arduino IDE and go to the libraries folder.
Step 6: This libraries folder contains basic libraries for Arduino. For the IDE to find the libraries necessary to compile your downloaded lightsaber code, you must copy all folders located in libraries folder of the lightsaber software ZIP file to this folder. Sounds more difficult than it really is, look at the next picture which clearly explains what is to be done:
And in the next picture you can see where the libraries of the FX-SaberOS software can be found:
Step 7: Now it’s time to start the Arduino IDE. Simply start the arduino.exe. Then go to File/Preferences and specify the folder containing the lightsaber code folder you downloaded (see path in the pic above and compate it to the path indicated under Sketchbook location):
Step 8: It is crucial that the name of the lightsaber code folder be the same as the .ino file in that folder, see in the next picture. I.e. if the ino file name is FXSaberOS.ino, the folder containing the .ino file also must be named FXSaberOS. Rename the folder accordingly.
Step 9: Once everything is settled, go to File -> Open -> /../../<lightsaber code .ino file name>. See next picture how it should look like once the code is opened. The Check and Arrow buttons can be used to compile or compile/download the code to your Arduino compatible board.
Step 10: Prior to downloading the code to your board, the type of your microcontroller needs to be specified. To do this, enter the Boards Manager as depicted on the following picture:
Once the Boards Manager starts, choose Arduino AVR Board, select the version 1.6.17 from the Select Version drop-down menu and click on install.
Step 11: Once installation of the Boards Manager is donw, specify your board by selecting Arduino/Genuino Uno from Tools/Boards (DIYino Stardusts v2 boards are all configured as Arduino/Genuino Uno, as well as newer runs of DIYino Prime boards. Some older Runs from the Prime configured the boards as Arduino Nano, since the original Prime was based on the Nano. Later on it was decided to configure the boards uniformly as Uno to benefit from the additional 1.5k code space)
Step 12: Connect the Stardust board to your PC using an USB cable. Once done, a new COM port shall appear under Tools/Port, which corresponds to your board. Select this COM port and start uloading code with the Arrow button.
That's all folks! Now go to Quick Start FXSOS to tailor your saber to your own individual preferences.