PowerPoint - Framingham Makerspace

advertisement
Introduction to the
Raspberry Pi ®
Saman Amighi
10/2013
® Raspberry Pi Foundation
Raspberry Pi
Raspberry Pi
Created by the Raspberry Pi Foundation
Built to be an educational tool
Credit Card size computer
Linux Based
Can be powered up with existing power supplies or
batteries
Raspberry Pi
Function
It can
Be used as programming tool
Drive electronic components
Be a 24x7 Linux system
Be networked with most any device (and to each
other)
It can’t
Run windows as is
With some handy work, it can run Windows 95!
Raspberry Pi
Ports
Key Parts
• USB (1/2)
• Keyboard
• Mouse
• Power (microUSB)
• SD Card
• HDMI or TV Video
• Network/LAN (100)
• Other
• GPIO pins
• Audio Jack
• Status LEDs
Raspberry Pi
General Purpose Input Output (GPIO)
Key Pins
1 – 3.3 V
2–5V
6 – Ground
7 – GPIO4*
13 – GPIO21/27
Raspberry Pi
First steps
Purchase Raspberry Pi
Purchase Components
Create SD card
Boot up initial Image
Login
Configuration
bootup
Quick-start-guide information
Create SD card image
Assemble
Do not power up yet!!!
Insert SD Card
Connect HDMI or TV OUT
Connect Keyboard/Mouse
Connect Ethernet/Network
Ensure Monitor and Network are powered up
Connect power to the Raspberry
Login – pi/raspberry
Initial Screen
Next Steps
Decide on a project
Which project do you want to work on?
Electronics – 3 hours - $50
Media Center – 3-5 hours - $30
Linux box with 100% up time – 1 hours - $0
Printer Server (CUPS) – 1 hours - $0
NAS – 3 hours - $100
Laptop (Atrix Lapdock) – 3 hours - $100
Rasberry PI
Initial steps as a native Linux box
Raspi-config
Set date, time, timezone
change local settings for keyboard and OS
Set SSH on (9/25 version has it on)
Change pi password
apt-get update
apt-get upgrade
apt-get install xrdp
Next Steps
Linux Box
Initial tasks (cont’d)
Enable wireless if using a dongle (see next slide)
Ifconfig –a (ensure you have network IP Address)
Ex: 10.1.1.2
SSH from a windows or mac system
Windows – download and use putty 10.1.1.2
Mac – open terminal – ssh pi@10.1.1.2
If rdpx was installed – use RDP and IP Address
Windows – enable windows Remote Desktop
Mac – install Microsoft Remote Desktop
Class Activity – Session 1
(30 minutes)
Track I – Raspberry Pi Intro
Use one of the Raspi laptops or your own machine to
build the initial SD card
See instruction sheet next to Raspi laptops
Identify the ports on the Raspberry Pi and plug in the
components
Power up and observe
Track II – Linux
Login to the console
Or login remotely
Track III – GPIO Intro
Class Activity
Session 2 (30 minutes)
Track I – Raspberry Pi
Raspi-config to set the local time
Identify components using Linux commands
Track II – Linux
Clone SD card and test
Track III – GPIO
Connect two Pis via Console cable
Wire the LCD and get it operational
Next Steps
At home
Pick a project
Samba (network file servers); Media Server; simple
GPIO LED project (see sister Arduino)
Purchase the Raspberry Pi; Purchase necessary
components
Do research and bookmark specific parts
Packages (software) needed
Components, wiring diagrams
Review posts
Complete the project
Recommendations
Have multiple components handy and if possible
multiple Pis
Test an image and save it often (rpi-clone)
Read the forums before purchasing new boards,
components
Email me with questions or pictures of completed
projects
Contact me with interest in new projects
Using meetupl.com for this event
Q&A
Raspberry Pi general question?
Linux or Raspbian questions?
GPIO questions?
Electronics questions?
Download