Raspberry Pi

How to connect Raspberry Pi 3 to the PC

Introduction to Raspberry Pi, input sensor and PCB.

What is Raspberry PI?

  1. Raspberry Pi is a small single-board computer
  2. It is developed in UK by Raspberry Pi foundation
  3. It is very popular in robotics
  4. And it does not include peripherals (mouse, keyboard etc)
  5. It has different models such as
  6. Raspberry Pi 1 Model B, B+, A, A+
  7. And Raspberry Pi 2 Model B, version 1.2
  8. Raspberry Pi 3
  9. Raspberry Pi Zero version 1.2, 1.3, W(wireless)

Detail Diagram Of Raspberry PI 3 B+?

 

What’s inside Raspberry PI 3 B+?

  • Quad Core 1.2GHz Broadcom BCM2837 64bit CPU
  • 1GB RAM
  • BCM43438 wireless LAN and Bluetooth Low Energy (BLE) on board
  • 40-pin extended GPIO
  • 4 USB 2 ports
  • 4 Pole stereo output and composite video port
  • Full size HDMI
  • CSI camera port for connecting a Raspberry Pi camera
  • DSI display port for connecting a Raspberry Pi touchscreen display
  • Micro SD port for loading your operating system and storing data
  • Upgraded switched Micro USB power source up to 2.5A

 

Now, setting up a workstation:

Make boot-able SD card

1.Download Etcher from https://etcher.io/

2.Download Raspbian OS from https://www.raspberrypi.org/downloads/raspbian/

  • Download Raspbian Stretch With Desktop image file (.img)

3.Use etcher to make SD card boot-able

 

Making Head-Less Raspberry Pi

What is Head-Less Raspberry Pi

1.Process of using raspberry pi via network connection without a keyboard or display

2.What do we need?

1.SSH Client

1.Putty for windows

2.SSH client for MAC & Linux

2.Remote Access Software

1.RealVNC Viewer

3.Remote Server

1.tightvncserver in raspberry pi

 

So, lets begin:

1.First connect Ethernet cable + power supply (USB or Adapter)

 

so, for windows:

  1. Install PuTTY

What is PuTTY?

  • PuTTY is a free and open-source terminal emulator, serial console and network file transfer application.
  • Support SCP, SSH, Telnet, rlogin, and raw socket connection
  1. First we need IP Address of raspberry Pi; we can get that in three way

From router (after connecting to router go to DHCP table)

From raspberry host; here we can use ping command in terminal

Manual entry in commandline.txt  file [eg. ip = 192.168.1.168]

Let’s begin

1* Getting IP address of Raspberry PI from router [keep a note your mac ID as well as your IP from router]

2 *Getting IP address of Raspberry PI using sharing internet to raspberry pi via PC

* [keep a note your mac ID as well as your IP from router] window only

1

 

2                3  4

 

Now, after this use:

use terminal to get IP address of raspberry pi

[ping raspberrypi.mshome.net or ping raspsberrypi.local]

3* Manual entry in commandline config file [eg. ip = 192.168.1.168]

1

2.

 

Steps of using PUTTY in windows to connect raspberry pi window only

1   2

 

*But, Note to use ssh we have to make ssh file (with no extension) in boot folder

4

 

For mac & linux [UNIX SYSTEM]

1.Using SSH

What is SSH?
  • The SSH protocol (also referred to as Secure Shell) is a method for secure remote login from one computer to another
  • It provides several alternative options for strong authentication
  • it protects the communications security and integrity with strong encryption

Let’s begin

* to obtain IP address use previous technique (router, host ping, manual set IP to cmdline.txt)

 

Using ssh in mac & linux *use sudo for linux

1

2        3   

Expand FileSystem

cmd > sudo raspi-config

1  2

3. 4

 

VNC SERVER AND VIEWER

  1. Install VNCViewer ( https://www.realvnc.com/en/connect/download/viewer/ )
What is VNC?
  • Virtual Network Computing (VNC) is a graphical desktop sharing system that uses the Remote Frame Buffer protocol (RFB) to remotely control another computer
  • It transmits the keyboard and mouse events from one computer to another, relaying the graphical screen updates back in the other direction, over a network

So, VNC Connect consists of two apps, VNC Server and VNC Viewer:

  • VNC Server enables you to connect to your Pi from a desktop computer or mobile device, watch its screen in real-time, and exercise control as though you were sitting in front of it.
  • VNC Viewer enables you to connect to and control a desktop computer (or another Pi) from your Pi, should you want to.

  1. Using in-built VNC server
  • To enable vncserver in raspberry pi we have to enable vnc server from raspi-config
  • *note you have to be super user to change config file

Lets start:

 

Enter IP address of raspberry PI

Username= pi

Password = raspberry

1.      2.

 

  1. Steps of using vncserver in raspberry pi if VNC server is not installed in raspberry pi
    • To enable vncserver in raspberry pi enter vncserver :1 command
    • Note* to install VNCserver use command

         [sudo apt-get install tightvncserver]

*password in VNCServer

  • This only required one time.
  • Uses 8 character password.

 

Tunneling in PUTTY:

 

1   2

 

3  4

5  port:5901

Here password is set in tightvncserver

So, here it is connected.

 

Configure resolution in raspberry pi

  • This configure Graphic resolution of the raspberry pi we need to configure /boot/config.txt file (you can use different text editor here we use nano here)
  • Where different parameter is needed to update

Let’s begin

1.

2.

(uncomment to force a specific a HDMI mode <this will force a VGA>)

 

Here, different parameter need to be added (here “#” means comment)

hdmi_ignore_edid=0xa5000080  (edid i.e. Extended display identification data )

(this means it will ignore all the default display output)

and hdmi_group=2 (set output group to video buffer and when using VNC client other wise  remove this line)

hdmi_mode=85 (this set the resolution to 1280×720 @60Hz, more resolution   means slow refresh rate)