

Raspberry Pi IoT In Python Using Linux Drivers (Paperback)
Key item features
Specs
Author, Mike James; Harry Fairhead
Book format, Paperback
Genre, Computing & Internet
Pages, 276
Age group, Adult, Teen
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
Publication date
Author
Book format
Genre
Warranty
Warranty information
Similar items you might like
Computing with the Raspberry Pi: Command Line and GUI Linux, (Paperback) $35.86
$3586current price $35.86Computing with the Raspberry Pi: Command Line and GUI Linux, (Paperback)
Maîtrisez Raspberry Pi en 30 jours: De débutant à expert sur Raspberry Pi., (Paperback) $33.75
$3375current price $33.75Maîtrisez Raspberry Pi en 30 jours: De débutant à expert sur Raspberry Pi., (Paperback)
Automating Linux: Administration with Bash & Python, (Paperback) $14.99
$1499current price $14.99Automating Linux: Administration with Bash & Python, (Paperback)
Basic Control System Computing and Graphing in Python, (Paperback) $21.78 Was $26.19
$2178current price $21.78, Was $26.19$26.19Basic Control System Computing and Graphing in Python, (Paperback)
Applying C For The IoT With Linux (Paperback) $29.99
$2999current price $29.99Applying C For The IoT With Linux (Paperback)
Raspberry Pi IoT In Python Using GPIO Zero, 2nd Edition (Paperback) $32.64
$3264current price $32.64Raspberry Pi IoT In Python Using GPIO Zero, 2nd Edition (Paperback)
Next Level Technology Raspberry Pi 5 & Raspberry Pi Pico 2: Bridging Linux-Based Single Board Computers with Bare-Metal RISC-V Microcontroller, (Paperback) $35.00
$3500current price $35.00Next Level Technology Raspberry Pi 5 & Raspberry Pi Pico 2: Bridging Linux-Based Single Board Computers with Bare-Metal RISC-V Microcontroller, (Paperback)
Python Programming for Beginners 2026, (Paperback) $29.99
$2999current price $29.99Python Programming for Beginners 2026, (Paperback)
Raspberry Pi Home Automation with Arduino - Second Edition, (Paperback) $34.87
$3487current price $34.87Raspberry Pi Home Automation with Arduino - Second Edition, (Paperback)
Maker Innovations Internet of Things Using Single Board Computers: Principles of Iot and Python Programming, (Paperback) $32.48 Was $39.98
$3248current price $32.48, Was $39.98$39.98Maker Innovations Internet of Things Using Single Board Computers: Principles of Iot and Python Programming, (Paperback)
Raspberry Pi IoT In C (Paperback) $32.64
$3264current price $32.64Raspberry Pi IoT In C (Paperback)
Linux Command Line for Beginners: Build Projects That Solve Real Problems with Python, (Paperback) $19.99
$1999current price $19.99Linux Command Line for Beginners: Build Projects That Solve Real Problems with Python, (Paperback)
Master the Raspberry Pi Pico in C: WiFi with lwIP & mbedtls, (Paperback) $39.95
$3995current price $39.95Master the Raspberry Pi Pico in C: WiFi with lwIP & mbedtls, (Paperback)
Digital Video Processing Projects Using Python and Tkinter, (Paperback) $19.99
$1999current price $19.99Digital Video Processing Projects Using Python and Tkinter, (Paperback)
Programming The Raspberry Pi Pico/W In C, Second Edition, (Paperback) $40.69
$4069current price $40.69Programming The Raspberry Pi Pico/W In C, Second Edition, (Paperback)
Embedded Systems with Raspberry Pi Pico 2 and RP2350: Projects, TinyML, and IoT Applications, (Paperback) $25.00
$2500current price $25.00Embedded Systems with Raspberry Pi Pico 2 and RP2350: Projects, TinyML, and IoT Applications, (Paperback)
Raspberry Pi Robot with Camera and Sound using Python 3.2: For Windows and Debian-Linux (Paperback) $18.95
$1895current price $18.95Raspberry Pi Robot with Camera and Sound using Python 3.2: For Windows and Debian-Linux (Paperback)
Fundamentals of Linux: Explore the essentials of the Linux command line, (Paperback) $34.99
$3499current price $34.99Fundamentals of Linux: Explore the essentials of the Linux command line, (Paperback)
Raspberry Pi IoT In C Using Linux Drivers, 2nd Edition (Paperback) $35.05
$3505current price $35.05Raspberry Pi IoT In C Using Linux Drivers, 2nd Edition (Paperback)
Building Embedded Systems with Linux, Raspberry Pi and ELBE, (Paperback) $38.91
$3891current price $38.91Building Embedded Systems with Linux, Raspberry Pi and ELBE, (Paperback)
Customer ratings & reviews
- Free shipping
Free Holiday returns until Jan 31
