Controller for the AdLap XYZ stage
Connecting to the Raspberry Pi via SSH
For getting serial USB devices (i.e. the Arduinos):
python -m serial.tools.list_ports
- On the raspberry pi
bluetoothctl
discoverable on
pairable on
agent on
default-agent
-
Turn on your Xbox Wireless Controller by pressing the Xbox button
-
Press and hold the Pair button on your controller for three seconds (the Xbox button will start flashing rapidly).
-
On the Raspberry Pi:
scan on
- The controller should appear in the list, e.g.:
[NEW] 40:8E:2C:4E:4F:01 Xbox Wireless Controller
- Pair using:
pair 40:8E:2C:4E:4F:01
- If successful, the terminal should look like:
[Xbox Wireless Controller]#
- Exit the Bluetooth tool using:
quit
python -m venv .venv source .venv/bin/activate pip install -r requirements.txt
cd AdLapPi source .venv/bin/activate python src/main.py