Wireless Raspberry Pi Control Guide

How to Connect and Control Your Raspberry Pi Without Any Wired Connection ?

rpi

Discover how to wirelessly control your Raspberry Pi for home automation, media centers, and robotics projects. Learn to connect it to Wi-Fi for remote operation in this blog

The Raspberry Pi is a flexible and reasonably priced single-board computer that may be used for a variety of tasks, such as media centres, robotics, and home automation. But, you must connect to it remotely and control it in order to use it efficiently. Here you will learn how to connect your Raspberry Pi to a Wi-Fi network and use it remotely without a wired connection .

Step 1: Install the Operating System.
  • Installing an operating system on the Raspberry Pi is a prerequisite before you can configure it. To accomplish this, you must design a memory card that can start the Raspberry Pi.
Step 2: Set up Wi-Fi using wpa_supplicant.config.
  • The wpa supplicant.config file can be used to set up the Raspberry Pi to connect to your Wi-Fi network after the operating system has been installed on the memory card. The relevant details, including the network name (SSID) and password, are contained in this file.
  • To input the data, open the file in a text editor, enter the relevant information, and then save the file in the memory card’s root directory. Create the wpa supplicant.config file for Wi-Fi and an empty “ssh” file to enable remote connections. The Raspberry Pi should now be connected to the memory card.
  •  wpa_supplicant.config  for wifi setting:

Ctrl _interface = DIR=/var/run/wpa_supplicant GROUP=netdev

update_config=1

country=IN

network={

  ssid=”Wifi_Name”

  psk=”p@ssword”

}

Step 3: Check for a Network Connection.
  • You can use the ping command in cmd to see if the Raspberry Pi is on the same network as your laptop. Here are two methods for doing it:
  • Windows Key + R: Open the command prompt, type “cmd” into the Run dialogue box, and then hit Enter. Check to see if your laptop’s IP address answers by typing “ping raspberrypi.local” after that.
    Use an IP address by entering “ping” at the command prompt after opening it. Substitute “raspbeerypi.local” with your IP address. You should receive a response from the Raspberry Pi’s IP address if it is connected to the same network as your laptop.
Step 4: Find the Raspberry Pi's IP Address using Fing(Optional).
  • To find the IP address of your Raspberry Pi, you can alternatively use a programme like Fing. Here are the steps:
  • To Download click on below image and install Fing on your mobile device.
    Connect your phone to the same Wi-Fi network as your laptop and Raspberry Pi.
    Open Fing and look for networked devices.
    Find the Raspberry Pi on the list of devices, and note its IP address.
    To see if it is on the same network as your laptop, use the ping function in cmd. 
Step 5: Download and install Putty.
  • On your computer, download and install Putty. At the official website, https://www.putty.org/, you can download it.
  • If you’re using a local network, open Putty and type “raspberrypi.local” or the Raspberry Pi’s IP address in the Host Name field.
  • SSH should be chosen in the Connection Type section.
  • On the “Open” button, click.The notice “security alert” will appear. To proceed, select Yes.
  • After that, you will be asked to input your Raspberry Pi’s login information. The password is “raspberry” and the username is “pi” by default. After entering the username and password, hit Enter.
  • You should now be logged into your Raspberry Pi using Putty and SSH if you supplied the correct credentials.
putty configuration
Step 6 : set up a VNC server on your Raspberry Pi.
  •  Press “Ctrl+Alt+T” or enter “terminal” in the search box to launch a terminal window on your Raspberry Pi.
  •  Run the command “sudo apt install tightvncserver” in the terminal window to install VNC on your Raspberry Pi.
  • Type “y” and press Enter to approve the installation.
  • After the installation is finished, start the VNC server by typing the command “vncserver” into the terminal window.
  • Create a VNC password by adhering to the screen’s password setting instruction. Verify the accuracy of your password twice.
  •  You can now connect to your Raspberry Pi’s operating VNC server.
Step 7: Install and launch VNC Viewer.
VNC Viewer
VNC Viewer
  1. Launch the VNC viewer and type “:1” after your Raspberry Pi’s IP address. If your Raspberry Pi’s IP address is 192.168.1.100, for example, you would type “192.168.1.100:1.”
  2. On the “Connect” button, click.
  3. There could be a security alert. To move forward, click Continue.
  4. You will be asked for your Raspberry Pi’s login information. As the username, type “pi,” and “raspberry” as the password.
  5. You can now connect to your Raspberry Pi using the VNC viewer and interact with its graphical user interface if you input the necessary credentials.
VNC Viewer
  • In conclusion, establishing a connection to your Raspberry Pi using an SSH or VNC server might be a practical approach to control and manage it from a distance. You can quickly set up and create a secure connection to your Raspberry Pi using Putty and VNC viewer by following the instructions provided in this guide. You may control your Raspberry Pi from anywhere with this remote access, which gives you access to both the graphical user interface and command line interface.

You can watch this as well for reference

Tech Amplifier Final Logo