更新时间:2021-04-02 20:35:30
coverpage
Internet of Things with Python
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Understanding and Setting up the Base IoT Hardware
Understanding the Intel Galileo Gen 2 board and its components
Recognizing the Input/Output and the Arduino 1.0 pinout
Recognizing additional expansion and connectivity capabilities
Understanding the buttons and the LEDs
Checking and upgrading the board's firmware
Test your knowledge
Summary
Chapter 2. Working with Python on Intel Galileo Gen 2
Setting up the board to work with Python as the programming language
Retrieving the board's assigned IP address
Connecting to the board's operating system
Installing and upgrading the necessary libraries to interact with the board
Installing pip and additional libraries
Invoking the Python interpreter
Chapter 3. Interacting with Digital Outputs with Python
Turning on and off an onboard component
Prototyping with breadboards
Working with schematics to wire digital outputs
Counting from 1 to 9 with LEDs Python code and the mraa library
Taking advantage of object-oriented code to control digital outputs
Improving our object-oriented code to provide new features
Isolating the pin numbers to improve wirings
Controlling digital outputs with the wiring-x86 library
Chapter 4. Working with a RESTful API and Pulse Width Modulation
Printing numbers in LEDs with a RESTful API
Composing and sending HTTP requests
Wiring pins with PWM capabilities
Using PWM to generate analog values
Generating analog values via HTTP requests
Preparing the RESTful API for Web application requirements
Using PWM plus a RESTful API to set colors for an RGB LED
Controlling PWM with the wiring-x86 library
Chapter 5. Working with Digital Inputs Polling and Interrupts
Understanding pushbuttons and pullup resistors
Wiring digital input pins with pushbuttons
Reading pushbutton statuses with digital inputs and the mraa library
Reading pushbutton statuses and running a RESTful API
Reading digital inputs with the wiring-x86 library
Using interrupts to detect pressed pushbuttons
Chapter 6. Working with Analog Inputs and Local Storage
Understanding the analog inputs
Wiring an analog input pin with a voltage source
Measuring voltage with analog inputs and the mraa library
Wiring a photoresistor to an analog input pin
Determining the darkness level with analog inputs and the mraa library
Firing actions when the environment light changes
Controlling analog inputs with the wiring-x86 library
Logging to files in the local storage
Working with USB attached storage
Chapter 7. Retrieving Data from the Real World with Sensors
Understanding sensors and their connection types
Working with accelerometers
Wiring an analog accelerometer to the analog input pins
Measuring three axis acceleration with an analog accelerometer
Wiring a digital accelerometer to the I2C bus
Measuring three axis acceleration with a digital accelerometer
Using the I2C bus to control a digital accelerometer with the mraa library
Wiring an analog temperature sensor
Measuring ambient temperature with an analog sensor
Wiring a digital temperature and humidity sensor to the I2C bus
Measuring temperature and humidity with a digital sensor
Chapter 8. Displaying Information and Performing Actions
Understanding LCD displays and their connection types
Wiring an LCD RGB backlight to the I2C bus
Displaying text on an LCD display
Wiring an OLED dot matrix to the I2C bus
Displaying text on an OLED display
Wiring a servo motor
Positioning a shaft to indicate a value with a servo motor
Chapter 9. Working with the Cloud