Raspberry Pi Zero W | Raspbian Headless Setup over USB | Tutorial & Project


Raspberry Pi Zero W | Raspbian Headless Setup over USB | Tutorial & Project

Raspberry Pi Zero W is a microprocessor-based Single Board Computer developed by Raspberry Pi Foundation. It contains Broadcom BCM2835 System-on-a-Chip (SoC). Raspberry Pi Zero W supports USB On-the-Go (OTG) connection, which introduces the concept of a device performing both master and slave roles - whenever two USB devices are connected and one of them is a USB On-the-Go (OTG) device, they establish a communication link. The device controlling the link is called the master or host, while the other is called the slave or peripheral. Raspberry Pi Zero W will connect to your computer, as a slave USB Ethernet-RNDIS Gadget device.

VNC Connect which is included in the Raspbian operating system, consists of a VNC Server application that captures the desktop of the Raspberry Pi in real-time and enable us to remotely control it. We can also transfer files to and from the Raspberry Pi providing we are connecting from the VNC Viewer running on the computer.

COMPONENTS REQUIRED

Components that are required:


- 16GB Class-10 MicroSD Card: http://s.click.aliexpress.com/e/bdibkGqG

- Type-A to Type-Micro B USB Cable: http://s.click.aliexpress.com/e/cjMhrDOo

Please check out the description to buy these components at low prices.

CONNECTIONS & SETUP

Raspberry Pi Zero W | Raspbian Headless Setup over USB | Tutorial & Project | Connections

In this tutorial, we will use VNC Connect to remotely access and securely control the Raspberry Pi. Software and Source Code that are required:







- Bonjour Print Services: http://support.apple.com/kb/DL999


Now, let’s setup the board.

- Insert the MicroSD Card into the Computer.

- Format the MicroSD Card.

- Write the Raspbian image to the MicroSD Card.

- Open the boot partition of the MicroSD Card.

- Edit and configure the “cmdline.txt” file.

- Edit and configure the “config.txt” file.

- Create an empty file named “ssh” without any extension, to enable the SSH.

- Insert the MicroSD Card into the Raspberry Pi Zero W.

- Connect the one end of USB cable to the Raspberry Pi Zero W, and another end to the Computer.

- Install the Bonjour Print Services software.

- Install the USB Ethernet-RNDIS Gadget driver.

- SSH into the Raspberry Pi Zero W, enter the Host Name into the Host Name field.

- Login to the Raspberry Pi Zero W, enter the username as “pi” and password as “raspberry”.

- Enable the VNC Server.

- Connect to the virtual desktop of Raspberry Pi Zero W, enter the Host Name into the Search Bar.

- Authenticate to the VNC Server, enter the username as “pi” and password as “raspberry”.

After a few seconds, you should see the desktop of the Raspberry Pi Zero W inside a window on your computer. You will be able to control it as though you were working on the Raspberry Pi itself.

Comments

Popular posts from this blog

DOIT ESP8285 DevKit | Getting Started & Programming | Tutorial & Project

Heltec ESP32 LoRa DevKit | LoRa Controlled Robot Car | Tutorial & Project