Raspberry Pi Essentials
eBook - ePub

Raspberry Pi Essentials

Jack Creasey

Compartir libro
  1. 212 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Raspberry Pi Essentials

Jack Creasey

Detalles del libro
Vista previa del libro
Índice
Citas

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Raspberry Pi Essentials un PDF/ePUB en línea?
Sí, puedes acceder a Raspberry Pi Essentials de Jack Creasey en formato PDF o ePUB, así como a otros libros populares de Ciencia de la computación y Redes de computadoras. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
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...

Índice