Raspberry Pi Compute Module 5 IoT In C: Using Linux Drivers and Gpio5 (I/O Press)
Wednesday, 23 April 2025

This book demonstrates how to interact with the Raspberry Pi Compute Module 5, CM5. Harry Fairhead shows both the use of Linux drivers, the accepted way of accessing external devices, and via Gpio5, a new open source IoT library specifically for the Raspberry Pi 5 and CM5 that provides direct access to the CM5’s hardware, with functions for working with GPIO, PWM, I2C, SPI and more.

Beginning with how to work with drivers, Harry then moves on to direct access to the hardware via the Gpio5 library, which is developed and enhanced throughout the book. Other chapters include the Device Tree and overlays, using the DHT22 temperature and humidity sensor as a practical example, and PWM both via a driver and directly using Gpio5. Later chapters look at the two standard buses, I2C and SPI and also the 1-wire bus;  the hardware monitoring system, hwmon, and Industrial I/O, IIO. The PIO, the Programmable Input Output, is covered with three examples of the most sophisticated PIO programs you are likely to encounter. Finally Harry looks at how to create your own custom overlays by writing fragments of the device tree, and advanced scheduling and dealing with problems encountered in running a real-time system.

Author: Harry Fairhead
Publisher: I/O Press
Date: April 2025
Pages: 442
ISBN: 978-1871962956
Print: 1871962951
Kindle: B0F4NMXRJN
Audience: C programmers using the Raspberry Pi Compute Module
Level: Intermediate
Category: Hardware platforms

CIoTCM5360

For more Book Watch just click.

Book Watch is I Programmer's listing of new books and is compiled using publishers' publicity material. It is not to be read as a review where we provide an independent assessment. Some, but by no means all, of the books in Book Watch are eventually reviewed.

To have new titles included in Book Watch contact  BookWatch@i-programmer.info

Follow @bookwatchiprog on Twitter or subscribe to I Programmer's Books RSS feed for each day's new addition to Book Watch and for new reviews.

 

 

Banner


Object-Oriented Python

Author: Irv Kalb
Publisher: No Starch Press
Date: January 2022
Pages: 416
ISBN: 978-1718502062
Print: 1718502060
Kindle: ‎ B0957SHYQL
Audience: Python developers
Rating: 3
Reviewer: Mike James
Python, Object-Oriented? Not a lot of programmers know that!



Python Programming with Design Patterns

Author: James W. Cooper
Publisher: Addison-Wesley
Date: February 2022
Pages: 352
ISBN: 978-0137579938
Print: 0137579934
Kindle: B09D2RKQB5
Audience: Python developers
Rating: 1
Reviewer: Mike James
There was a time that design patterns were all the thing. Not so much now. But Python - does it have [ ... ]


More Reviews