Connecting your Wave Buoy to your Wi-Fi instructions

Here are the instructions to set up the Wave Buoy to connect to your home wi-fi network

  1. Plug USB cable into your pc/laptop

  2. Download and Install PuTTY
    This part assumes that ssh is enabled for your image and that the default user is pi with a password of raspberry .

  3. Launch Putty

  4. If this is a new image, set the Host Name (or IP address) field to raspberrypi.local (if not use your-pi-host-name.local )

  5. By default the Port should be set to 22 and Connection type should be set to SSH

  6. Click Open

  7. If you see a Security Alert select Yes

  8. A new terminal window should appear prompting you for a user name

  9. For user name on a new image enter: pi

  10. For a new image the default password is: raspberry

Congratulations! You can now access your Pi Zero

Getting your network information

For the purpose of this guide we will be connecting to a WiFi network with the following information:

  • SSID (Network Name): Test Wifi Network
  • PSK (Password): SecretPassWord

Every time you see this network name and password in the guide you need to change them to the network name and password of your local network.

If you need to find the network name of your local network you can run the following command in the Raspberry terminal:

sudo iwlist wlan0 scan

This will list all the networks in your vicinity along with some useful information for each network. To find your network name look for something that look like: ESSID:”Test Wifi Network” .

Configuring your WiFi network

To tell the Raspberry Pi to automatically connect to your WiFi network you need to edit a file called: wpa_supplicant.conf .

To open the file in nano type the following command:

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

Scroll to the end of the file and add the following to the file to configure your network

   ssid="Test Wifi Network"

Remember to replace this with your own network name and password.

Save and close the file by pressing Ctrl+X followed by Y . At this point the Raspberry Pi should automatically connect to your network.

You can check your network connection by running the following command:

ifconfig wlan0

If the output looks something like this (with an inet addr) you are connected:

wlan0   Link encap:Ethernet HWaddr 74:da:38:2b:1c:3d
        inet addr: Bcast: Mask:
        inet6 addr: fe80::8727:5526:a190:b339/64 Scope:Link
        RX packets:6917 errors:0 dropped:229 overruns:0 frame:0
        TX packets:2931 errors:0 dropped:1 overruns:0 carrier:0
        collisions:0 txqueuelen:1000
        RX bytes:10001000 (9.5 MiB) TX bytes:295067 (288.1 KiB)

Sometimes the Raspberry Pi will not connect automatically and require a reboot to connect.

If it doesn’t connect after waiting 2-3 minutes try to reboot the pi using the following command:

sudo reboot