Cargando…

Python programming for Arduino : develop practical Internet of things prototypes and applications with Arduino and Python /

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...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Desai, Pratik (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Publishing, 2015.
Colección:Community experience distilled.
Temas:
Acceso en línea:Texto completo
Texto completo
Tabla de Contenidos:
  • 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