Limit search to available items
Book Cover
E-book
Author Desai, Pratik, author

Title Python programming for Arduino : develop practical Internet of things prototypes and applications with Arduino and Python / Pratik Desai
Published Birmingham, UK : Packt Publishing, 2015

Copies

Description 1 online resource (1 volume) : illustrations
Series Community experience distilled
Community experience distilled.
Contents Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with Python and Arduino; Introduction to Python; Why we use Python; When do we use other languages; Installing Python and Setuptools; Installing Python; Linux; Ubuntu; Fedora and Red Hat; Windows; Mac OS X; Installing Setuptools; Linux; Windows; Mac OS X; Installing pip; Installing Python packages; The fundamentals of Python programming; Python operators and built-in types; Operators; Built-in types; Data structures; Lists; Tuples; Sets; Dictionaries
Controlling the flow of your programThe if statement; The for statement; The while statement; Built-in functions; Conversions; Introduction to Arduino; History; Why Arduino?; Arduino variants; The Arduino Uno board; Installing the Arduino IDE; Linux; Mac OS X; Windows; Getting started with the Arduino IDE; What is an Arduino sketch?; Working with libraries; Using Arduino examples; Compiling and uploading sketches; Using the Serial Monitor window; Introduction to Arduino programming; Comments; Variables; Constants; Data types; Conversions; Functions and statements; The setup() function
The loop() functionThe pinMode() function; Working with pins; Statements; Summary; Chapter 2: Working with the Firmata Protocol and the pySerial Library; Connecting the Arduino board; Linux; Mac OS X; Windows; Troubleshooting; Introducing the Firmata protocol; What is Firmata?; Uploading a Firmata sketch to the Arduino board; Testing the Firmata protocol; Getting started with pySerial; Installing pySerial; Playing with a pySerial example; Bridging pySerial and Firmata; Summary; Chapter 3: The First Project -- Motion-triggered LEDs; Motion-triggered LEDs -- the project description
The project goalThe list of components; The software flow design; The hardware system design; Introducing Fritzing -- a hardware prototyping software; Working with the breadboard; Designing the hardware prototype; Testing hardware connections; Method 1 -- using a standalone Arduino sketch; Project setup; The Arduino sketch; The setup() function; The loop() function; Working with custom Arduino functions; Testing; Troubleshooting; Method 2 -- using Python and Firmata; The project setup; Working with Python executable files; The Python code; Working with the pyFirmata methods
Working with the Python functionsTesting; Troubleshooting; Summary; Chapter 4: Diving into Python-Arduino Prototyping; Prototyping; Working with pyFirmata methods; Setting up the Arduino board; Configuring Arduino pins; The direct method; Assigning pin modes; Working with pins; Reporting data; Manual operations; Additional functions; Upcoming functions; Prototyping templates using Firmata; Potentiometer -- continuous observation from an analog input; Connections; The Python code; Buzzer -- generating sound alarm pattern; Connections; The Python code; DC motor -- controlling motor speed using PWM
Summary This is the book for you if you are a student, hobbyist, developer, or designer with little or no programming and hardware prototyping experience, and you want to develop IoT applications. If you are a software developer or a hardware designer and want to create connected devices applications, then this book will help you get started
Notes Includes index
English
Online resource; title from cover page (Safari, viewed March 24, 2015)
Subject Python (Computer program language)
Arduino (Programmable controller)
Scripting languages (Computer science)
Programmable controllers.
COMPUTERS -- Programming Languages -- Python.
Arduino (Programmable controller)
Programmable controllers
Python (Computer program language)
Scripting languages (Computer science)
Internet de les coses.
Python (Llenguatge de programació)
Arduino (Controlador programable)
Form Electronic book
ISBN 9781783285945
178328594X
Other Titles Develop practical Internet of things prototypes and applications with Arduino and Python