Raspberry Pi Computer Architecture Essentials

 
 
Packt Publishing Limited
  • 1. Auflage
  • |
  • erschienen am 22. März 2016
  • |
  • 232 Seiten
 
E-Book | ePUB mit Adobe DRM | Systemvoraussetzungen
978-1-78439-860-6 (ISBN)
 
Explore Raspberry Pi's architecture through innovative and fun projectsAbout This BookExplore Raspberry Pi 2's hardware through the Assembly, C/C++, and Python programming languagesExperiment with connecting electronics up to your Raspberry Pi 2 and interacting with them through softwareLearn about the Raspberry Pi 2 architecture and Raspbian operating system through innovative projectsWho This Book Is ForRaspberry Pi Computer Architecture Essentials is for those who are new and those who are familiar with the Raspberry Pi. Each topic builds upon earlier ones to provide you with a guide to Raspberry Pi's architecture. From the novice to the expert, there is something for everyone. A basic knowledge of programming and Linux would be helpful but is not required.What You Will LearnSet up your Raspberry Pi 2 and learn about its hardwareWrite basic programs in Assembly Language to learn about the ARM architectureUse C and C++ to interact with electronic componentsFind out about the Python language and how to use it to build web applicationsInteract with third-party microcontrollersExperiment with graphics and audio programmingExpand Raspberry Pi 2's storage mechanism by using external devicesDiscover Raspberry Pi 2's GPIO pins and how to interact with themIn DetailWith the release of the Raspberry Pi 2, a new series of the popular compact computer is available for you to build cheap, exciting projects and learn about programming.In this book, we explore Raspberry Pi 2's hardware through a number of projects in a variety of programming languages. We will start by exploring the various hardware components in detail, which will provide a base for the programming projects and guide you through setting up the tools for Assembler, C/C++, and Python. We will then learn how to write multi-threaded applications and Raspberry Pi 2's multi-core processor. Moving on, you'll get hands on by expanding the storage options of the Raspberry Pi beyond the SD card and interacting with the graphics hardware. Furthermore, you will be introduced to the basics of sound programming while expanding upon your knowledge of Python to build a web server. Finally, you will learn to interact with the third-party microcontrollers.From writing your first Assembly Language application to programming graphics, this title guides you through the essentials.Style and approachThis book takes a step-by-step approach to exploring Raspberry Pi's architecture through projects that build upon each other. Each project provides you with new information on how to interact with an aspect of the Raspberry Pi and Raspbian operating system, providing a well-rounded guide.
  • Englisch
  • Birmingham
