This script configures the on board WiFi interface of a Raspberry Pi 3B+ running Raspbian Stretch to work as an access point. This configuration also allows you to connect a secondary WiFi interface card (i.e. USB dongle) and use it to connect to a second wireless network (and the Internet) without interfering with the AP.
-
Format a Micro SD Card using the SD Formatter tool from https://www.sdcard.org/
-
Download a fresh copy of NOOBS (with Raspbian Stretch) from https://www.raspberrypi.org/downloads/noobs/
-
Follow the instructions from the site above to install Raspbian Stretch (or above) onto a Raspberry PI 3B+
-
Boot the Raspberry Pi using the newly prepared SD card and connect to the Internet (Unfiltered! Use a hotspot if you have to.)
-
Open the Terminal application and clone this repository to the Desktop with the following commands
cd ~/Desktop/ git clone https://github.com/CCGSRobotics/WiFi-Setup-Scripts
-
Navigate to the repository directory
cd WiFi-Setup-Scripts
-
The script takes two arguments. One for the SSID (required) and one for the password (optional). If no password is provided then it will default to 'raspberry'.
Example Usage:
sudo bash ./pi3bplus-setup.sh KingsLegacy supersecretpassword
Important: The above command only works if you are in the same directory as the script.
-
Make a cup of tea while you wait for the script to complete.
-
When complete, type
sudo raspi-config
and enable SSH and the Pi Camera. -
Reboot.
Test that you can connect to the new AP then download the code and enjoy your new robot!
Caution: DO NOT boot the Pi with a WiFi dongle connected. Do this only after the AP has been raised. Leaving a dongle connected during the boot process sometimes prevents the AP from being raised properly.