Getting Started - PeterKaminski09/nxt-pythonpi-client GitHub Wiki
To get started, go ahead and download the client code onto your raspberry pi.
Downloading the code
- Open the terminal application
- Cd into the home directory: cd
- Clone the code from github: git clone https://github.com/PeterKaminski09/nxt-pythonpi-client.git
- Cd into the client code directory: cd nxt-pythonpi-client
- Run the setup script: sh setup.sh
All the initial installation will now run in the background. The Raspberry Pi will restart once itโs finished. From this point on, your raspberry pi will run the client code whenever it's booted up
It's very important for the functionality of the cron job that the code is downloaded to the /home/pi directory as /home/pi/nxt-pythonpi-client
Pairing the NXT with the Raspberry Pi
The relationship between an NXT and a Raspberry Pi is many to one. That means the Pi can coordinate code for several NXTs. However, it is best to only register the NXT with a single Raspberry Pi.
- Open up mac_addresses.txt and modify the file so that each line is the MAC address of an NXT you wish to pair with the Raspberry Pi
- From the NXT, make sure that Bluetooth is turned on and visible
- From the Raspberry Pi, make sure you go pair the Raspberry Pi to the NXT via the Bluetooth interface