Set-up for Nexus software environment:
Installing virtual environment (venv) & Nexus software dependencies:
- Ensure python3 is downloaded
- Navigate to the
srcdirectory - Create venv by running:
- macOS:
python3 -m venv venv - linux:
python3 -m venv venv - windows:
py -m venv venv
- macOS:
- Activate the venv by running:
- macOS:
source venv/bin/activate - linux:
source venv/bin/activate - windows:
venv\Scripts\activate
- macOS:
- Run:
pip3 install -r requirements.txtto install nexus software dependencies.
For IMU lsm9ds1, must be operating on Raspberry Pi to run these commands.
- Enable I2C using
sudo raspi-config - run
sudo apt-get install python3-dev python3-pip python3-smbus i2c-tools -y - run
sudo i2cdetect -y 1and make sure that a fair bit displayed on the command line (aka a number is being displayed). If nothing is being displayed, recheck the IMU connections. - run
sudo pip3 install adafruit-circuitpython-LSM9DS1 - make sure you are using python3. other versions of python do not support the lsm9ds1 and busio libraries from circuitpython.
For RF Module, must be operating on Raspberry Pi to run these commands.
- Enable Serial data transmission from RF Module and raspberry pi
sudo raspi-config - Go to "interfacing options" and select the "Serial" option. Make the login shell accessible.
For GUI Module
- install tkinter
brew install python-tk@3.10