Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 2.07 KB

README.md

File metadata and controls

43 lines (27 loc) · 2.07 KB

Arduino Proxy

This is the repo for the Arduino proxy, a somewhat simple project that allows the rocket code to use an Arduino for generic input and outputs. See the documentation for more information .

Windows

If you plan on flashing the Arduino, you can't use WSL and just follow the Linux instructions like with the rocket code.

Installing dependencies

  1. Install PlatformIO Core: https://docs.platformio.org/en/latest/core/installation.html#installer-script
    • While it is possible to get it working with IDEs such as VSCode and CLion, from the team's experience there are often problems encountered while doing this. For general development it is recommended to get the PlatformIO integration with IDEs, but it is not needed to build the project.

If on Linux

  1. Install protobuf dependencies. This may be different on other non Ubuntu-based distros: sudo apt update && sudo apt install protobuf-compiler nanopb

If on Windows

  1. Install nanopb to your path

Note: If the platform-io installer script doesn't work, try installing with pip install -U platformio

Building

  1. Build the project: pio run

  2. Upload to a connected Arduino: pio run --target upload

Note: on Windows, you might get an access denied error. You need to temporarly turn off Windows Security settings in order to build ( Issue ). For this, go on Settings -> Update & Security -> Windows Security -> Open Windows Security -> Virus & Threat protection -> Virus & threat protection settings (Manage settings) and turn off the security settings.

Development

Make sure to open the Arduino project in another VSCode window and make sure it is not running in WSL if on Windows.