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

  1. Open the terminal application
  2. Cd into the home directory: cd
  3. Clone the code from github: git clone https://github.com/PeterKaminski09/nxt-pythonpi-client.git
  4. Cd into the client code directory: cd nxt-pythonpi-client
  5. 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.

  1. 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
  2. From the NXT, make sure that Bluetooth is turned on and visible
  3. From the Raspberry Pi, make sure you go pair the Raspberry Pi to the NXT via the Bluetooth interface