{"id":29,"date":"2018-01-17T20:31:22","date_gmt":"2018-01-17T13:31:22","guid":{"rendered":"http:\/\/class.ajarnsunny.com\/?page_id=29"},"modified":"2019-02-06T08:25:08","modified_gmt":"2019-02-06T01:25:08","slug":"setting-up-your-raspberry-pi-rsp","status":"publish","type":"page","link":"http:\/\/class.ajarnsunny.com\/?page_id=29","title":{"rendered":"Setting up your Raspberry Pi (Rsp)"},"content":{"rendered":"<div id=\"themify_builder_content-29\" data-postid=\"29\" class=\"themify_builder_content themify_builder_content-29 themify_builder\">\n\n    \t\n\t\t<!-- module_row -->\n\t\t\t<div  class=\"themify_builder_row module_row clearfix repeat module_row_0 themify_builder_29_row module_row_29-0\">\n\t\t\t\t                                <div class=\"row_inner \" >\n\n                                    \n\t\t<div  class=\"tb-column col-full first module_column tb_29_column module_column_0 module_column_29-0-0\" >\n                                                                <div class=\"tb-column-inner\">\n                            \n\n    <!-- module image -->\n    <div  id=\"image-29-0-0-0\" class=\"module module-image image-29-0-0-0  image-overlay  \">\n\n        \n        <div class=\"image-wrap\">\n                            <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"700\" src=\"http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/Raspberry_Pi_Family_A-annotated-7001.jpg\" class=\" wp-post-image wp-image-31\" alt=\"Raspberry_Pi_Family_A-annotated-7001\" srcset=\"http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/Raspberry_Pi_Family_A-annotated-7001.jpg 700w, http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/Raspberry_Pi_Family_A-annotated-7001-150x150.jpg 150w, http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/Raspberry_Pi_Family_A-annotated-7001-300x300.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/>            \n            \n        \n                <\/div>\n        <!-- \/image-wrap -->\n        <\/div>\n    <!-- \/module image -->\n\n\n\n    <!-- module image -->\n    <div  id=\"image-29-0-0-1\" class=\"module module-image image-29-0-0-1  image-overlay  \">\n\n        \n        <div class=\"image-wrap\">\n                            <img loading=\"lazy\" decoding=\"async\" width=\"3208\" height=\"2143\" src=\"http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/Raspberry_Pi_2_Model_B_v1.1_top_new_bg_cut_out.jpg\" class=\" wp-post-image wp-image-32\" alt=\"Raspberry_Pi_2_Model_B_v1.1_top_new_(bg_cut_out)\" srcset=\"http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/Raspberry_Pi_2_Model_B_v1.1_top_new_bg_cut_out.jpg 3208w, http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/Raspberry_Pi_2_Model_B_v1.1_top_new_bg_cut_out-300x200.jpg 300w, http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/Raspberry_Pi_2_Model_B_v1.1_top_new_bg_cut_out-768x513.jpg 768w, http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/Raspberry_Pi_2_Model_B_v1.1_top_new_bg_cut_out-1024x684.jpg 1024w\" sizes=\"(max-width: 3208px) 100vw, 3208px\" \/>            \n            \n        \n                <\/div>\n        <!-- \/image-wrap -->\n        <\/div>\n    <!-- \/module image -->\n\n\n\n<!-- module text -->\n<div  id=\"text-29-0-0-2\" class=\"module module-text text-29-0-0-2  repeat \">\n    \n    <p>GPIO (General Purpose Input and Output) and Physical Computing on the Raspberry Pi<\/p><\/div>\n<!-- \/module text -->\n\n\n    <!-- module image -->\n    <div  id=\"image-29-0-0-3\" class=\"module module-image image-29-0-0-3  image-overlay  \">\n\n        \n        <div class=\"image-wrap\">\n                            <img loading=\"lazy\" decoding=\"async\" width=\"2306\" height=\"481\" src=\"http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/gpio-pins-pi2.jpg\" class=\" wp-post-image wp-image-33\" alt=\"gpio-pins-pi2\" srcset=\"http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/gpio-pins-pi2.jpg 2306w, http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/gpio-pins-pi2-300x63.jpg 300w, http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/gpio-pins-pi2-768x160.jpg 768w, http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/gpio-pins-pi2-1024x214.jpg 1024w\" sizes=\"(max-width: 2306px) 100vw, 2306px\" \/>            \n            \n        \n                <\/div>\n        <!-- \/image-wrap -->\n        <\/div>\n    <!-- \/module image -->\n\n\n\n    <!-- module image -->\n    <div  id=\"image-29-0-0-4\" class=\"module module-image image-29-0-0-4  image-top  \">\n\n        \n        <div class=\"image-wrap\">\n                            <img loading=\"lazy\" decoding=\"async\" width=\"1498\" height=\"446\" src=\"http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/gpio-numbers-pi2.png\" class=\" wp-post-image wp-image-34\" alt=\"gpio-numbers-pi2\" srcset=\"http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/gpio-numbers-pi2.png 1498w, http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/gpio-numbers-pi2-300x89.png 300w, http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/gpio-numbers-pi2-768x229.png 768w, http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/gpio-numbers-pi2-1024x305.png 1024w\" sizes=\"(max-width: 1498px) 100vw, 1498px\" \/>            \n                        <\/div>\n            <!-- \/image-wrap -->\n        \n        \n            <\/div>\n    <!-- \/module image -->\n\n\n\n    <!-- module image -->\n    <div  id=\"image-29-0-0-5\" class=\"module module-image image-29-0-0-5  image-top  \">\n\n        \n        <div class=\"image-wrap\">\n                            <img loading=\"lazy\" decoding=\"async\" width=\"1506\" height=\"434\" src=\"http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/physical-pin-numbers.png\" class=\" wp-post-image wp-image-35\" alt=\"physical-pin-numbers\" srcset=\"http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/physical-pin-numbers.png 1506w, http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/physical-pin-numbers-300x86.png 300w, http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/physical-pin-numbers-768x221.png 768w, http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/physical-pin-numbers-1024x295.png 1024w\" sizes=\"(max-width: 1506px) 100vw, 1506px\" \/>            \n                        <\/div>\n            <!-- \/image-wrap -->\n        \n        \n            <\/div>\n    <!-- \/module image -->\n\n\n\n<!-- module text -->\n<div  id=\"text-29-0-0-6\" class=\"module module-text text-29-0-0-6  repeat \">\n    \n    <p>GPIO pins are a physical interface between the Pi and the outside world. <br \/>It could be acted like a switch to turn on or off (input or output).<br \/>There are 26 GPIO pins out of 40 pins and the others are power and ground pins and two ID EEPROM pins.<\/p>\n<p><span style=\"color: #000080;\"><strong>What can you do with GPIO?<\/strong><\/span><br \/>You can program these pins to interact in different ways with real world applications.<br \/>Input can come from a physical switch or from a sensor or a signal from another computer or device.<br \/>The output can also do anything from turning on and off an LED or sending a signal or data to another device.<br \/>If you connect your Pi on a network or internet, you can control your devices <br \/>that are attached to it from anywhere and those devices can also send data back. <br \/>Connectivity and control of physical devices over the internet is a powerful and exciting thing, and <br \/>the Raspberry Pi is ideal for this. There are lots of brilliant examples of physical computing.<br \/><strong>Reference: www.raspberrypi.org<\/strong><\/p>\n<p><span style=\"color: #000080;\">Hard wares:<\/span><br \/>1. Raspberry Pi unit<br \/>2. MicroSD card (raspberry pi hard disk)<br \/>3. Mouse, Keyboard, power adapter.<\/p>\n<p><span style=\"color: #000080;\">Soft wares:<\/span><br \/>1. Raspberry Pi OS (Raspbian- debian for Rsp)<br \/>-the OS image (Raspbian Jessie: Debian for Rsp) can be downloaded from raspberrypi.org<br \/>2. <a href=\"https:\/\/www.sdcard.org\/downloads\/formatter_4\/\">SD card formatter<\/a><br \/>3. <a href=\"https:\/\/sourceforge.net\/projects\/win32diskimager\/\">Win32 Disk Image installer<\/a> for windows (in case you have the .img file)<br \/>4. For MAC user please refer to the link below for preparing the SD card.<\/p>\n<p><span style=\"color: #000080;\"><strong>What you have to do?<\/strong><\/span><\/p>\n<h5><span style=\"color: #000080;\"><strong>1. Insert your SD card into your computer\/notebook and format by using the SD card format software<\/strong><\/span><\/h5>\n<p><span style=\"color: #000080;\">Windows<\/span><\/p>\n<ul>\n<li>Download and install the SD Association&#8217;s Formatting tool from https:\/\/www.sdcard.org\/downloads\/formatter_4\/eula_windows\/<\/li>\n<li>Open the Application you have just installed<\/li>\n<li>Set &#8220;FORMAT SIZE ADJUSTMENT&#8221; to ON in the Options menu.<\/li>\n<li>Make sure you have selected the Drive your SD Card is inserted in<\/li>\n<li>Click &#8220;Format&#8221;<\/li>\n<\/ul>\n<p><span style=\"color: #000080;\">Mac<\/span><\/p>\n<ul>\n<li>Download and install the SD Association&#8217;s Formatting tools from https:\/\/www.sdcard.org\/downloads\/formatter_4\/eula_mac\/<\/li>\n<li>Select &#8220;Overwrite format&#8221;<\/li>\n<li>Make sure you have selected your SD Card, and not something else<\/li>\n<li>Click &#8220;Format&#8221;<\/li>\n<\/ul>\n<p><span style=\"color: #000080;\">Linux<\/span><\/p>\n<ul>\n<li>Use gparted (or the command-line version parted if you prefer), if you don&#8217;t have it, install it as you usually would.<\/li>\n<li>Format the entire disk as FAT32 (FAT16 will not work! Make sure you select the correct disk!)<\/li>\n<\/ul>\n<h5><span style=\"color: #000080;\"><strong>2. Unzip your selected OS and copy the whole files into your SD card. <\/strong><strong>Or use the window image installer (for the .img file) to install your OS into the SD card<\/strong><\/span><\/h5>\n<p><span style=\"color: #000080;\">Using the Win32DiskImager program<\/span><\/p>\n<ul>\n<li>Download the distribution from the http:\/\/www.raspberrypi.org\/downloads or from a mirror or torrent. Make sure the distribution is for the Raspberry Pi, as others will not work. Usually these are zipped (compressed) files ending in .zip or .gz (something like &#8220;distribution-name.zip&#8221;).<\/li>\n<li>Extract the image file from the downloaded .zip file, so you now have &#8220;distribution-name.img&#8221;.<\/li>\n<li>Insert the SD card into your SD card reader and check what drive letter it was assigned. You can easily see the drive letter (for example G:) by looking in the left column of Windows Explorer. You can use the SD Card slot (if you have one) or a cheap Adapter in a USB slot.<\/li>\n<li>Download the http:\/\/sourceforge.net\/projects\/win32diskimager utility (it is also a zip file). You can run this from a USB drive. Win32DiskImager screen<\/li>\n<li>Extract the executable from the zip file and run the Win32DiskImager utility; you may need to run the utility as Administrator! Right-click on the file, and select &#8216;Run as Administrator&#8217;<\/li>\n<li>Select the image file you extracted above.<\/li>\n<li>Select the drive letter of the SD card in the device box. Be careful to select the correct drive; if you get the wrong one you can destroy your data on the computer&#8217;s hard disk! If you are using an SD Card slot in your computer (if you have one) and can&#8217;t see the drive in the Win32DiskImager window, try using a cheap Adapter in a USB slot.<\/li>\n<li>Click Write and wait for the write to complete.<\/li>\n<li>Exit the imager and eject the SD card.<\/li>\n<li>You are now ready to plug the card into your Raspberry Pi<\/li>\n<\/ul><\/div>\n<!-- \/module text -->\n\n\n    <!-- module image -->\n    <div  id=\"image-29-0-0-7\" class=\"module module-image image-29-0-0-7  image-top  \">\n\n        \n        <div class=\"image-wrap\">\n                            <img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"146\" src=\"http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/300px-Win32DiskImager.png\" class=\" wp-post-image wp-image-38\" alt=\"300px-Win32DiskImager\" \/>            \n                        <\/div>\n            <!-- \/image-wrap -->\n        \n        \n            <\/div>\n    <!-- \/module image -->\n\n\n\n<!-- module text -->\n<div  id=\"text-29-0-0-8\" class=\"module module-text text-29-0-0-8  repeat \">\n    \n    <p>\u00a0<\/p>\n<p><span style=\"color: #000080;\">For Mac user please check out the<\/span> http:\/\/elinux.org\/RPi_Easy_SD_Card_Setup<\/p>\n<p>Add \u201cSSH\u201d File to the SD Card Root<br \/>Enable SSH by placing a file named \u201cssh\u201d (without any extension) onto the boot partition of the SD card:<\/p>\n<p>\u00a0<\/p><\/div>\n<!-- \/module text -->\n\n\n    <!-- module image -->\n    <div  id=\"image-29-0-0-9\" class=\"module module-image image-29-0-0-9  image-top  \">\n\n        \n        <div class=\"image-wrap\">\n                            <img loading=\"lazy\" decoding=\"async\" width=\"1214\" height=\"805\" src=\"http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/0_z9-QmlW-rVcKeWCq.png\" class=\" wp-post-image wp-image-56\" alt=\"0_z9-QmlW-rVcKeWCq\" srcset=\"http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/0_z9-QmlW-rVcKeWCq.png 1214w, http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/0_z9-QmlW-rVcKeWCq-300x199.png 300w, http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/0_z9-QmlW-rVcKeWCq-768x509.png 768w, http:\/\/class.ajarnsunny.com\/wp-content\/uploads\/2018\/01\/0_z9-QmlW-rVcKeWCq-1024x679.png 1024w\" sizes=\"(max-width: 1214px) 100vw, 1214px\" \/>            \n                        <\/div>\n            <!-- \/image-wrap -->\n        \n        \n            <\/div>\n    <!-- \/module image -->\n\n\n\n<!-- module text -->\n<div  id=\"text-29-0-0-10\" class=\"module module-text text-29-0-0-10  repeat \">\n    \n    <h5 style=\"text-align: left;\"><span style=\"color: #000080;\"><strong>3. Insert your micro SD card into your raspberry pi then turn on your raspberry pi and you are done! \ud83d\ude42<\/strong><\/span><\/h5>\n<p style=\"text-align: left;\">Some commands to update and upgrade your system applications. <br \/>(make sure that you already connect your Rsp to the internet)<br \/>-To update, open your terminal then type &#8220;<strong>sudo apt-get update<\/strong>&#8220;<br \/>-To upgrade, open your terminal then type &#8220;<strong>sudo apt-get upgrade<\/strong>&#8220;<\/p><\/div>\n<!-- \/module text -->\n                        <\/div>\n                    \t\t<\/div>\n\t\t<!-- \/.tb-column -->\n\t\t\n\t\t\n                                <\/div>\n                                <!-- \/row_inner -->\n                        <\/div>\n                        <!-- \/module_row -->\n\t\t<\/div>\n","protected":false},"excerpt":{"rendered":"<p>GPIO (General Purpose Input and Output) and Physical Computing on the Raspberry Pi GPIO pins are a physical interface between the Pi and the outside world. It could be acted like a switch to turn on or off (input or output).There are 26 GPIO pins out of 40 pins and the others are power and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":14,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-29","page","type-page","status-publish","hentry","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"http:\/\/class.ajarnsunny.com\/index.php?rest_route=\/wp\/v2\/pages\/29"}],"collection":[{"href":"http:\/\/class.ajarnsunny.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/class.ajarnsunny.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/class.ajarnsunny.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/class.ajarnsunny.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=29"}],"version-history":[{"count":11,"href":"http:\/\/class.ajarnsunny.com\/index.php?rest_route=\/wp\/v2\/pages\/29\/revisions"}],"predecessor-version":[{"id":653,"href":"http:\/\/class.ajarnsunny.com\/index.php?rest_route=\/wp\/v2\/pages\/29\/revisions\/653"}],"up":[{"embeddable":true,"href":"http:\/\/class.ajarnsunny.com\/index.php?rest_route=\/wp\/v2\/pages\/14"}],"wp:attachment":[{"href":"http:\/\/class.ajarnsunny.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}