βοΈ Octopus Arduino Library
Depending on your Octopus, there are two different ways to configure Arduino IDE for development (Arduino Nano 33 BLE, and Arduino Nicla Vision). Both cases requires you do download libraries and configuring boards and ports to be able to flash the code needed for the Octopus.
Install Octopus Libraryβ
To start programming your Octopus, you need to install the Octopus Library from Arduino libraries. Go to library manager, and search Octopus:
Click Download. As the Octopus Library is dependent on other libraries, you will get a pop up window asking you to download the other packages. Click Install all.
The library source files can be found in GitHub: https://github.com/MIT-Senseable-City-Lab/octopus-fabrication/tree/main
Add the boards to your Arduino IDEβ
- Nano 33 BLE
- Nicla Vision
To add you board to the Arduino IDE you need to select Tools > Board > Boards Manager.
Search for Arduino Mbed OS Nano Board and click "install".
Open your fist sketchβ
Open the Octopus sample sketch: File > Examples > Octopus Library > octopus_sample. The sketch will appear in a new window. The window shows the example file to compile and upload to the Octopus. You donβt need to modify the file for it to work! It serves as a ready-to-use example for implementing the Octopus to collect environmental data. However, if youβd like, youβre free to customize the code right away!
Select your board type and port
You'll need to select the entry to point the editor to the currect Arduino board in the Tools > Board menu that corresponds to your Arduino board.
Tools > Board > ArduinoMbed OS Nano Boards > Arduino Nano 33 BLE
To add you board to the Arduino IDE you need to select Tools > Board > Boards Manager
Search for Arduino Mbed OS Nicla Board and click "install".
To setup the Nicla Vision, have a look at Flower (Image) Classification example.
To choose the serial device corresponding to your board, navigate to the Tools > Serial Port/Port menu. If you're unsure which port corresponds to your Arduino board, you can disconnect the board and reopen the menu. The port entry that disappears should be associated with the Arduino board. Reconnect the board and select that serial port from the menu.