loading

INTRODUCTION:

It is an credit card sized small computer whose 1st version was released in February 2012 in UK by Raspberry pi foundation for promoting learning of basics computer in schools. It’s project were started in 2006 in UK Eben Upton and computer Enthusiasts from Cambridge university.

It is basically a micro controller which is program generally through Python programming language. There must be user interface for any controller to be programmed. So through this instructables we will learn how to interface raspberry pi to our windows PC through different methods.

because raspberry pi is a Linux based machine and in OS X and Windows, there are typically two main ways to achieve a given goal in Linux: through the graphical user interface (GUI) and through the command line (known in Linux as the console or the terminal). The appearance of various Linux distributions can be quite different, depending on the desktop environment in use. In this book we will see both the methods.

You will need the following software :

>> RITVIK DAVE

Step 1: ​Prepare SD Card for Raspberry Pi

Prepare SD card for Raspberry Pi

As we have discussed earlier that raspberry Pi uses Debian distribution of Linux. It should be installed into the SD card of RPi. It doesn’t mean that we can copy and paste the Debian OS into SD card. It required a systematic process and we have to create a Raspbian image into the SD card. This book contains the process for prepare SD card through windows PC only. You need only following things for the above work:

  • an micro SD card (atlist 2GB)
  • a PC having Windows OS
  • a SD card reader
  • Internet connection

The process below will take you through the steps of installing Raspbian on your Pi from a Windows 7-based machine, but it’s possible on any operating system.

1. Download Raspbian: To get things started, on your desktop or laptop go to www.raspberrypi.org/downloads and download the latest ‘Wheezy’ release of Raspbian. It's download is around 1GB – much bigger than some of the other OS– which reflects its nature as a fully featured GUI-based OS.

2. RPI installer: Now head to http://sourceforge.net/projects/win32diskimager and download the Win32diskimager software. This is what we’ll use to copy our Raspbian image to the SD card. Unzip the wheezy-raspian.zip file when it has finished downloading to your desktop.

3. Select image file: Select the image file in Win32 Disk Imager by clicking on the small folder icon just under the Image File title. This will bring up a file choice window. Select the Raspbian image that we just extracted from the zip file and then click on OK to select it for copying.

4. Choose target device: Now, under Device, choose your SD card. Make sure that it is formatted as FAT32 (the file system required by the Pi) first. Also make sure that you choose the correct drive here, as all data on the target device will be lost. Once that’s done, click Write to start the process.

5. Writing image: After confirming that you really want to erase everything on the card, the image will be written to the SD card. Depending on the speed of the card, this may take a few minutes. If you have an issue writing the file, try running the Win32 Disk Imager tool as administrator. Once the image has finished being written, eject the SD card from the computer and insert it into the Raspberry Pi.

>> RITVIK DAVE

Step 2: Connect HDMI Monitor, Keyboard and Mouse to RPi

In our PC we have various input and output devices connected most useful devices are Monitor, Keyboard and Mouse. Just like our PC we can use our Raspberry pi. Use following steps to use RPi as PC:

1. We will required an HDMI to VGA cable to connect the HDMI screen to see video output (as we have only HDMI port in RPi).

2. It is compulsory to have USB keyboard and mouse because there are only USB ports available in RPi .

3. After above connections boot-up Raspberry pi. After boot-up you will see some process of commands and then it will ask you for username and password .

4. By default the user name is “pi” and password is “raspberry”.

5. When you type the above you will see there is nothing typed on the screen . Don’t worry it is the advantage of working in Linux for security perpose.

6. After the above process type the command “startx”

>>>raspberrypi $ startx

hurry ! You are on raspberrypi desktop. & you will see the your desktop like the attached image.

Step 3: Linux Terminal in Windows Using Wired Connections

  • Wired connections:

If you don’t have an HDMI screen and USB keyboard or mouse but if you have an windows laptop and ethernet cable then also we can proceed to control the raspberry pi. Here's how to proceed.

