September 27, 2016

Installing GPIO library in Raspberry pi #3

 General Purpose Input/Output (GPIO) is an integrated pins located at the Raspberry pi.

In olden days todays' IoT technology is called as Machine to Machine technology.
Many can say their own definition for IoT, but as per my understanding IoT is know to be an "Infrastructure of the Information Society".

But in-order to do that we need to make our pi to communicate with the sensors to collect the physical parameters, at the same time it need to store the data in the cloud or the local storage using internet.

Configuring and controlling these pins will lead to achieve the above mentioned task.

Step1: Open the terminal window directly or using the  putty to initiate configuration.

Step2: Update the Raspbian OS

            in the terminal window execute the following commands using super user permission

sudo apt-get update

sudo apt-get dist-upgrade

Step3: Before getting into GPIO library installation first we need to install python packages or upgrade it using the following command
       

sudo apt-get install python-dev python3-dev

Step4: Once you done with that get onto downloading latest GPIO library from the following link


Step5: If your using putty till now, better to install WinSCP  in your laptop too, shown in the below link

        using this software we can upload the files from our laptop to raspberry pi

So we can download the GPIO library files to our laptop and then transfer the same file to our pi (It uses the same user name and password as our pi)

Step6: Anyway, i hope you have  downloaded the GPIO library in to our pi. Now use this command to extract it


tar zxvf RPi.GPIO-0.5.6.tar.gz  

(remember the package version changes depends on what you download)

Step7: Then enter into the extracted folder.

cd RPi.GPIO-0.5.6

(check the version use ls command to check what you have downloaded) 
Step8: Now Execute the silver touch command

sudo python setup.py install 

or

sudo python3 setup.py install

yahoooo!!!! our pi is ready to make GPIO action.....

bye
---
Arun      

September 26, 2016

Using Raspberry pi without a separate Monitor #2

I hope we have done the initial setup in our pi (Ref. #1)

Remember our pi is a computer, which can be operated by connecting it to the Monitor, Keyboard and a Mouse.

Usually the monitors will have HDMI port or VGA port
but our pi is equipped with HDMI port. If you monitor is VGA ported then use the HDMI to VGA converted as shown below

The true purpose of making the computer in miniature size is to encourage portability, so learning different methods will give us a use it in different possibilities.

So here is our topic "Using Raspberry pi without a separate Monitor"

Step1: Using your memory card reader; open your pi's Harddisk/SD card

Step2: Inside the "boot" drive you can find file named "cmdline". you can just open it

Step3: There you can find some config. statements in a single line. Press "end" , give a space and type this "ip=192.168.0.200"  (without double quotation)

Remember the ip address what i have mention is for example (you can mention the ip address of your own)

Step4: Reinsert the configured SD Card in your pi

Step5: There are many softwares to interlink Raspberry pi and our laptop/pc. But i find the software name "putty" is the better one among them
you can download the "putty" software in this link

Step6: Install putty in your PC/Laptop. Configure  your laptop's ip address for example if your ip address as shown above(Ref. Step3) then your laptops ip may be like this 192.168.0.100 or some other, but the first 3 sections of address should be the same "192.168.0.XXX"

Step7: Power up your pi, use Ethernet cable to connect raspberry pi and your laptop

Step8: Open putty software that you have installed; there you can find session tap in that type you pi's ip to call it as shown below


then, go to SSH tap and find X11.. in that you have to enable X11 forwarding



once you done these you can click open button below -
Raspberry pi's terminal window appears and asks for user name and password

 username >> pi
 password >> raspberry
(default user name and password for all pi)

--
Arun

Setting your Raspberry pi # 1

Now a days everyone have been talking about IoT (Internet of Things). 
of-course its true IoT is the tech, which changing our world slowly.

Are you willing to be part of it?
then, let's start our journey with Raspberry Pi.

First, get a Raspberry pi of your own 
the best choice is Raspberry pi 3 which comes with in-built WIFI



Before getting to work with Raspberry pi, we need to configure and setup certain things.

for that you need to download these 

1. Raspberry pi OS (Raspbian)

2. To format the SD card (SD Formatter)

3. To install the OS(Win32 Disk Imager)


Raspberry pi is a mini computer and its SD card is a Hard disk. So we need to install the Raspbian OS in it.

Step1: Use the SD card reader to format and install the OS. It will be much better, if  the memory card or HDD is of 8 GB or more.

Step2: Now run the SD Formatter and format the SD card (which is going to be the hard disk of our Raspberry pi)

Step3;  Run the Win32 Disk Imager (this is the software, which is going to be responsible for OS installation); So fetch/browse the downloaded Raspbian OS from your downloaded folder to this software;  (Remember, the Raspbian OS is a .iso file)

Step4:  Make sure your card reader is ready. Now run the Win32 Disk imager. it will automatically install the OS into our pi. (remember this process may take atleast 30 minutes)

After completion, reinsert the SD card in your pi.

                              
                               Now your pi is ready for action!!!!

for any doubts kindly post your queries....

--
Arun