Skip to main content

Getting Started With Raspberry Pi

Most computer science students get to learn high-level programming languages and application development but they don’t really understand computers. The fun of controlling the real world with a real computer is never exposed to them.
A normal computer lacks the capability to communicate with the real world through real interfaces.
With a normal computer that has a monitor, keyboard, mouse, printer and modem connected, hardly anything can be done, except the intended use. Of course, the printer port on a PC can be used to interface with the real world but that will be very clumsy and cumbersome—not to talk of the non-availability of an easy programming environment for that.

The Raspberry Pi is a pleasant exodus from that monotonous computing world. You can hold this palm-size computer in your hand and at the same time interface with the real world with its 26 input/output (I/O) pins. With a Raspberry Pi in hand, robotics is no more a fancy imaginary world of big and serious people but a real and authentic one.
You can get this computer for a small amount of money. In the UK, the Raspberry Pi Model-A costs $25, while the price of Model-B is $35, plus local taxes and shipping/handling fees. In India, at many hobby outlets, it is available for only Rs 2600. In fact, the latest B Model with 512MB RAM is no less than a Celeron computer of yesteryear, yet with a whole lot of imagination and possibilities to tap.
Model-A and Model-B
The first model of Raspberry Pi that appeared was Model-A, which had only one USB port and no Ethernet socket. Later, Model-B came into market with two USB ports, Ethernet socket and 256MB RAM. The latest one has as much as 512MB RAM. It is built around a BCM2835 Broadcom processor. It consumes 5V electricity at 1A current. As power consumption is less, there is no heat dissipation and no clumsy heat-sink is required. The operating system is based on the light-weight ARMv6 instruction set that a typical Broadcom processor understands—all open source and based on Linux variety.
video cable connection. Unfortunately, the normal PC monitor—a VGA monitor—does not support connectivity with Raspberry Pi. The Raspberry Pi team, in fact, has thought beyond this and provided the latest and oldest connectivity for video.
The VGA technology is old and the last of its kind. It is fast being replaced with DVI or HDMI. However, almost every TV—old or new—has an audio/video input socket at its back for connectivity with a VCP, VCR, gaming console, etc. Connect one end of an AV cable to this TV video input port and the other end to the yellow ‘TV video output’ on Raspberry Pi. The monitor is ready now. There is also a display serial interface (DSI) output for connecting to a flat-panel display or tablet. The latest TVs (plasma, LCD and LED TVs) have an HDMI input slot at their back. Just insert an HDMI cable at both ends and your audio and video problems are solved as the HDMI cable can carry both audio and video. Also, Raspberry Pi can produce full-resolution HD pictures at 1920×1080 on the latest HDTV set.
However, for connecting it with a DVI monitor, just use one HDMI-to-DVI plug (available very cheap at electrical and computer stores).
Audio cable connections. In case you are using a TV, the same TV can be used as audio amplifier for the weak audio signal from the Raspberry board. Get another pair of audio/video cord, whose one end goes into the left and right audio input socket at the TV end and the other ends meet the Raspberry Pi board with a stereo pin jack. So you are all set with the cable connections.
Keyboard and mouse. The computer market is replete with USB devices, so finding a USB keyboard and USB mouse is just a child’s play. Connect them to the two USB ports of Raspberry Pi. No order is required, just use any USB port for any device. For connecting additional USB devices, you will need a USB-powered hub. This kind of hub has a separate power supply of its own.
So, you've decided to buy a Raspberry Pi, and you want to use it to experiment with and use as an additional computer for your household. There are two options; you can buy a complete kit from Pimoroni (Raspberry Pi starter kit) or buy everything separately. The kit from Maplin includes the Raspberry Pi and everything needed to run it normally. If you choose to buy things separately, you will need the following items:
  • Raspberry Pi Model 3
  • USB mouse and keyboard
  • Monitor and lead to connect to Pi's HDMI output.
  • Micro USB 5v power supply
  • SD card (Minimum 8GB) pre-loaded with 'NOOBS'. (Can be bought from most online Raspberry Pi shops) OR You can prepare your own SD card yourself using the instructions found here.
Once you own all of the relevant components, it's time to power up! The  Raspberry Pi has no on or off switch, you have to plug it in to turn it on. 
  1. Plug the keyboard and mouse into the USB ports, the SD card into the slot on the underside and the power supply in to the Micro-USB socket.
  2. Switch the power supply to Monitor, then the Pi on at the wall. 
  3. The first thing you will see is the opportunity to connect to a network using the Pi's built-in WiFi (Pi 3 only). Use the keyboard and mouse to select the right network and enter the password.
  4. Once connected, you will be given a choice from about 5 different operating systems to install on the SD card. The fully supported OS is Raspbian Jessie. Select this one and click install. The installation process will now begin and may take some time. 
  5. Once the OS has installed, the Pi will reboot and you will be taken straight to the desktop with no need to enter a password.
You're in! You can treat this as a normal computer now! 
 On the computer a few installed programs will appear. By clicking on the icon in the top right corner, you can navigate the menu to view all of the installed programs. By right clicking on a program, then clicking on add to desktop, you can create an icon on the desktop. A few of the programs include:
  • Ephiphany - An internet browser (like internet explorer, Google chrome or Firefox.)
  • Scratch - A simple way to create games.
  • File Manager - The Raspberry Pi's filesystem
  • LXTerminal - Remember this for later on! It is very important.


Comments

Popular posts from this blog

Jio

Reliance Jio planning its own  cryptocurrency called JioCoin  elder son Akash Ambani leading the JioCoin project, Reliance Jio plans to build a 50-member team of young professionals to work on blockchain technology, which can also be used to develop applications such as smart contracts and supply chain management logistics

garbage monitoring using arduino code with gsm

#include <SoftwareSerial.h> #include <LiquidCrystal.h> //LiquidCrystal lcd(7, 6, 5, 4, 3, 2); LiquidCrystal lcd(13, 12, 11, 10, 9, 8); SoftwareSerial mySerial(0,1); #define trigPin 2 #define echoPin 3 #define PIR_sensor 4 #define m11 5 #define m12 6 void setup() {    lcd.begin(16, 2);    lcd.print("    Garbage    ");    Serial.println("garbage ");   lcd.setCursor(0,1);   lcd.print("   Open Close    ");   Serial.println(" open close");   delay(3000);   lcd.clear();   //lcd.print(" ");   delay(2000); mySerial.begin(9600); // Setting the baud rate of GSM Module Serial.begin (9600); pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT);  pinMode(m11, OUTPUT);   pinMode(m12, OUTPUT);   } void loop() {  readPIR();  pingDist();  SendMessage(); } void pingDist ()   {     long duration, distance;...