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
Step3: Before getting into GPIO library installation first we need to install python packages or upgrade it using the following command
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
yahoooo!!!! our pi is ready to make GPIO action.....
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
|
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: T
hen enter into the extracted folder.
|
(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
No comments:
Post a Comment