Programming the Intel Edison: Getting Started with Processing and Python

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Publisher's Note: Products purchased from Third Party sellers are not guaranteed by the publisher for quality, authenticity, or access to any online entitlements included with the product. Learn To Easily Create Robotic, IoT, and Wearable Electronic Gadgets! Get up-and-running building cutting-edge Edison devices with help from this DIY guide. Programming the Intel Edison: Getting Started with Processing and Python lays out the Edison's powerful features and teaches the basics of Internet-enabled embedded programming. Discover how to set up components, connect your PC or Mac, build Python applications, and use USB, WiFi, and Bluetooth connections. Start-to-finish example projects include a motor controller, home temperature system, robotic car, and wearable hospital alert sensor. Explore the capabilities and features of the Edison Connect Sparkfun, Break-out, and Arduino boards Program your Edison through the Arduino IDE Set up USB, GPIO, WiFi, and Bluetooth connections

Author(s): Donald Norris
Publisher: McGraw-Hill Education Tab
Year: 2015

Language: English
Pages: 240

Title Page
Copyright Page
Dedication
Contents at a Glance
Contents
Preface
1 Introduction
The Edison Computing Module
Intel Arduino Development Board
Intel Edison Breakout Board
Sparkfun Block for Intel Edison–Console
Summary
2 Getting Started with the Intel Edison Arduino Board
Intel Edison Arduino IDE
Powering the Arduino Development Board
USB Communications
Blink Sketch
Modifying the Blink Sketch
Summary
3 Working with Processing and the Intel Arduino IDE
The Processing Language and the Intel Edison Arduino IDE
Processing Language Basics
Input and Output Statements
Data Variables
Average Voltage Measurement Sketch
Switch Demo Sketch
Mini-Servo Sketch Example
Ping Sensor Sketch
Summary
4 Edison-Controlled Robotic Car
BOE-BOT Car
How an Analog Servo Works
Continuous Rotation (CR) Servos
Servo1 Sketch
Autonomous Operation
Operating the Robot Car
Summary
5 Connecting to Edison Linux with the Command-Line Prompt
Intel Edison Breakout Board
Setting Up Your First USB Communications Session
FTDI Drivers
Windows Drivers
Connecting to the Client Computer
Updating/Upgrading the Edison Firmware
configure_edison Application
Date and Time
Web Server
Python
C/C++
Node.js
Summary
6 Debian Linux and Python Basics
How to Install the Debian Linux Distribution
Step-by-Step Edison Debian Load Procedure
WiFi Setup
SSH
Basic Python
Python Help
Data Types, Variables, and Constants
User-Defined Functions
Interpolated Sensor Measurements
Summary
7 Python Classes, Methods, and the libmraa Library
Basic OO Concepts
The Class
Installing the libmraa Library
mraa Version Check
Blink Program
Servo Control Program
CR Servo Control Program
Analog Motor Control Program
EMC Class Implementations
Summary
8 Hardware Interfaces
Serial Protocols
UART Serial Protocol
I2C Serial Protocol
SPI Serial Protocol
I2S Serial Protocol
Parallel Protocols
GPIO
SD Card Interface
Clock Outputs
Summary
9 Web Server and Database
LAMP
Apache Web Server and the PHP Scripting Language
MySQL Database Installation
Adding a New User to a MySQL Database
Python Database Connection
Home Temperature Measurement System
TMP36 Temperature Sensor
Initial Test
Multiple Sensor System
Multiple Sensor Software
Temperature Database
Inserting Data into a MySQL Database Using a Program
Database Access Using a Web Browser
Narrowing the Database Reports
Summary
10 Wearables
Sparkfun Console Module
Stackable Architecture
Chapter Project
Battery Module
9DOF Module
The Project Software
sudo
The Project Stack
Initial Project Stack Test
Battery Operations
Paho and Eclipse.org
MQTT
Quality of Service (QoS)
Wills
Reconnecting
Edison MQTT Publisher Client
Auto Start
MQTT Brokers
MQTT Subscriber Clients
Mac MQTT Subscriber Client
Android Smartphone Subscriber Client
Summary
Index