際際滷

際際滷Share a Scribd company logo
Intro	
 to	
 Raspberry	
 Pi	
 
A	
 Southwest	
 Florida	
 Hackerspace	
 
Workshop	
 
Presented	
 by:	
 
Russell	
 Benzing	
 &	
 Eric	
 Schi鍖i	
 
Raspberry Pi Course for Beginners
Step-by-Step to your first Raspberry Pi Project - compatible with
Raspberry Pi 4, 3, 2 and Zero models
Click here----
WHY ARE YOU HERE?
則р Enjoy	
 Enkering	
 with	
 technology.	
 
	
 
則р Do	
 not	
 mind	
 wriEng	
 a	
 liJle	
 bit	
 of	
 code.	
 
	
 
則р Have	
 experience	
 in	
 Linux,	
 Robots,	
 Sensors,	
 etc.	
 
	
 
則р Recently	
 announced	
 you	
 have	
 an	
 addicEon	
 to	
 
raspberry	
 pie.	
 
YOU:
WHAT WILL I LEARN?
則р What	
 a	
 Raspberry	
 Pi	
 is	
 and	
 does.	
 
	
 
則р How	
 to	
 setup	
 the	
 Pi	
 for	
 the	
 鍖rst	
 Eme.	
 
	
 
則р Basic	
 Commands	
 and	
 FamiliarizaEon.	
 
	
 
則р Setup	
 your	
 鍖rst	
 sensor	
 and	
 LED.	
 
	
 
則р Pi	
 Resources	
 &	
 Tutorials
WHAT IS A RASPBERRY PI?
A	
 low	
 cost,	
 credit-足card	
 sized	
 computer	
 
GPIO	
 40	
 Pin	
 
4	
 USB	
 Ports	
 
RJ45	
 Ethernet	
 
3.5mm	
 Audio	
 
Pi	
 camera	
 
LCD	
 Display	
 
HDMI	
 
Power
THE HISTORY OF PI
則р Early	
 concepts	
 started	
 in	
 2006.	
 
	
 
則р Based	
 on	
 Atmel	
 ATmega644.	
 
	
 
則р O鍖cially	
 launched	
 in	
 2012.	
 
	
 
則р Inspired	
 by	
 Acorns	
 BBC	
 Micro	
 from	
 1981.	
 
	
 
則р Original	
 concept	
 was	
 to	
 inspire	
 and	
 educate	
 
children	
 in	
 computers.
GETTING STARTED - 
 REQUIREMENTS	
 
1.Raspberry	
 Pi	
 B+	
 or	
 newer.	
 
	
 
2.USB	
 wi鍖	
 adapter.	
 
	
 
3.Keyboard	
 and/or	
 mouse.	
 
	
 
4.Laptop	
 or	
 HDMI	
 display	
 monitor.	
 
	
 
5.SD	
 Card	
 (8	
 GB+	
 recommended).	
 
	
 
6.SD	
 Card	
 Reader.
1.	
 Download	
 NOOBS	
 	
 visit	
 www.raspberrypi.org	
 clicking	
 on	
 downloads.	
 
	
 
2.	
 Download	
 SD	
 FormaJer	
 	
 visit	
 www.sdcard.org	
 clicking	
 on	
 downloads.	
 
GETTING STARTED - 
 DOWNLOAD
GETTING STARTED - 
 EXTRACT	
 &	
 COPY	
 
1. Format	
 your	
 SD	
 Card	
 using	
 the	
 SD	
 FormaJer	
 	
 More	
 instrucEons	
 found	
 online.	
 
	
 
2. Extract	
 NOOBS	
 to	
 a	
 folder	
 and	
 drag	
 and	
 drop	
 onto	
 your	
 newly	
 formaJed	
 SD	
 
Card.
GETTING STARTED - 
 BOOTUP	
 &	
 INSTALL	
 
1. Once	
 your	
 Raspberry	
 Pi	
 is	
 powered	
 and	
 booEng	
 up	
 it	
 will	
 ask	
 you	
 to	
 install	
 an	
 
OperaEng	
 System.	
 
	
 
2. Check	
 the	
 box	
 for	
 Raspbian	
 and	
 click	
 Install.	
 This	
 can	
 take	
 quite	
 a	
 bit	
 of	
 Eme.
GETTING STARTED - 
 CONFIGURATION	
 
1. When	
 booEng	
 up	
 for	
 the	
 鍖rst	
 Eme	
 you	
 will	
 get	
 the	
 blue	
 raspi-足con鍖g	
 screen.	
 
Here	
 you	
 can	
 con鍖gure	
 your	
 Pi	
 with	
 language	
 and	
 keyboard	
 seongs	
 for	
 your	
 
desired	
 region	
 of	
 the	
 world.	
 Use	
 tab	
 and	
 arrow	
 keys	
 to	
 browse.	
 
	
 	
 
2. Once	
 con鍖gured	
 to	
 your	
 liking	
 go	
 to	
 <Finish>	
 and	
 hit	
 enter.	
 This	
 will	
 take	
 you	
 to	
 