1. Download DHCP Server for Windows( https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0ahUKEwiwlr3K1_XOAhUSS48KHfRrAv8QFggpMAE&url=http%3A%2F%2Fwww.dhcpserver.de%2Fcms%2Fdownload%2F&usg=AFQjCNGaW_MNkXzqsr9JavJRLC1tmBpZ4w. )

2. Go to the IPv4 properties page of the Ethernet adapter and set a fixed IP address, say 192.168.2.1 3. Run the DHCP Server Wizard (downloaded above)

4. Select the Ethernet adapter from the list shown

5. Save the configuration file and start up the DHCP Server

6. Click the 'Continue as tray app' button in the server control panel.

7. Connect Ethernet cable between RPi and your laptop & Boot up the Raspberry Pi

8. A popup notification shows the IP address assigned by the DHCP server to the Raspberry Pi.

9. Use a SSH client, like mobaxterm (download from https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwjNquaZ1_XOAhUiSI8KHfiFAvsQFggeMAA&url=http%3A%2F%2Fmobaxterm.mobatek.net%2Fdownload-home-edition.html&usg=AFQjCNEPRSkIMuRhJC78xJY-fyfc9GCWEw ) or putty, to connect to the IP address shown bellow:

i) Open SSH client Mobaxterm

ii) Click on “start local terminal”

iii) Your laptops username will appear as

[admin.admin-PC] ➤ Now type raspberry pi IP address provided by DHCP server as

[admin.admin-PC] >>ssh pi@192.168.2.1

iv) Than press enter you will see the bellow screen Heeeh ! We are connected to our Raspberry Pi’s terminal. Now you can run command on RPi through terminal window on your laptop.

Step 4: Linux Terminal in Windows Using Wireless Connections

  • Wireless connections:

This process is useful because via this we can do work on same raspberry pi by multiple PC systems.

  • If you have a wifi router than setup a wireless network and connect raspberry pi to router via Ethernet cable or if you have raspberry pi 3 model than it have wifi so can connect it wireless by configuring it to server setting by (but for this once you have to connect it via ethernet cable you can learn it in previous page)

To scan for WiFi networks, use the command sudo iwlist wlan0 scan. This will list all available WiFi networks, along with other useful information. Look out for:
ESSID:"testing". This is the name of the WiFi network.,IE: IEEE 802.11i/WPA2 Version 1

Open the wpa-supplicant configuration file in nano:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf Go to the bottom of the file and add the following:

network={ ssid="The_ESSID_from_earlier" psk="Your_wifi_password" }

In the case of the example network, we would enter:

network={ ssid="testing" psk="testingPassword" }

Now save the file by pressing Ctrl+X then Y, then finally press Enter.

At this point, wpa-supplicant will normally notice a change has occurred within a few seconds, and it will try and connect to the network. If it does not, either manually restart the interface with "sudo ifdown wlan0" and "sudo ifup wlan0", or reboot your Raspberry Pi with "sudo reboot".

  • Than connect your laptop to that wifi network and setup a wireless connection between router and Laptop.
  • Now you can use the same process as in wired connection to open Linux terminal in Laptop using ssh client by identifying the IP address through DHCP server and again follow the same procedure as in previous connection.
  • Use a SSH client, like mobaxterm or putty, to connect to the IP address shown bellow:
    i) Open SSH client Mobaxterm ii) Click on “start local terminal” iii) Your laptops username will appear as [admin.admin-PC] ➤ Now type raspberry pi IP address provided by DHCP server as

  • [admin.admin-PC] ssh pi@192.168.2.1

  • Than press enter you will see the bellow screen Heeeh ! We are connected to our Raspberry Pi’s terminal.

Enjoy

Thank You

Please give feedback if you like my instructable and also if u do not....(-:)(-:)<|>

You can follow me on facebook.com , linkedin.com , & google+ . Search my name "RITVIK DAVE".

About This Instructable

658views

12favorites

License:

Bio: Student of Electronics & Communication Engineering @ Techno India NJR Institute of Technology,Udaipur, Rajasthan, India
More by Ritvikdave:How to Use Multisim? Build Your first IOT using Arduino without additional modules Design a Sustainable Relay Driving Circuit using BJT 
Add instructable to: