Installation¶
This is an installation guide for getting setup with the software side of things.
It assumes: - Linux Environment - Basic knowledge of terminal environment - Visual Studio Code installed - Git installed - Python 3.9+ installed
1 - Clone project¶
git clone https://github.com/JeppeKlitgaard/CartER.git
2 - Platform.io¶
- Open the 
CartERfolder invscode. - Install 
platformioif not already installed. - If on Linux make sure to follow PlatformIO guide to udev setup
 - Add the 
CartER/controller/folder tovscode(Workspaces: Add Folder to Workspace...) - Restart 
vscode - Run 
pio runin a Platform IO terminal (PlatformIO: New Terminal) 
3 - Poetry¶
- Install Poetry
 - Configure 
poetryto use localvenvby runningpoetry config virtualenvs.in-project true - Run 
poetry installinCartER/directory 
Virtual Environments
The rest of this guide assumes you are in a terminal with the project virtualenv activated.
You can activate the virtualenv by running poetry shell in the CartER/ directory.
4 - Test¶
Now test that you can:
- Build the controller source using: PlatformIO: Build in vscode.
- Upload to the microcontroller using PlatformIO: Upload in vscode.
- Perform an experiment using carter experiment in a virtualenv'd shell.