Skip to main content

Raspberry Pi as a Computer

Raspberry Pi is an amazing devise in credit card size that can replace even CPU of your computer hence you can use Raspberry Pi as a personal computer!!! The Raspbian OS comes with Web browser, pdf viewer, Python games etc. You can download necessary application softwares from Raspberry Pi store. You can connect connect display, mouse, keyboard etc. with your Raspberry Pi. In the figure shown below showing connecting USB keyboard to your Raspberry Pi.
Inserting the USB Keyboard

Connecting a display

The Raspberry Pi can be connected by HDMI or composite video directly. With the use of an adapter you can connect it by DVI or VGA. You should use HDMI or DVI whenever possible because they give a better picture.

Look at the sockets on your display to determine how to connect your Raspberry Pi.

Connecting via HDMI

If your display has an HDMI input, as shown below, then connect your Pi with an HDMI-HDMI cable. This is the only type of video connection that can also be used to carry audio from 
the Pi to your display. The HDMI socket on the Pi is at the bottom as shown below:
HDMI connection on Raspberry Pi

Connecting via DVI

If your display has a DVI input as shown below, you will need an adapter. HDMI and DVI have very similar electrical signals, so adapters are passive – that is, they don’t contain any electronics, just two sockets with wires in between. You can buy cables with an HDMI and DVI connector or adapters as shown.
HDMI-DVI adapter

Connecting via VGA

DVI and HDMI both work with digital signals and are only found on newer monitors. Older monitors with VGA use analogue signals and as such need some sort of electronic circuit to convert between them. You can buy adapters that convert between HDMI and VGA.
HDMI-VGA adapter

Connecting via Composite

If your display only has a connector for composite video, you need a phono-to-phono cable that plugs in to the yellow connector on the top of the Raspberry Pi as shown below. Be aware that composite is an old technology and may produce a poor quality display.
Phono connector for composite video

Connecting to a Network

The Raspberry Pi has an Ethernet socket that allows your Pi to connect to the Internet or your home network. You can download new software and updates, or browse the web. You could even run your own web server!
Network connection
If you will be using a network, connect a network cable on the right side as shown above. Although the Raspberry Pi uses the network to set its clock and to download updates and new programs, it will work without a network connection.

Booting the Operating system

You will need an SD card with the OS already installed on it. You can either buy one pre-installed or follow the instructions discussed earlier in this blog in th to make your own.

Insert the SD card in the slot on the underside of the Raspberry Pi, on the left, as shown below. Take care to keep the card parallel with the Raspberry Pi when you slide it in or out so as not to break the edge of the retaining slots.
Inserting Micro SD card carefully

Powering Up!

Plug in the power supply to the bottom left of the Raspberry Pi as shown in Figure 1-12. On the top-right corner, you should see a green light (labelled PWR) come on and another one(labelled ACT) flash.
Inserting micro USB for power
The Raspberry Pi needs a power supply that can supply 5V 700mA (3.5W). Most decent quality mobile phone chargers of 5V 2A(2000mA) will work fine – many have the output marked on them, so it’s easy to check. If your power supply can’t deliver enough power, your Raspberry Pi may not start, or it may freeze when it does something computationally more demanding. For more information, see the “Troubleshooting” section later.

The Boot Process

After you’ve connected everything, have a correctly imaged SD card and powered up your Raspberry Pi, it will quickly flash a colourful square to test the graphics as shown below. It is a kind of Power On Self Test(POST). After a few seconds, the Raspberry Pi logo will appear in the top-left corner of the screen, and many lines of text will scroll past.
Colorful square during power up Raspberry Pi to test graphics
The text reveals some of the work the OS is doing. You may see messages as the various drivers are loading, such as the keyboard driver, sound driver and network driver. After the drivers have loaded, the OS runs any startup programs and displays the login prompt.

By default, the username is pi, and the password is raspberry.

Type pi and press Enter.

Now type raspberry and press Enter. Linux doesn’t display anything when you type passwords, which can be a bit unfamiliar if you are used to other OSes.

You should see the command-line prompt, where you can type commands and run programs. In the next section, you’re going to start the program that allows you to use the Raspberry Pi graphically.

Starting the Graphical Desktop

