Local cover image
Local cover image

Python programming for Arduino : develop practical Internet of things prototypes and applications with Arduino and Python Pratik Desai.

By: Material type: TextTextSeries: Community experience distilledDescription: 1 v. (unpaged)Other title:
  • Develop practical Internet of things prototypes and applications with Arduino and Python
Subject(s): DDC classification:
  • 005.133 DES DES
Contents:
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.
List(s) this item appears in: STEM & ENGINEERING CORNER
Tags from this library: No tags from this library for this title. Log in to add tags.
Star ratings
    Average rating: 0.0 (0 votes)
Holdings
Item type Current library Shelving location Call number Copy number Status Date due Barcode
Books Books CamTech Library STEM & Engineering 005.133 DES (Browse shelf(Opens below)) 1 Available CamTech 000460

Photocopy

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

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.

There are no comments on this title.

to post a comment.

Click on an image to view it in the image viewer

Local cover image