Raspberry Pi_ Complete Tips and Tricks to Raspberry Pi Setup and Project Development.pdf

(845 KB) Pobierz
© Copyright 2019 Joe Grant - All rights reserved
No portion of this book may be reproduced- mechanically, electronically or by any other means,
including photocopying without written permission from the author or the publisher.
Under no circumstances will any blame or legal responsibility be held against the publisher, or author,
for any damages, reparation, or monetary loss due to the information contained within this book. Either
directly or indirectly.
Legal Notice:
This book is copyright protected. This book is only for personal use. You cannot amend, distribute, sell,
use, quote or paraphrase any part, or the content within this book, without the consent of the author or
publisher.
Disclaimer Notice:
Please note the information contained within this document is for educational and entertainment
purposes only. All effort has been executed to present accurate, up to date, and reliable, complete
information. No warranties of any kind are declared or implied. Readers acknowledge that the author is
not engaging in the rendering of legal, financial, medical or professional advice. The content within this
book has been derived from various sources. Please consult a licensed professional before attempting
any techniques outlined in this book.
By reading this document, the reader agrees that under no circumstances is the author responsible for
any losses, direct or indirect, which are incurred as a result of the use of information contained within
this document, including, but not limited to, — errors, omissions, or inaccuracies.
Table of Contents
Introduction
Chapter 1: What to Know About Raspberry Pi
Tour of the Raspberry Pi
Model A/B
Model A+/B+
Raspberry Pi 2
Raspberry Pi 3
Raspberry Pi Zero
The Raspberry Pi 4 Model B
The Raspberry Pi 4 Model B Components
Ports of the Raspberry Pi
Peripherals
Chapter 2: Getting Ready for Raspberry Pi
Setting up Your Raspberry Pi Hardware
Get Ready to Assemble the Case
Connecting a Display
Composite Video
HDMI Video
DSI Video
Connecting Audio
Connecting a Keyboard and a Mouse
Setting up Your Software
Installing Your Operating System
Manual Installation
Flashing from Linux
Flashing from OS X
Flashing from Windows
Chapter 3: How to Use Raspberry Pi
Welcome Wizard
Using the Desktop
Chromium
File Manager
LibreOffice Productivity Suite
Recommended Software Tool
Raspberry Pi Configuration Tool
Shutting Down
Chapter 4: How to Program with Scratch
History
Scratch Interface
Hello World
Animation and Sound
A Simple Game
Boolean Logic
Using Hardware to Interface with Scratch
Chapter 5: How to Program with Python
Introducing Python
Example #1: Hello World
Making a Python Program Executable
Example #2: Inputs, Variables, Comments, and Loops
What Does == Mean?
Example #3: Pygame
Chapter 6: Physical Computing with Scratch and Python
The GPIO Header
Lighting and LED
The Importance of Resistance
Controlling an LED with Scratch
Controlling an LED with Python
Breadboard
Project: Reading a Button
Project: How to Read a Button in Scratch
Project: How to Read a Button in Python
Controlling a Buzzer
Zgłoś jeśli naruszono regulamin