LOGIN
Student
 · JaipurIndia
Share
Report
Get Link
TUTORIAL

Raspberry Pi Setup Tutorial

Raspberry Pi Python
Raspberry Pi is a single board computer(SBC) which have capabilities to work like a general Desktop/Laptop computer can do. Plus it can be use to play with a lot of peripherals like LED, sensors, motors, etc to make DIY projects using on board GPIO Pins. Overall you will have a great experience working with a Pi

#raspberrypi

Display
Along with monitor keyboar and mouse are also needed.

Power Supply
http://in.element14.com/stontronics/t5454dv/psu-raspberry-pi-5v-2a-micro-usb/dp/2427498

http://uk.rs-online.com/web/c/power-supplies-transformers/power-supplies-psus/plug-in-power-supply/?searchTerm=raspberry-pi-lp-2-1116_uk&searchType=Offers&dr=N

Power supply also available at amazon

You can also use a standard powerbank to power a Raspberry pi.

HDMI cable
To connect Raspberry Pi to a HDMI monitor.

HDMI port on Raspberry Pi board -

HDMI to VGA adapter
To connect Raspberry Pi to a VGA monitor.

  • When booting is completed login prompt will appear like this -

Type “pi” and press enter. Default password is “raspberry”. Then type “startx” to load the Graphics User Interface(GUI).

  • Now the GUI will load. To start with your new os you can open terminal by clicking on Menu>Accessories>Terminal. This window will appear -

  • Type in “sudo raspi-config”. (sudo is a command in linux which gives you superuser privilege which is needed sometimes for run some commands). This window will appear -

  • Select Expand Filesystem to expand the available free space on SD card. This is basically re-partitioning your SD card. When you write the os image on your SD card a partition is created which can not be used until you re-partition it.

  • Select Change user password to change the password if you want.

  • Select Internationalisation options to set time zone, language, keyboard layout(Set keyboard layout to US English).

  • To connect to a network click on wifi icon on top right side of computer monitor screen.

  • Type in terminal “hostname -I” to check your network IP address.

  • To check available RAM go to Menu>Accessories>Task Manager.

  • Check available space. Type in terminal - “df -h”

  • To update system packages type in terminal “sudo apt-get update”

  • Upgrade os “sudo apt-get dist-upgrade”

  • Update firmware “sudo rpi-update”

  • Always remember to do updates on regular basis.

  • Change time zone - “dpkg-reconfigure tzdata”. Or to update date and time manually type - sudo date -s “Fri Feb 10 12:04 IST 2017” (This is for example. IST is Indian Standard Time. USe the time zone of your country in that place).

  • Shutdown type - “sudo halt”. Reboot - “sudo reboot”

  • Check os version - “cat /etc/os-release”

  • If there is an error in executing any command just type sudo before it.

  • Media player -
    Kodi - sudo apt-get install kodi
    VLC - sudo apt-get install vlc
    OMX player - sudo apt-get install omxplayer

  • Setting omxplayer as deafult -
    sudo apt-get install omxplayer
    sudo apt-get install xterm
    Right click on any video file > Open with… > Select “custom command line” > write the following command in box for “command line to execute” - xterm -fullscreen -fg black -bg black -e omxplayer -r %f

  • For any audio file just remove “fullscreen” from above command.

  • LEARNING PYTHON -
    www.souravsengupta.com/int2pro2014/python/LPTHW.pdf
    http://www.headfirstlabs.com/books/hfpython/
    https://robot.bolink.org/ebooks/Head First Python - ora 2011.pdf
    https://www.youtube.com/playlist?list=PL6gx4Cwl9DGAcbMi1sH6oAMk4JHw91mC_

  • UNDERSTANDING GPIO PINS -

https://www.raspberrypi.org/documentation/usage/gpio/
https://learn.sparkfun.com/tutorials/raspberry-gpio
http://makezine.com/projects/tutorial-raspberry-pi-gpio-pins-and-python/
http://pinout.xyz/

Type in terminal - “gpio readall” to show gpio pin configuration

Now basic setup for your Raspberry Pi is done. There are lots of software available in Raspbian pre-installed which you can use like Python, Scratch, Sonic Pi, Sense Hat emulator, Wolfram, Mathematica, few python based games pre-installed. So enjoy working with Pi. Hope this tutorial helps. For any further problem or problem related to this tutorial fell free to ask. Have a great experience.

Python
Raspberry Pi
4 likes 
Like
Award Contribution
Harsha Alva
73
Community Expert
Mechanical Engineer + Software Developer
 · MangaluruIndia
Share
Report
Get Link

Akshul Goyal, I have referenced your tutorial in my project Node Bot.
Thank you for the excellent write-up.

Collaborizm

Like
1 like 
Award Contribution
Share
Report
Get Link

Can We use 64GB or Higher to Rasberry Pi

Like
0 like 
Award Contribution
Student
 · JaipurIndia
Share
Report
Get Link

Aravind Aru According to compatible sd card list (the link in the tutorial) we can use upto 64gb sd card and that too only of sandisk.

Like
1 like 
Award Contribution
Steven Reubenstone
34
Community Expert
Mechanical Engineer & Tinkerer of Things.
 · New YorkU.S.
Share
Report
Get Link

Tutorial of the Week goes to Akshul Goyal!

Great job buddy…thank you for the hard work.

Like
4 likes 
Award Contribution
Steven Reubenstone
34
Community Expert
Mechanical Engineer & Tinkerer of Things.
 · New YorkU.S.
Share
Report
Get Link

I am very happy this tutorial is on the system – as I was SO confused when I first got started with Pi. I can’t even believe the questions I was asking 😂

Like
4 likes 
Award Contribution
Student
 · JaipurIndia
Share
Report
Get Link

Thank you! Steven Reubenstone
Hope this tutorial is helping everyone new to Pi

Like
1 like 
Award Contribution
Leave a reply...
DISCOVER
CHAT
ALERTS
DISCUSSIONS
FEED
New Post
Facebook Share
Share Link
Help