万本电子书0元读

万本电子书0元读

顶部广告

Banana Pro Blueprints电子书

售       价:¥

0人正在读 | 0人评论 9.8

作       者:Ruediger Follmann

出  版  社:Packt Publishing

出版时间:2015-12-31

字       数:383.0万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Leverage the capability of Banana Pi with exciting real-world projects About This Book Delve into the expanse of Banana Pi’s self-managing functionalities and develop real-world projects Gain hands-on experience of developing various wireless, multimedia, robotic, and sensor-based applications with Banana Pi Develop your applications using Banana Pi through a project-based approach Who This Book Is For This book is designed for those who are interested in exploring the capabilities of Banana Pro. Basic know-how of Linux and embedded systems would be an added advantage. What You Will Learn Remotely connect to Banana Pro and program the embedded board Use Banana Pro as a hotspot or provide an AirPlay server for wireless audio transmission Find out about the different programming languages that can be used with Banana Pro Build and program your own multimedia centre in order to watch television and movies Connect peripherals such as a camera, LCD, or hard disk to Banana Pro Manage and regulate your Linux system with Banana Pro Stream music wirelessly from your mobile phone to Banana Pro In Detail This book follows a tactical plan that will guide you through the implementation of Banana Pro and its configurations. You will then learn the various programming languages used with Banana Pi with the help of examples. In no time at all, you’ll be working on a wireless project that implements AirPlay servers, hotspots, and so on. Following this, you’ll develop a retro-style arcade kiosk game. Then we’ll move on to explore the multimedia features of Banana Pro by designing and building an enclosure for it. After this, you’ll learn to build a remote-controlled smart car and we’ll examine how to control a robotic arm. The book will conclude with the creation of a home sensor system that has the ability to expand or shrink to suit any home. Style and approach This book follows a project-based approach that covers the most important features of Banana Pro. Every chapter dives into the practical side of the implementation.
目录展开

Banana Pro Blueprints

Table of Contents

Banana Pro Blueprints

Credits

About the Authors

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. Introduction to Banana Pro

Banana Pro

Specifications of Banana Pro

Banana Pro onboard LEDs

Getting started

The first boot

Available operating systems for Banana Pro

Android

Linux

The FEX file

Transferring an OS to a hard disk

Add-ons

The LCD module

The 7-inch LCD step-by-step guide

The camera module

A step-by-step guide to the camera module

Cases

GPIO add-ons

An onboard microphone

Summary

2. Programming Languages

Basic principles

Remote connections

Secure Shell

Using xrdp for remote desktop connection

Basic requirements for programming Banana Pro

Editors

Shell programming

Checking the Banana Pro temperature

Controlling Banana Pro's LEDs from SSH

Programming GPIOs from SSH

Another shell example

WiringBP

Python

The basics

A simple web server

Using Python for GPIO

Setting LEDs in Python

A Python window example

C/C++

The WiringBP C code example

C access to onboard LEDs

Debugger

Scratch

Hello world – example for Scratch

Using LN Digital with Scratch

New kernels

Compiling on Banana Pro

Cross-compilation

Summary

3. Wireless Projects

OpenVPN

Connecting from Android

WLAN

Setting up WLAN

Setting up an access point mode

On air

The AirPlay protocol

Using an external USB SPDIF soundcard

AirPrint

Configuring CUPS

Printing from Android and iOS

Serving web pages

Installing PHP and MySQL

Installing contao

A measurement server

The FTDI/SPI control of devices

A web server

Explanations

The Python web server

The Python/C interface

C programming

Summary

4. An Arcade Cabinet

Implementing hardware accelerations

Installing dependencies

Installing modules

Installing packages

Installing a directory

Installing libdri2

Installing libump

Installing the sunxi-mali driver

The X11 version of the sunxi-mali driver

The framebuffer version of the sunxi-mali driver

Installing xf86-video-fbturbo

Getting device permission

Testing hardware acceleration

Implementing libretro emulators

Installing dependent packages

Installing libretro frontend - RetroArch

The X11 version of RetroArch

The framebuffer version of RetroArch

Installing libretro cores

Installing iMAM4ALL libretro core

Installing the SNES libretro core

Configuration

Playing games

Playing a game directly with a command line

iMAM4ALL games

For SNES

