This project was developed with the Arduino Nano 33 BLE Sense. See https://docs.arduino.cc/hardware/nano-33-ble-sense.
The simple traditional option is to install the Arduino 1.0 IDE (brew install arduino
) or the new 2.0 RC IDE. However, the IDE is no longer required and development can be done entirely with VS Code and the Arduino CLI:
- Install the Arduino CLI with Homebrew
brew install arduino-cli
- Install Arduino Core with the CLI for the right board, e.g.
arduino-cli core install arduino:mbed_nano
for the Nano 33 BLE - Install the Visual Studio Code extension for Arduino (and C/C++ extension if necessary).
- You'll need to configure a few settings in the extension (if you don't have the Arduino IDE installed). "Use Arduino CLI" should be
checked
, "Arduino Command Path" should bearduino-cli
, and you'll also have to set "Arduino Path", e.g./usr/local/bin/
but that may be different on your system (though you can check the location withwhich arduino-cli
.) Then restart VS Code.
- Open the project folder
- Run the command "Arduino: Initialize" (to create local
.vscode/arduino.json
and.vscode/c_cpp_properties.json
files) - Select the board, Arduino Nano 33 BLE, in VS Code (bottom-right)
- Select the port it is connected to, e.g.
/dev/cu.usbmodem14301
- Verify/compile: Use the "Verify" button in the upper-right of VS Code or use the CLI:
arduino-cli compile --fqbn arduino:mbed_nano:nano33ble
- Upload to board: Use the "Upload" button or use the CLI (substituting the appropriate port):
arduino-cli upload -p /dev/cu.usbmodem14301 --fqbn arduino:mbed_nano:nano33ble glove
- BLE MIDI:
arduino-cli lib install BLE-MIDI
depends on:- BLE:
arduino-cli lib install ArduinoBLE
- MIDI:
arduino-cli lib install "MIDI Library"
- BLE:
- Proximity/gesture sensor:
arduino-cli lib install Arduino_APDS9960