Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Acknowledgments
Introduction
1 Introduction and Setup
What Is the BeagleBone Black?
A Tour of the BeagleBone Black
Example BeagleBone Black Projects
First Boot of the BeagleBone Black
Connecting via USB
Using the USB Network Bridge
Connecting to the BeagleBone Black Web Server
Secure Socket Communication
The GateOne SSH Client
SSH from the Mac or Linux Terminal
SSH on Windows Using PuTTY
Using the Linux Command Line
Ethernet Connection
Upgrading the Operating System
Downloading the Disk Image
Extracting the Disk Image
Installing the Disk Image on the SD Card
Summary
2 A Linux Computer
Attaching the Keyboard, Mouse, and Screen
Setting the Date
Wi-Fi
Step 1: Upgrade
Step 2: Install the Driver
Step 3: Configure
Step 4: Test
Bundled Software
Installing More Software
Summary
3 JavaScript Basics
Programming
Operating System
What Is a Program?
Programming Environment
Cloud9 Web IDE
JavaScript, Node, and BoneScript
JavaScript
Node
BoneScript
Experimenting
Numbers
Variables
Strings
Dice Example
Ifs
Looping
Turning on USR LEDs
Summary
4 JavaScript Functions and Timers
More on Ifs
Functions
A Dice-Throwing Function
Naming Functions
The Function Body
Locals and Globals
Function Parameters
While Loops
Timers
No Sleeping
Interval Timers
Blinking an LED with set Interval
setTimeout
Cancelling an Interval Timer
Anonymous Functions
Summary
5 Arrays, Objects, and Modules
Arrays
Creating Arrays
Accessing Elements of an Array
Modifying Arrays
Sorting Arrays
Iterating Over Arrays
Morse Code Example
Flashing All Four LEDs at Once
Blinking SOS
More on Strings
Introducing JavaScript Objects
Morse Revisited
Debugging JavaScript
Modules
Summary
6 BoneScript
GPIO Connectors
Digital Outputs
Digital Inputs
Analog Outputs
Analog Inputs
Interrupts
Summary
7 Hardware Interfacing
Solderless Breadboard
LEDs
Switches
RGB LEDs
Switching AC
Temperature Sensor
Light Sensor
Servos
Using a Transistor
Summary
8 Using Capes and Modules
Breadboard Cape
Proto Cape
Battery Cape
LCD Cape
Motor Driver Module
I2C
The node-i2c Library
Interfacing with an I2C Display
Interfacing with Serial GPS
Summary
9 Web Interfaces
How Does It Work?
Some Basic HTML
On/Off LED Control
LED Brightness Control (Analog Outputs)
Displaying Digital Inputs
Displaying Analog Inputs
Custom Actions
Inputs and Outputs Together
Summary
10 A Roving Robot
Hardware
Step 1: Assemble the Magician Chassis
Step 2: Attach Header Pins to the Motor Module
Step 3: Wire Up the Breadboard
Step 4: Connect All the Parts
Software
Summary
11 E-mail Notifier
Hardware
Step 1: Attach Leads to the Lamp
Step 2: Attach Pins to the Proto Cape
Step 3: Solder Components to the Proto Cape
Step 4: Attach the Lamp to the Proto Cape
Step 5: Connecting the Power Supply
Software
Summary
A Parts
Suppliers
Breadboard Starter Kits
BeagleBone and Capes
Modules
Electronic Components
Tools and Prototyping
Miscellaneous
B JavaScript Quick Reference
Core Language
Strings
Arrays
Objects
Math
Dates
C BeagleBone Black GPIO Pinout
Index
← Prev
Back
Next →
← Prev
Back
Next →