- To control Sphero with the Javascript SDK, you need to install the Node JS packages by running:
npm install
The SDK docs can be found here.
-
Connect Sphero to your Pi via Bluetooth.
-
Open run.js in your text editor and add code to move Sphero through the track.
-
To run your script, enter the following in the terminal:
sudo node run.js MAC_ADDRESS