Created
April 3, 2025 23:51
-
-
Save patterns/15458da45ad41001d15d8422d695c552 to your computer and use it in GitHub Desktop.
lab1 nano setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# change to the parent subdir where child projects are located | |
####cd ~/devel | |
# compile sketch | |
####arduino-cli compile --fqbn arduino:mbed_nano:nano33ble MyFirstSketch | |
# upload to board | |
####arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:mbed_nano:nano33ble MyFirstSketch | |
# install tensorflow lite micro library | |
####arduino-cli lib install ArduTFLite | |
# install harvard tinyml library | |
####arduino-cli lib install Harvard_TinyMLx | |
# install LMS9DS1 library | |
####arduino-cli lib install Arduino_LSM9DS1 | |
# install BLE library | |
####arduino-cli lib install ArduinoBLE | |
# test microphone | |
##cd ~/Arduino/libraries/Harvard_TinyMLx/examples && \ | |
## arduino-cli compile --fqbn arduino:mbed_nano:nano33ble test_microphone | |
##cd ~/Arduino/libraries/Harvard_TinyMLx/examples && \ | |
## arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:mbed_nano:nano33ble test_microphone | |
####arduino-cli monitor -p /dev/ttyACM0 --fqbn arduino:mbed_nano:nano33ble | |
# test imu | |
##cd ~/Arduino/libraries/Harvard_TinyMLx/examples && \ | |
## arduino-cli compile --fqbn arduino:mbed_nano:nano33ble test_IMU | |
##cd ~/Arduino/libraries/Harvard_TinyMLx/examples && \ | |
## arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:mbed_nano:nano33ble test_IMU | |
####arduino-cli monitor -p /dev/ttyACM0 --fqbn arduino:mbed_nano:nano33ble | |
# dedicated serial comm (use ctl-A E to enable echo); TODO how to do "Send" (isn't it the Enter key?) | |
sudo minicom -b 9600 -o -D /dev/ttyACM0 | |
# test camera | |
##cd ~/Arduino/libraries/Harvard_TinyMLx/examples && \ | |
## arduino-cli compile --fqbn arduino:mbed_nano:nano33ble test_camera | |
##cd ~/Arduino/libraries/Harvard_TinyMLx/examples && \ | |
## arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:mbed_nano:nano33ble test_camera |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment