-
Notifications
You must be signed in to change notification settings - Fork 0
Connecting to the Pi
Connecting to the Raspberry Pi is a relatively simple process. Regardless of operating system, you should connect the Raspberry Pi with an Ethernet cable to the computer you are using. From there, the process is slightly different by operating system. Once connected, you can SSH into the Raspberry Pi with the address pi@robotics-pi.local.
gwrobolib has the ability to use a gamepad connected to a computer with Python installed using the Pi 3's built-in Bluetooth. To get this functionality, the following steps should be taken:
- Ensure the Pi has the correct packages installed by running
sudo apt-get install bluez minicom - Disable PNAT by running
sudo nano /etc/Bluetooth/main.confthen adding the following line near the top:DisablePlugins = pnat - Make the Pi discoverable by typing
sudo hciconfig hci0 piscan - Pair the Pi with the computer
- Change directories to the gwrobolib directory and run
./connect-controller.shAt this point you can runminicom -D /dev/rfcomm0and check using a Bluetooth terminal that the devices are connected and sending information back and forth.
Optional: To make the Pi search for the driver station on startup, run sudo nano /etc/rc.local and add the following lines:
printf "Adding SPP and listening on rfcomm0\n"
sdptool add sp; rfcomm listen hci0 > /dev/null 2>&1 &
- Run the serialdriverstation.py script from the computer with the gamepad plugged in
Windows does not come with the SSH command line tool, so you will need to download PuTTY. SSH will allow you to access the Raspberry Pi command line.
For file transfer, it is easiest to download WinSCP. After you have it downloaded, select New Site. The settings should be as follows:
- File protocol:
SFTP - Host name:
robotics-pi.local - Port number:
22 - User name:
pi - Password:
robotics
Once connected, you can drag between one directory into another using the WinSCP GUI.
Once you are connected via Ethernet cable, you can use your computer's Wi-Fi connection as the Raspberry Pi's internet connection. To do this, the steps are as follows:
- Right-click your Wi-Fi icon on the taskbar.
- Select
Open Network and Sharing Center. - Select
Change adapter settingsfrom the left sidebar. - Right-click your Wi-Fi adapter (probably is named Wi-Fi).
- Select
Propertiesthen theSharingtab. - Select
Allows other network users to connect through this computer's Internet connection. - Under
Home networking connection, selectEthernet.
TODO: Write Mac instructions...
Wiki maintained by Nam Tran (@omn0mn0m).