978-1-78439-860-6 (9781784398606)
1784398608 (1784398608)
weitere Ausgaben werden ermittelt
  • Cover
  • Copyright
  • Credits
  • About the Author
  • About the Reviewer
  • www.PacktPub.com
  • Table of Contents
  • Preface
  • Chapter 1: Introduction to the Raspberry Pi's Architecture and Setup
  • Chapter 2: Programming on Raspbian
  • Chapter 3: Low-Level Development with Assembly Language
  • Chapter 4: Multithreaded Applications with C/C++
  • Chapter 5: Expanding on Storage Options
  • Chapter 6: Low-Level Graphics Programming
  • Chapter 7: Exploring the Raspberry Pi's GPIO Pins
  • Chapter 8: Exploring Sound with the Raspberry Pi 2
  • Chapter 9: Building a Web Server
  • Chapter 10: Integrating with Third-Party Microcontrollers
  • Chapter 11: Final Project
  • Index
  • Summary
  • Extending the project further
  • Choose your storage mechanism
  • Summary
  • Summary
  • Adding in an LED
  • Genuino/Arduino microcontroller
  • Setting up the Arduino software
  • Integration with Arduino
  • Popular web servers available on the Raspberry Pi
  • Building a Python web server
  • Adding database support
  • Introduction to web servers
  • Introducing Sonic Pi
  • Summary
  • Summary
  • Interacting with audio through GPIO
  • Hardware choices
  • C and ALSA
  • Introduction to the Raspberry Pi's sound
  • Switching an LED on and off
  • Introduction to GPIO pins
  • VideoCore IV GPU
  • Accessing the frame buffer
  • Network-attached storage (NAS)
  • Drawing a line
  • Filling the screen with a color
  • Summary
  • Summary
  • Booting up
  • Setting up the external HDD
  • Going further - mutexes and joins
  • Summary
  • Summary
  • A C++ equivalent
  • What are threads?
  • Adding power to our program - control structures
  • Back to basics
  • Summary
  • Memory and addresses
  • Which programming languages?
  • Assembly language
  • Installing Screen and Vim
  • Some handy Linux commands
  • Troubleshooting
  • The C and C++ languages
  • The Python language
  • History and background of the Raspberry Pi
  • Basic hardware needed
  • The microSD card - the main storage and boot device of the Raspberry Pi 2
  • Running tests on the OS and configuration changes
  • Diagnostic tests
  • Over and underclocking the Raspberry Pi
  • Going further - testing the GPIO pins
  • Preinstalled microSD card versus creating your own
  • Downloading the latest version of Raspbian
  • Setting up your microSD card and installing the Raspbian operating system
  • Raspbian installation wrap-up
  • Raspberry Pi hardware specifications
  • Dimensions
  • CPU
  • Ethernet port
  • Video - analog TV out
  • A simple Python program
  • Running a Python program from a file
  • C libraries - a trove of reusable code
  • The C (and C++) compiler
  • Compiling and running our application
  • C - a brief introduction
  • A quick look at C++
  • Our first C program
  • Vim - an optional handy text editor
  • Assembling and linking
  • The .data directive
  • Assign a static IP to your Raspberry Pi 2
  • Multiline comments
  • Single line comments
  • Branching
  • The linker
  • Makefiles
  • If else statements
  • Iteration
  • The memory
  • LDR and SUB
  • Running our program
  • Thread types
  • The g++ command
  • An example in C
  • Trying out our program
  • POSIX threads
  • Steps involved in implementing threads
  • Compile and test
  • Getting the disk name
  • Setting up the HDD
  • Modifying cmdline.txt
  • A C program to turn the screen red
  • Compile and run the C program
  • Plotting pixels and drawing lines
  • Compile and run
  • Next steps - polygons
  • Installing Samba
  • Testing the NAS
  • Check the display settings
  • Testing our C code
  • Sample programs
  • Standard GPIO
  • I2C
  • Serial Rx and Tx
  • SPI
  • PWM and PPM
  • GPIO power voltages
  • C blinking LED program
  • Python blinking LED program
  • Reading data from the GPIO pins in Python
  • Configuring the audio output
  • Setting the audio output
  • ALSA examples
  • Cooking Hacks Arduino bridge shield
  • Connecting directly to the GPIO pins
  • Installing the audio drivers
  • Loading drivers
  • Getting some drum tracks
  • Python drum machine
  • Audio shields for the Raspberry Pi
  • Setup
  • Experimenting with Sonic Pi
  • HTTP requests
  • HTML
  • SQLite
  • Python program with SQLite support
  • Flask - displaying database data via Python
  • Next steps
  • Python web server code
  • Adding an index page and a favicon
  • Apache
  • NGINX
  • Serial communication over USB
  • Communication between the Arduino and Raspberry Pi via GPIO
  • Communication over I2C
  • Communication over the Web
  • Installing the IDE on your Raspberry Pi 2
  • A quick guide to the Arduino IDE
  • Building the circuit - a recap
  • Integrating with our Python app
  • Adding a database
  • A basic website
  • Web forms
  • Replace the LED with a screen
  • Playing a sound
  • Add
  • Edit
  • Mac
  • Linux
  • Creation and termination
  • Synchronization
  • Scheduling
  • User level threads
  • Hybrid threads
  • The .balign directive
  • Geany - a handy text editor and development environment
  • Creating a new C program
  • RSA key generation for SSH

Dateiformat: EPUB
Kopierschutz: Adobe-DRM (Digital Rights Management)

Systemvoraussetzungen:

Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat EPUB ist sehr gut für Romane und Sachbücher geeignet - also für "fließenden" Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Weitere Informationen finden Sie in unserer E-Book Hilfe.


Download (sofort verfügbar)

32,73 €
inkl. 19% MwSt.
Download / Einzel-Lizenz
ePUB mit Adobe DRM
siehe Systemvoraussetzungen
E-Book bestellen

Unsere Web-Seiten verwenden Cookies. Mit der Nutzung des WebShops erklären Sie sich damit einverstanden. Mehr Informationen finden Sie in unserem Datenschutzhinweis. Ok