Playing a game from the RetroArch menu interface

Testing games

Building PCSX

Installing dependent packages

Installing PCSX

Downloading PCSX ReARMed

Patching

Compiling and installing

Playing PCSX games

Configuration

Testing PCSX games

Making an arcade cabinet for Banana Pro

Preparing the materials

A suitcase

A joystick

A micro USB extended line

A USB hub

An LCD display

An audio extended line

A mini keyboard

Designing a frame

Assembling

Assembling a base frame

Assembling Banana Pro and a joystick

Mounting an LCD

Assembling a top frame

Playing the Banana Pro arcade cabinet

Configuring output to an LCD

Configuring a joystick controller

Playing the game on the arcade cabinet

Summary

5. A Multimedia Center

Kernel preparation

Adding the I2S audio device

Setting the graphics memory to maximum

Deactivating display driver kernel logging

Activating IR driver key repetition

Activating the sunxi lirc driver

Correcting display driver brightness

Adding the DVB-SKY S960 USB box

Installing the accelerated mali driver

Video Disk Recorder (VDR)

Setting display settings

Setting locales

Adding (non-free) Debian multimedia packages

Loading required modules

A network address

Editing the FEX file

Installing required packages

Installing and patching VDPAU

Compiling VDR

Defining a sound device

Adding a default sound device

Using an electrical SPDIF with Banana Pro

Configuring a remote control

irexec

Adding a USB DVB stick

The DVB kernel driver

The DVB userspace driver

VDR scripts

Adding plugins to VDR

Watching DVDs

Listening to audio CDs

Watching teletext

Changing VDR's skin

Streaming TV to mobile devices

Switching to external players

Additional plugins

Remote controlling the VDR

Troubleshooting

Device permissions

Changing libvdpau version

The Xbox Multimedia Center (XBMC) installation

Summary

6. Remote Controlling a Smart Monitor Car

Implementing the IP camera

Installing ffmpeg

Installing nginx

Configuring the nginx server

Starting the nginx server

Accessing the nginx server

Autostarting the nginx server at system boot

Setting up a camera

Camera specifications

Connecting the camera module

Testing the camera module on Banana Pro

Streaming a video via the Internet

Setting up the hardware of a smart monitor car

Preparing the materials

A car suite

The L289N motor drive board

Battery

A 5 inch LCD

Assembly

Configuring the display output for the 5 inch LCD

Controlling a smart monitor car using a remote

Webiopi for Banana Pro

Installing webiopi for Banana Pro

Testing webiopi on Banana Pro

Using webiopi to control the car

The control logic

Writing the webiopi controlling code

Adding the car controls to the IP camera web page


Summary

7. A Laser Engraver

Setting up the frame for laser engraving

Preparing materials

Setting up the laser engraving machine hardware

Configuring software on Banana Pro

Installing dependencies

Installing the GrblController software

Installing software on a PC

Installing Inkscape

Installing Arduino

Loading a program into the laser CPU

Loading bootloader

Loading the driving code

How to use a laser engraver

Generate the G code

Beginning the engraving process

Summary

8. Scratch – Building a Smart House

Configuring LeScratch

Installing the prerequisites

Setting up the system

Setting up Scratch Mesh

Running LeScratch

Controlling the LeScratch peripherals

General Purpose Input Output (GPIO)

Instructions

Example: The GPIO board

Inter-Integrated Circuit

Instructions

Example – a LN-HUB-32IO USB hub

Serial Peripheral Interface (SPI)

Instructions

Example – LN digital or SPI general

Example: LN Digital (the LNDI commands)

The step motor

Technical specifications

Example – the step motor

Real-time clock

Technical specifications

Example – RTC

The ultrasonic sensor

Technical specifications

Example – the ultrasonic sensor

The humidity and temperature sensor

Technical specifications

Example – the DHT sensor

The sound detect sensor

Technical specifications

Example – the sound detect sensor

The AD/DA converter

Technical specifications

Example – the AD/DA convertor

Photoresistor

Technical specifications

Example – a photoresistor

The touch sensor

Technical specifications

Example – the touch sensor

The tilt sensor

Technical specifications

Example – the tilt sensor

The LCD1602 display

Technical specifications

Example – the LCD1602 display

Building the LeScratch smart house

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部