- Download Arduino IDE from here
- TBD - need to add "how to download + run arduino IDE" detail for Windows Version
- If on Windows, you will need to install a driver to connect to the board:
- Open this link in a browser
- Click "adafruit_drivers_X.X.X.X.exe" to download it
- Double-click "adafruit_drivers_X.X.X.X.exe"
- Click "I Agree", "Next", "Close" to get the driver installed
-
Download Arduino IDE from here
-
Choose "Linux AppImage 64 bits (X86-64)"
-
The file "arduino-ide_2.1.1_Linux_64bit.AppImage" will be saved to your Downloads folder
-
Run these commands in a terminal
cd ~/Downloads/ chmod +x arduino-ide_* ./arduino-ide_*
-
The Arduino IDE should open
-
Click "File->Preferences"
-
Paste the following into the "Additional Board URLs" textbox:
https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
-
Click "Ok" to close the Preferences window
-
Click "Tools -> Board -> Boards Manager"
-
Search for "Arduino SAMD Boards" and click "Install"
-
Wait a few minutes for the installation to complete
-
Next, search for "Adafruit SAMD Boards" and click "Install"
-
Wait a few minutes for the installation to complete
-
Reopen the Arduino IDE
-
Click "File -> Quit"
-
Run these commands in a terminal
cd ~/Downloads/ chmod +x arduino-ide_* ./arduino-ide_*
-
-
Select "Tools -> Board -> Adafruit SAMD boards -> Adafruit ItsyBitsy M4 (SAMD51)"
-
Done with setup! Continue to a different section.
-
Go to the Flight SW repository release page (link)
-
Download the latest "Source code (zip)"
-
Unzip the folder
cd ~/Downloads unzip 0.0.1.zip
-
Inside, you will find a "libraries" folder
-
Copy the "libraries" folder
-
Navigate to "~/Arduino/", delete the "libraries" folder if it exists, and paste the copied "libraries" folder
rm -r ~/Arduino/libraries mkdir -p ~/Arduino/libraries cp -r ~/Downloads/0.0.1/libraries ~/Arduino
-
If you are updating a previously-installed version, you are done. Try building your project's
flying.ino
file in the Arduino IDE. -
If this is your first time downloading the software, follow these steps to get the template
flying.ino
: -
Make a folder somewhere on your PC to hold your project files. In this example, we will use
~/Projects/My_Experiment
-
Make the folder using a file explorer window, or run this command:
mkdir -p ~/Projects/My_Experiment
-
Copy
flying.ino
andflying.h
into your project foldercp ~/Downloads/0.0.1/flying.ino ~/Downloads/0.0.1/flying.h ~/Projects/My_Experiment/
-
Open the Arduino IDE (If you have not installed it yet, see the section for Windows or Linux) first
-
In the Arduino IDE, select "File -> Open"
-
Navigate to
~/Projects/My_Experiment/
and double-clickflying.ino
-
Click "Sketch -> Verify/Compile"
-
Wait a few seconds - the compilation should complete and output a message "Sketch uses XXX bytes of program..."
-
Move to the next section
-
Open the Arduino IDE (If you have not installed it yet, see the section for Windows or Linux) first
-
In the Arduino IDE, select "File -> Open"
-
Navigate to
~/Projects/My_Experiment/
and double-clickflying.ino
-
Connect a development board to your PC using a USB cable
-
Click "Tools -> Port -> /dev/ttyACM0 (Adafruit ItsyBitsy M4 (SAMD51))"
-
Click Tools -> Serial Monitor
-
To the right of the "Message" text box, there is a dropdown menu. If it says "New Line", select "Carrage Return" instead.
-
Click "Sketch -> Upload" (or press Ctrl+U)
-
Wait a few seconds for the code to compile and upload.
-
If all goes well, the serial monitor should output something similar to the following:
Verify successful System Boot Version XX Compiled Date => XX Source file => XX Free Memory = XX HEX or XX DEC Input 'T' to enter test within 15 seconds
-
You can now type a
T
and hit<Enter>
to start test mode. If you don't hitT
fast enough, hit the RESET button on the development board to reboot and output the prompt again.
- Open the Arduino IDE (If you have not installed it yet, see the section for Windows or Linux) first
- In the Arduino IDE, select "File -> Open"
- Navigate to
~/Projects/My_Experiment/
and double-clickflying.ino
- Edit the
Flying()
function inflying.ino
with your experiment's custom code - Click "Sketch -> Upload" (or press Ctrl+U)
- Your custom code will run