the	
 command	
 prompt	
 where	
 you	
 will	
 need	
 to	
 type	
 in	
 startx	
 to	
 start	
 up	
 the	
 
GUI	
 (Graphical	
 User	
 Interface)
BASIC PI COMMAND LINE - 1 
rasp-足con鍖g	
 	
 	
 
Change	
 your	
 pi	
 con鍖guraEon	
 seongs.	
 	
 
	
 
startx	
 	
 
Start	
 the	
 GUI	
 (Graphical	
 User	
 Interface)	
 
	
 
ifcon鍖g	
 
Get	
 the	
 details	
 of	
 your	
 Ethernet	
 or	
 
wireless	
 network	
 adapter.	
 
	
 
rpi-足update	
 
Updates	
 your	
 Raspberry	
 Pi	
 鍖rmware.	
 
	
 
lsusb	
 
Shows	
 a	
 list	
 of	
 usb	
 devices.	
 
	
 
apt-足get	
 update	
 &	
 apt-足get	
 upgrade	
 
Update	
 or	
 upgrade	
 your	
 pi	
 sorware	
 
Useful	
 commands	
 to	
 run	
 from	
 a	
 terminal	
 or	
 command	
 line.	
 
ssh	
 
Connect	
 your	
 pi	
 to	
 other	
 computers.	
 
	
 
sudo	
 	
 
Run	
 commands	
 as	
 super	
 user.	
 	
 
	
 
shutdown	
 
This	
 will	
 shutdown	
 your	
 pi.	
 
	
 
nano	
 
This	
 is	
 your	
 text	
 editor	
 for	
 changing	
 or	
 
adding	
 鍖les.	
 Save,	
 edit,	
 create.	
 
	
 
cat	
 
Read	
 out	
 鍖les	
 at	
 the	
 command	
 line.	
 
	
 
passwd	
 
Change	
 your	
 user	
 password.
BASIC PI COMMAND LINE - 2 
ls	
 
List	
 out	
 the	
 current	
 directory	
 鍖les.	
 
	
 
cd	
 
Go	
 to	
 directory	
 or	
 folder.	
 
	
 
鍖nd	
 
Searches	
 whole	
 system	
 for	
 鍖les	
 or	
 
directories.	
 
	
 
clear	
 
Clears	
 the	
 terminal	
 screen.	
 
	
 
mv	
 
Move	
 鍖les	
 or	
 folders.	
 
	
 
rm	
 &	
 rmdir	
 
Remove	
 鍖les	
 and	
 remove	
 directories.	
 
Useful	
 commands	
 to	
 run	
 from	
 a	
 terminal	
 or	
 command	
 line.	
 
touch	
 
Create	
 a	
 blank	
 鍖le.	
 
	
 
mkdir	
 
Create	
 a	
 directory.	
 
	
 
ping	
 
Test	
 connecEvity	
 between	
 two	
 devices.	
 
	
 
df	
 -足h	
 
Shows	
 disk	
 space.	
 
	
 
iwcon鍖g	
 
Wireless	
 con鍖guraEon	
 tool.	
 
	
 
cp	
 
Copy	
 鍖les	
 and	
 folders.
ADDING OTHER FEATURES
WIFI	
 Con鍖guraEon	
 (GUI)	
 
1.	
 Launch	
 Wi鍖	
 Con鍖g	
 from	
 the	
 desktop.	
 
2.	
 Click	
 Scan	
 
3.	
 Double	
 click	
 your	
 desired	
 network.	
 
4.	
 In	
 PSK	
 鍖eld	
 enter	
 your	
 wi鍖	
 password.	
 
5.	
 When	
 done	
 click	
 Add	
 and	
 it	
 will	
 connect.	
 
SSH	
 Con鍖guraEon	
 (command	
 line)	
 
1.	
 Run	
 sudo	
 apt-足get	
 install	
 ssh	
 in	
 command	
 line.	
 
2.	
 Run	
 sudo	
 /etc/init.d/ssh/	
 start	
 to	
 start	
 ssh.	
 
3.	
 To	
 have	
 SSH	
 start	
 always	
 at	
 boot,	
 run:	
 
	
 	
 	
 	
 sudo	
 update-足rc.d	
 ssh	
 defaults	
 
4.	
 Now	
 reboot:	
 sudo	
 reboot	
 
5.	
 You	
 should	
 now	
 be	
 able	
 to	
 connect	
 SSH	
 to	
 your	
 
	
 	
 	
 	
 pi	
 via	
 the	
 IP	
 Address	
 using	
 PuTTy	
 or	
 similar	
 SSH	
 client.
CONGRATULATIONS!
Take	
 this	
 Eme	
 to	
 celebrate	
 and	
 enjoy	
 some	
 Pi	
 before	
 we	
 go	
 to	
 the	
 next	
 level.	
 	
 
Your	
 on	
 your	
 way	
 to	
 being	
 a	
 Pi	
 guru.	
 
