售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
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
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