If you are familiar with Windows or OS X, you are used to a friendly graphical desktop that is loaded automatically with icons you can click. On the Raspberry Pi, however, in order to show that a graphical desktop doesn’t have to be integral to a computer, it isn’t loaded automatically.

The X Server

The design of Linux means that the graphical desktop runs on top of the OS as a separate program called the X server. This opens up additional possibilities, such as controlling one computer with the display being shown on another computer over a network connection. This means that you can control the Raspberry Pi without having a monitor plugged into it, which is useful if you put it in a remote location.

To start the graphical display on the Raspberry Pi, type startx.

After a few seconds the X server will start, and you will be able to use a graphical desktop. If you can see the Raspberry Pi logo in the background, then congratulations – you have successfully connected your Raspberry Pi!
Raspberry Pi as a computer

Starting a Terminal under X

Linux makes greater use of the text-based command line, often known as a terminal. This can be very powerful and quicker for some tasks than using a mouse. To start a terminal in a window under X, double-click the LXTerminal icon on the desktop, or select it from the menu by clicking Accessories and then clicking LXTerminal.

Comments

Popular posts from this blog

8051 Simple Programs

Sum of 8-bit Numbers Stored in Memory Here  we will discuss about 8051 programs but we can't discuss about all of the 8051 instructions. For programming 8051 we should know about assembler directives as well as instruction set. Click  here to download Atmel c51 user guide that will discuss about 8051(c51 family microcontroller) instruction set, assembler directives, c51 cross assembler from Atmel.  Program ORG 00H MOV R0,#50H   ; get memory location in memory pointer R0 MOV R1,#51H   ; get memory location on memory pointer register R1 MOV A,@R0       ; get content of memory location 50H to accumulator ADD A,@R1        ; add content of A with content of memory location 51H and store result in A MOV R0,#52H    ; get 52H to memory pointer R0 MOV@R0,A         ; copy content of A to memory location 52H END Add 16-bit Numbers ...

Introduction to 8051 embedded C

For 8051 we need to include the file reg51.h. This file contains the all the definitions of 8051 registers. With this information C compiler produces hex file that can be downloaded into the ROM of the microcontroller. It is important to note that the size of the hex file produced by the assembly language is much larger than the hex file produced by C compiler. Apart from this fact, there is many reasons for writing programs in C instead of assembly: ●It is much easier and less time consuming to write programs in C assembly. ●C is more flexible; it is easier to modify and update. ●Programming in C allows to use code available in function libraries. ●Program written inC for one microcontroller is portable to other microcontrollers with little or no modifications. Data Types in 8051 Embedded C The table shown below lists the data types that are available in typical C51 compiler. The gives information about the size of the data variable and it's value range. Data type ...

Frequency of Oscillation of RC Phase Shift Oscillator

Derivation of Frequency of Oscillation We have to find out the transfer function of RC feedback network. Feedback Circuit of RC Phase Shift Oscillator Applying KVL to various loops on the figure, we get, $$I_1 \left(R+\frac{1}{j \omega C }\right) -I_2R=V_i \text{ ....(1)}$$ $$-I_1R+I_2\left (2R+\frac {1}{j\omega C}\right)-I_3R=0\text{ ... (2)}$$ $$0-I_2R+I_3\left(2R+ \frac{1}{j\omega C}\right)=0\text{ ...(3)}$$ Replacing \(j\omega\) with \(s\) and writing equations in the matrix form, $$\begin{bmatrix}R+\frac{1}{sC} & -R & 0 \\-R & 2R+\frac{1}{sC} & -R \\0 & -R & 2R+\frac{1}{2sC} \end{bmatrix}\begin{bmatrix}I_1\\I_2\\I_3\end{bmatrix}=\begin{bmatrix}V_i\\0\\0\end{bmatrix}$$ Using Cramer's rule to find out \(I_3\), $$\text{Let, }D=\begin{bmatrix}R+\frac{1}{sC} & -R & 0 \\-R & 2R+\frac{1}{sC} & -R \\0 & -R & 2R+\frac{1}{2sC} \end{bmatrix}$$ \(|D|=\begin{vmatrix}R+\frac{1}{sC} & -R & 0 \\-R & 2R+\frac{1}{...