> For the complete documentation index, see [llms.txt](https://co-vision.gitbook.io/co-vision-eng/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://co-vision.gitbook.io/co-vision-eng/how-to-build/hw/4.-wifi-adapter.md).

# 4. Wi-Fi adapter

#### For an internet connection

* Several software downloads are needed to utilize this project and to take full advantage of what the raspberry pi can offer. Therefore, an internet connection is quite important.
* Either an ethernet cable or a wifi adapter may be utilized.

#### Details with WiFi adapter

A WiFi adapter can be used to connect the Raspberry Pi to the internet. To use a WiFi adapter with the Raspberry Pi follow the instructions below:

The Raspberry Pi official website provides 3 different tutorials to install the WiFi adapter.&#x20;

In this tutorial we will be using the commands that worked.

* Connect the WiFi adapter into the Raspberry Pi.
* Open the LXT Terminal on the Raspberry Pi desktop.

**Command lines in LXT Terminal**

* To determine which WiFi signals are available for the Raspberry Pi enter with the following command:

```
sudo iwlist wlan0 scan
```

The Open source software is the Virtual Router. You can download it in this link [Virtual Router ](https://virtualrouter.codeplex.com/releases/view/58218/). You just need to crate a name and a password. Take a look at the example above:\
When you finish to install the sot

![](https://1421990027-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MKsz21tq9tKvhQzpAmJ%2F-ML6PEtXoj5ephhmZi4V%2F-ML6PZ6kvw-AoUltYF31%2Fimage.png?alt=media\&token=2dc076a3-55cb-4f11-abd4-e2c583cacc78)

* All the WiFi available will be displayed. Determine the ISSD and the password of the prefered WiFi connection.
* Enter the following command:

```
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
```

* Add the code below to the file. Recall the IDSS and the Password.

```
network={
   ssid=" Your ESSID"
   psk="Your_wifi_password"
}
```

* Here is an example:

```
network={
   ssid="WiFi-Test "
   psk="12345678"
}

```

* When finished, use Ctrl + X, chose Y, and press Enter. (It will save the changes made)
* To activate changes use:

```
sudo ifdown wlan0
```

* Then enter:

```
sudo ifup wlan0
```

* Confirm the WiFi is working using the following command:

```
iwconfig
```

* The Wlan0 will be connected in the WiFi that you have chosen.