Whats	
 Next?

More Related Content

Introduction to Raspberry Pi.pdf

  • 1. Intro to Raspberry Pi A Southwest Florida Hackerspace Workshop Presented by: Russell Benzing & Eric Schi鍖i Raspberry Pi Course for Beginners Step-by-Step to your first Raspberry Pi Project - compatible with Raspberry Pi 4, 3, 2 and Zero models Click here----
  • 2. WHY ARE YOU HERE? 則р Enjoy Enkering with technology. 則р Do not mind wriEng a liJle bit of code. 則р Have experience in Linux, Robots, Sensors, etc. 則р Recently announced you have an addicEon to raspberry pie. YOU:
  • 3. WHAT WILL I LEARN? 則р What a Raspberry Pi is and does. 則р How to setup the Pi for the 鍖rst Eme. 則р Basic Commands and FamiliarizaEon. 則р Setup your 鍖rst sensor and LED. 則р Pi Resources & Tutorials
  • 4. WHAT IS A RASPBERRY PI? A low cost, credit-足card sized computer GPIO 40 Pin 4 USB Ports RJ45 Ethernet 3.5mm Audio Pi camera LCD Display HDMI Power
  • 5. THE HISTORY OF PI 則р Early concepts started in 2006. 則р Based on Atmel ATmega644. 則р O鍖cially launched in 2012. 則р Inspired by Acorns BBC Micro from 1981. 則р Original concept was to inspire and educate children in computers.
  • 6. GETTING STARTED - REQUIREMENTS 1.Raspberry Pi B+ or newer. 2.USB wi鍖 adapter. 3.Keyboard and/or mouse. 4.Laptop or HDMI display monitor. 5.SD Card (8 GB+ recommended). 6.SD Card Reader.
  • 7. 1. Download NOOBS visit www.raspberrypi.org clicking on downloads. 2. Download SD FormaJer visit www.sdcard.org clicking on downloads. GETTING STARTED - DOWNLOAD
  • 8. GETTING STARTED - EXTRACT & COPY 1. Format your SD Card using the SD FormaJer More instrucEons found online. 2. Extract NOOBS to a folder and drag and drop onto your newly formaJed SD Card.
  • 9. GETTING STARTED - BOOTUP & INSTALL 1. Once your Raspberry Pi is powered and booEng up it will ask you to install an OperaEng System. 2. Check the box for Raspbian and click Install. This can take quite a bit of Eme.
  • 10. GETTING STARTED - CONFIGURATION 1. When booEng up for the 鍖rst Eme you will get the blue raspi-足con鍖g screen. Here you can con鍖gure your Pi with language and keyboard seongs for your desired region of the world. Use tab and arrow keys to browse. 2. Once con鍖gured to your liking go to <Finish> and hit enter. This will take you to the command prompt where you will need to type in startx to start up the GUI (Graphical User Interface)
  • 11. BASIC PI COMMAND LINE - 1 rasp-足con鍖g Change your pi con鍖guraEon seongs. startx Start the GUI (Graphical User Interface) ifcon鍖g Get the details of your Ethernet or wireless network adapter. rpi-足update Updates your Raspberry Pi 鍖rmware. lsusb Shows a list of usb devices. apt-足get update & apt-足get upgrade Update or upgrade your pi sorware Useful commands to run from a terminal or command line. ssh Connect your pi to other computers. sudo Run commands as super user. shutdown This will shutdown your pi. nano This is your text editor for changing or adding 鍖les. Save, edit, create. cat Read out 鍖les at the command line. passwd Change your user password.
  • 12. BASIC PI COMMAND LINE - 2 ls List out the current directory 鍖les. cd Go to directory or folder. 鍖nd Searches whole system for 鍖les or directories. clear Clears the terminal screen. mv Move 鍖les or folders. rm & rmdir Remove 鍖les and remove directories. Useful commands to run from a terminal or command line. touch Create a blank 鍖le. mkdir Create a directory. ping Test connecEvity between two devices. df -足h Shows disk space. iwcon鍖g Wireless con鍖guraEon tool. cp Copy 鍖les and folders.
  • 13. ADDING OTHER FEATURES WIFI Con鍖guraEon (GUI) 1. Launch Wi鍖 Con鍖g from the desktop. 2. Click Scan 3. Double click your desired network. 4. In PSK 鍖eld enter your wi鍖 password. 5. When done click Add and it will connect. SSH Con鍖guraEon (command line) 1. Run sudo apt-足get install ssh in command line. 2. Run sudo /etc/init.d/ssh/ start to start ssh. 3. To have SSH start always at boot, run: sudo update-足rc.d ssh defaults 4. Now reboot: sudo reboot 5. You should now be able to connect SSH to your pi via the IP Address using PuTTy or similar SSH client.
  • 14. CONGRATULATIONS! Take this Eme to celebrate and enjoy some Pi before we go to the next level. Your on your way to being a Pi guru. Whats Next?