From 664df3c4c5f4940a4f807b6685874dea464d5bec Mon Sep 17 00:00:00 2001 From: Gary Servin Date: Thu, 15 Feb 2024 19:16:23 -0300 Subject: [PATCH] Add basic Platform IO instructions (#229) Signed-off-by: Gary Servin --- andino_firmware/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/andino_firmware/README.md b/andino_firmware/README.md index c8995ae9..f4337c8b 100644 --- a/andino_firmware/README.md +++ b/andino_firmware/README.md @@ -8,8 +8,25 @@ Check `encoder_driver.h` and `motor_driver.h` files to check the expected pins f ## Installation +### Arduino Verify and Upload `andino_firmware.ino` to your arduino board. +### PlatformIO +1. Install dependencies `sudo apt-get install python3.10-venv` +2. Install platformio +``` +curl -fsSL -o /tmp/get-platformio.py https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py +python3 /tmp/get-platformio.py +``` +3. Add platformio to your $PATH: +``` +echo "PATH=\"\$PATH:\$HOME/.platformio/penv/bin\"" >> $HOME/.bashrc +source $HOME/.bashrc +``` +4. Build and upload the firmware + - If you're using an arduino uno `pio run --target upload -e uno` + - If you're using an arduino nano `pio run --target upload -e nanoatmega328` + ## Description Via `serial` connection (57600 baud) it is possible to interact with the microcontroller. The interface is described in the [commands.h](src/commands.h) file. Here are the most used commands: