Raspberry Pi Essentials
eBook - ePub

Raspberry Pi Essentials

Jack Creasey

Partager le livre
  1. 212 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Raspberry Pi Essentials

Jack Creasey

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Raspberry Pi Essentials est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Raspberry Pi Essentials par Jack Creasey en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Ciencia de la computaciĂłn et Redes de computadoras. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2015
ISBN
9781784396398

Raspberry Pi Essentials


Table of Contents

Raspberry Pi Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting Started with Raspberry Pi
Let's get started
Unboxing the Raspberry Pi
Configure power for Pi
Local display, keyboard, mouse, or remote headless access
Selecting a screen
Connecting VGA displays
Getting your SD Card ready
Booting the Raspberry Pi for the first time
It's time to power up the Pi
No video on initial boot
Final installation configuration
A quick tour of the desktop
Instructions for downloading all project files
Summary
2. Configuring the Raspberry Pi Desktop and Software
Hardware and software networking configuration
Client reservations for Ethernet and wireless
Configuring the Raspberry Pi desktop and software
Keeping the development environment up to date
Setting up a screensaver
Manually locking your session
Desktop and file manager accelerators
Adding root privileges to the PCManFM file manager
Programming on the Raspberry Pi
Developing with Bash shell scripts
Project 1 – Building a talking clock with a Bash script
Creating project files and directories
Building a talking clock with Python 3
Summary
3. Raspberry Pi and Cameras
Connecting cameras to the Raspberry Pi
PiCam and PiNoIR
Webcams
Project architecture for the Raspberry Pi security camera
Features and limitations of the cameras
Testing camera capability
Viewing CPU resource for the luvcview application
Verifying the PiCam operation
Controlling data storage for video
Testing the data storage limit
Project 1 – Running raspivid as a background service
Project 1a – Creating a Bash script to drive raspivid
Testing the picam.sh script
Project 1b – Creating a movement detector with a USB camera
Test the webcam installation
A final word on resolution and frame rate for movement detection
Project 2 – Combining the webcam movement detector and the PiCam camera
Project 3 – Creating a simple Python GUI for the security application
Summary
4. Raspberry Pi Audio Input and Output
Audio quality and bandwidth
Audio capability on the Raspberry Pi
Limited headphone output
Understanding the ALSA configuration
Configuring the default device for ALSA
Configuring the Raspberry Pi to support high-quality sound
Project 1 – Installing an advanced audio playback application
Building an Internet radio based on VLC and Raspberry Pi
Project 2a – Running VLC in the background for the Internet radio
Starting VLC automatically at reboot
Project 2b – Designing a playlist file for the Internet radio
Chapter 4 supplemental materials
Project 2c – Parsing the playlist file for the Internet radio
Project 2d – Implementing a Python text interface to VLC
Project 3 – Implementing a TKinter GUI for the Internet radio
Running tktest.py
Creating a clock in the radio UI
Running tkradio.py
Recording sound files on the Pi
Summary
5. Port Input and Output on the Raspberry Pi
Understanding Raspberry Pi digital input and output ports
Using breakout boards with the Raspberry Pi
Driving LEDs as output indicators
Python LED demo
TKinter LED demo
Block 1 – initialization
Block 2 – on/off buttons
Block 3 – monostable function
Block 4 – loop flash
Block 5 – PWM flash
Block 6 – TKPWM flash and toggle tkrun
Block 7 – start the application
TKinter switch demo
Block 1 – the activity indicator
Block 2 – the Edge switch detector
Block 3 – the Event switch detector
Adding a physical switch interface to the Internet radio
Project 1 – Add a switch interface to the Internet radio
Summary
6. Driving I2C Peripherals on the Raspberry Pi
Getting started with I2C
Understanding address fields
Driving RC servos
Raspberry Pi software requirements for SMBus
Programming the PCA 9685 to drive a servo
PCA 9685 addressing and registers
Project 1 – Python control of a PWM board driving RC servo motors
Code block 1 – imports, constants, and variables
Code block 2 – I2C access functions
Code block 3 – the PCA9685 specific code
Code block 4: the test code
Other demo code
Summary
7. Going Mobile with Raspberry Pi
Remote access to the Raspberry Pi
Using PuTTY remote access
Installing PuTTY on Microsoft Windows
Remote access from Linux and OSX
Testing your remote session from a PC or Mac
Battery power systems
Selecting regulators
Measuring Raspberry Pi project current
Potential battery power solutions
Adafruit PowerBoost 1000 Basic
Adafruit PowerBoost 500C
Power banks as an alternative mobile power system
Project 1 – Selecting a project battery capacity
Summary
8. Creating a Raspberry Pi Line-following Robot
Implementing a line-following robot
Line-following robot architecture
Software architecture
Software module functions
Implementing rbuttons.py
Downloading rbuttons.py and test-buttons.py
Implementing rcam.py
Installing the pip manager
Installing the pip package manager
Installing Pillow
Downloading rcam.py
Implementing rwheel.py
Downloading rwheel.py and test-rwheel.py
Implementing navigate.py
Downloading navigate.py
The steering methodology
Open loop servo control
Analyzing camera data
Steering algorithm
Time to build the mobile system
Checking wireless connectivity
Line-following robot
Assembling the robot
How to bring up your robot
Navigating the robot
Summary
Index

Raspberry Pi Essentials

Copyright © 2...

Table des matiĂšres