Trending Technology Machine Learning, Artificial Intelligent, Block Chain, IoT, DevOps, Data Science

Recent Post

Codecademy Code Foundations

Search This Blog


Computer in your palm.
Single-board computer.
Low cost.
Easy to access.

Specification :

Basic Architecture :

Raspberry Pi

Raspberry Pi GPIO

Act as both digital output and digital input.

Output : turn a GPIO pin high or low.

Input : detect a GPIO pin high or low.

Raspberry Pi pin configuration

Basic Set up for Raspberry Pi
  • HDMI cable
  • Monitor.
  • Key board
  • Mouse
  • 5volt power adapter for raspberry pi.
  • LAN cable
  • Min - 2GB micro sd card
Operating System

Official Supported OS :
  • Raspbian
Some of the third party OS :
  • UBUNTU mate
  • Snappy Ubuntu core
  • Windows 10 core
  • Pinet 
  • Risc OS
Raspberry Pi Setup

Download Raspbian :
  • Download latest Raspbian image from raspberry pi official site :
  • Unzip the file and end up with an .img file.

Raspberry Pi OS Setup
Write Raspbian in SD card :
  • Install "Win32 Dist Imager" software in windows machine .
  • Run Win32 Disk Imager
  • Plug SD card into your PC
  • Select the "Device"
  • Browse the "Image File" (Raspbian image)
  • Write

Basic Initial Configuration

Enable SSH

Step1 : Open command prompt and type sudo raspi-config and press enter.

Step2 : Navigate to SSH in the Advance option.

Step3 : Enable SSH

Programming :

Default installed :
  • Python
  • C++
  • Java
  • Scratch
  • Ruby
Note : Any language that will compile for ARMv6 can be used with raspberry pi.

Popular Applications
  • Media streamer
  • Home automation
  • Controlling BOT
  • VPN
  • Light weight web server for IOT
  • Tablet computer

Blinking LED
  • Requirement :
  • Raspberry pi
  • LED
  • 100 ohm resistor
  • Bread board
  • Jumper cables
Installing GPIO library :
  • Open terminal
  • Enter the command "sudo apt-get install python-dev" to install python
  • Enter the command "sudo apt-get install python-rpi.gpio" to install GPIO library.
  • Connection :

        - Connect the negative terminal of the LED to the ground pin of pi.
        - Connect the positive terminal of the LED to the output pin of pi

Basic python coding :
  • Open terminal enter the command
  • This will open the nano editor where you can write your code
  • Ctrl+O : Writes the code to the file
  • Ctrl+X : Exits the editor

No comments:

Post a Comment

Popular Posts