Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Title Page
Copyright
Dedication
About the Author
Contents
Preface
Acknowledgments
1 Introduction
Introduction to MicroPython
Design Philosophy
Exploring MicroPython
Object-Oriented Programming and Some Python Basics
Object-Oriented Concepts
Modeling a Robot
Some Python Basics
The Robot Class
Child Classes
Using Interfaces
Integrated Robot Project Design and Test
Dynamic Binding
Using MicroPython with a Pyboard
Bare-Metal Approach
Summary
2 Introduction to the Pyboard
Pyboard Hardware
Generic Microcontroller Program Development
Interrupts
Controlling the Pyboard
Python Test Program
Blinking LEDs
PyBlink
PyBlink_MP
Hardware Interrupt Demonstration
Emergency Exception Buffer
Timers
Timer Interrupts
Other Pyboard Hardware
The ADC
The DAC
Summary
3 Interfaces, Files, and Libraries
Pulse Width Modulation
Bit-Serial Ports
UART Serial Protocol
I2C Serial Protocol
SPI Serial Protocol
Directory Structures
Importing a Module
Using a File for an Import
Importing a Module from a PYBFLASH Subdirectory
Using the SD Card for an Import
Boot Process
Error Reporting by the LEDs
Libraries
Standard Libraries
Customized Python Libraries
Pyboard-Specific Library and Classes
MicroPython Library
Summary
4 Let Ball Detector
Initial Design
Project Requirements
Prototype
The Accelerometer
Low-Level I2C Command Demonstration
Inclinometer
Hardware Design
Main Program
Experimenting on the Tennis Court
Turn On Visual and Optional Audio Alerts upon Let Ball Detection
Final Program
Summary
5 LCD and Touch-Sensor Board
LCD Board Specifications
Initial LCD Module Operations
LCD Graphics Demonstration
Using an External Command with the LCD Controller
Touch Controller
Capacitive Sensing
LCD Module Touch-Sensor Schematic and MPR121 Registers
MPR121 Driver Software
Initial Touch-Sensor Test
LEDs Controlled by Touch Pads
LCD and Touch-Sensor Demonstration
Using the LCD Module GPIO Pins
MPR121 PWM
Summary
6 The AMP Audio Skin
Assembling the AMP Board
AMP Board Circuits
Audio Input Circuit
Audio Output Circuit
Initial Test
Troubleshooting the Distortion
Playing MP3 Files
Audio Input Demonstration
Summary
7 An Autonomous Robotic Car
Building the Robot Car Platform
A Standard Analog Servo
CR Servo
Robotic Car Power Supply
Electrical and Wiring Instructions
Ping Sensor
Robot Car Software
CR Servo Control
Initial Test Run
Autonomous Mode
Obstacle Avoidance Demonstration
Summary
8 GPS with the Pyboard
Introduction
Brief GPS History
The Basics of How GPS Functions
The Ultimate GPS Receiver
Initial GPS Receiver Test
GPS Receiver UART Communication
NMEA Protocol
Latitude and Longitude Formats
Parsed GPS Message
MicroPython GPS Parser
Preparing GPS Sentences for Parsing
Summary
9 The ESP8266
The ESP8266 SMT ESP-12E Module
The ESP8266 HUZZAH Breakout Board
Key Hardware Technical ESP8266 Features
ESP8266 Software
Installing MicroPython on the HUZZAH ESP8266 Board
Exploring MicroPython Installed on the ESP8266 HUZZAH Board
Experiments
Analog-to-Digital Converter
1-Wire Temperature Sensor
NeoPixel Demonstration
APA102 Demonstration
webREPL
Summary
10 The WiPy
WiPy Specifications
Wi-Fi Modes
Station
Access Point
Direct
WiPy Expansion Board
Creating the Initial WiPy Network Connection
FTP Demonstration
FileZilla
Station Operation
Boot Process and Restoring the Filesystem
Restoring the Filesystem
Pymakr
Summary
11 Current and Future States of MicroPython
The MicroPython Language
Hardware Platforms
LoPy
LoRa Radio System
SiPy
Sigfox versus LoRa
Summary
Index
← Prev
Back
Next →
← Prev
Back
Next →