

Raspberry Pi IoT In Python Using Linux Drivers (Paperback)
Key item features
Specs
- Book formatPaperback
- Fiction/nonfictionNon-Fiction
- Pages276
- Original languagesEnglish
Free 90-day returns
How do you want your item?
About this item
Product details
There is a new edition of this book.
The Raspberry Pi makes an ideal match for the Internet of Things. To put it to good use in IoT you need two areas of expertise, electronics and programming, and this presents a barrier to getting started. However, there is an overlooked route that can provide a shortcut. Pi OS, the Raspberry Pi's operating system, is Linux- based and Linux drivers are available for many off-the-shelf IoT devices. These provide a very easy-to-use, high-level, way of working. The problem that this book solves is that there is very little documentation to help you get started.
Throughout this book you will find a practical approach to understanding electronic circuits and datasheets and translating this to code, specifically using Python. Python is an excellent language for learning about the IoT or physical computing. It might not be as fast as C, but it is much easier to use for complex data processing. The emphasis in this book is on understanding how things work so that you can apply your new knowledge to your own projects. You can use any Python development system that you know, but the programs in the book have been developed using Visual Studio Code and its remote development facilities.
The first IoT program anyone writes is "Blinky" to flash an LED and this book is no exception, but it might not be quite what you expect. Instead of using a GPIO line, it uses the Linux LED driver - no hardware and no fuss. The GPIO isn't left out, however, as the next three chapters focus on its use via the new GPIO character driver, which replaces the old and very common sysfs GPIO driver. This is the way to do modern GPIO.
A key component in any look at Linux and its relationship to hardware is the relatively new Device Tree. While most accounts of this resource are aimed at device driver writers, this one is aimed at device driver users and to this end we look at several devices, including the DHT22 temperature and humidity sensor. After a brief detour into some basic electronics, we see how Pulse Width Modulation is supported via a driver. From here we tackle the two standard buses, I2C and SPI, first going through the basics and then looking at the two attempts to impose a higher organization, the hardware monitoring system, Hwmon, and Industrial I/O, IIO. The third standard bus, although generally not supported in hardware, is the 1-Wire bus. This is covered in detail and even includes an introduction to using Netlink, which uses the sockets API to send messages to and from the kernel to access the driver. The final chapter takes things to the next level and considers creating your own custom overlays by writing fragments to the device tree.
This is the second title jointly authored by Harry Fairhead and Mike James and can be seen as the alternative approach to that outlined in Raspberry Pi IoT In Python Using GPIO Zero. For both books, Harry brings his expertise in electronics and the IoT and Mike contributes the Python code.
Harry Fairhead is the author of other IoT-related titles including Raspberry Pi IoT in C, Second Edition; Micro: bit IoT in C, Second Edition; Applying C For The IoT With Linux and Fundamental C: Getting Closer To The Machine.
Mike James is the author of Programmer's Python: Everything is an Object and other programming and computer science titles in the I Programmer Library.
Specifications
Book format
Fiction/nonfiction
Genre
Pages
Popular items in this category
Best selling items that customers love
Internet of Things Programming Projects - Second Edition: Build exciting IoT projects using Raspberry Pi 5, Raspberry Pi, (Paperback) $22.66
$2266current price $22.66Internet of Things Programming Projects - Second Edition: Build exciting IoT projects using Raspberry Pi 5, Raspberry Pi, (Paperback)
Save withShipping, arrives in 3+ daysPractical Python Programming for IoT: Build advanced IoT projects using a Raspberry Pi 4, MQTT, RESTful APIs, WebSockets, and Python 3 (Paperback) $49.37
$4937current price $49.37Practical Python Programming for IoT: Build advanced IoT projects using a Raspberry Pi 4, MQTT, RESTful APIs, WebSockets, and Python 3 (Paperback)
Save withShipping, arrives in 3+ daysIntel Galileo and Intel Galileo Gen 2: API Features and Arduino Projects for Linux Programmers, (Paperback) $48.01
$4801current price $48.01Intel Galileo and Intel Galileo Gen 2: API Features and Arduino Projects for Linux Programmers, (Paperback)
Save withShipping, arrives in 3+ daysMastering Linux Device Driver Development: Write custom device drivers to support computer peripherals in Linux operatin, (Paperback) $38.64
$3864current price $38.64Mastering Linux Device Driver Development: Write custom device drivers to support computer peripherals in Linux operatin, (Paperback)
Save withShipping, arrives in 3+ daysArduino and Raspberry Pi Sensor Projects for the Evil Genius, (Paperback) $27.96
$2796current price $27.96Arduino and Raspberry Pi Sensor Projects for the Evil Genius, (Paperback)
Save withShipping, arrives in 3+ daysBeginning Artificial Intelligence with the Raspberry Pi, (Paperback) $18.92
$1892current price $18.92Beginning Artificial Intelligence with the Raspberry Pi, (Paperback)
Save withShipping, arrives in 3+ daysData Structures & Algorithms in Python, (Paperback) $66.27
$6627current price $66.27Data Structures & Algorithms in Python, (Paperback)
Shipping, arrives in 3+ daysLinux for Makers: Understanding the Operating System That Runs Raspberry Pi and Other Maker Sbcs (Paperback) $20.29
$2029current price $20.29Linux for Makers: Understanding the Operating System That Runs Raspberry Pi and Other Maker Sbcs (Paperback)
Save withShipping, arrives in 3+ daysLearn Robotics Programming - Second Edition: Build and control AI-enabled autonomous robots using the Raspberry Pi and P, (Paperback) $29.24
$2924current price $29.24Learn Robotics Programming - Second Edition: Build and control AI-enabled autonomous robots using the Raspberry Pi and P, (Paperback)
Save withShipping, arrives in 3+ daysTechnology in Action: Beginning C for Arduino: Learn C Programming for the Arduino (Paperback) $38.42
$3842current price $38.42Technology in Action: Beginning C for Arduino: Learn C Programming for the Arduino (Paperback)
Save withShipping, arrives in 3+ daysLearn Robotics with Raspberry Pi: Build and Code Your Own Moving, Sensing, Thinking Robots, (Paperback) $21.23 Was $24.21
Now$2123current price Now $21.23, Was $24.21$24.21Learn Robotics with Raspberry Pi: Build and Code Your Own Moving, Sensing, Thinking Robots, (Paperback)
Shipping, arrives in 3+ daysProgram Arcade Games: With Python and Pygame, (Paperback) $49.70
$4970current price $49.70Program Arcade Games: With Python and Pygame, (Paperback)
Save withShipping, arrives in 3+ daysScience and Engineering Projects Using the Arduino and Raspberry Pi: Explore Stem Concepts with Microcomputers, (Paperback) $47.30
$4730current price $47.30Science and Engineering Projects Using the Arduino and Raspberry Pi: Explore Stem Concepts with Microcomputers, (Paperback)
Save withShipping, arrives in 3+ daysUltimate Raspberry Pi: Full Control: Learn from A-Z about Raspberry Pi. Installation, troubleshooting, real projects, working with Python etc. (Paperback) $12.84
$1284current price $12.84Ultimate Raspberry Pi: Full Control: Learn from A-Z about Raspberry Pi. Installation, troubleshooting, real projects, working with Python etc. (Paperback)
Save withShipping, arrives in 3+ daysRaspberry Pi Manual for Beginners $24.95
$2495current price $24.95Raspberry Pi Manual for Beginners
Save withShipping, arrives in 3+ daysArduino Projects with Tinkercad: Designing and programming Arduino-based electronics projects using Tinkercad, (Paperback) $19.99
$1999current price $19.99Arduino Projects with Tinkercad: Designing and programming Arduino-based electronics projects using Tinkercad, (Paperback)
Save withShipping, arrives in 3+ daysRaspberry Pi: Weight and Color Sensor TCS3200, Emergency Light, PyGame etc, .. (Paperback) $15.99
$1599current price $15.99Raspberry Pi: Weight and Color Sensor TCS3200, Emergency Light, PyGame etc, .. (Paperback)
Save withShipping, arrives in 3+ daysMachine Learning with the Raspberry Pi: Experiments with Data and Computer Vision, (Paperback) $42.01
$4201current price $42.01Machine Learning with the Raspberry Pi: Experiments with Data and Computer Vision, (Paperback)
Shipping, arrives in 3+ daysLinux Device Driver Development Cookbook, (Paperback) $39.99
$3999current price $39.99Linux Device Driver Development Cookbook, (Paperback)
Save withShipping, arrives in 3+ daysGreat Principles of Computing, (Paperback) $33.00
$3300current price $33.00Great Principles of Computing, (Paperback)
Save withShipping, arrives in 3+ days
