Universal Book Ratings
#3,952,947 in Books (See Top 100 in Books)
#597 in Computer Peripherals
#36,003 in Computing & Internet Programming
Computing & Internet      Hardware & DIY

Raspberry Pi IoT In C Using Linux Drivers, 2nd Edition

(0 reviews)
Condition
Quantity
(907 available)
Share
Book Details
Language
English
Publishers
I/O Press (27 Jan. 2024)
Weight
0.5 KG
Publication Date
27/01/2024
ISBN-10
1871962854
Pages
288 pages
ISBN-13
9781871962857
Dimensions
17.78 x 1.65 x 25.4 cm
SKU
9781871962857
Author Name
Harry Fairhead (Author)
Discover more of the author’s books, see similar authors, read author blogs and moreRead more about this authorRead less about this author
Read More

Reviews & Ratings

4.5 out of 5.0
(0 reviews)
There have been no reviews for this product yet.
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.

In it Harry Fairhead explains the principles so that you can tackle new devices and he also guides you through using external hardware via standard Linux drivers. Throughout this book you will find a practical approach to understanding electronic circuits and datasheets and translating this to code, specifically using the C programming language.

This second edition was prompted by the advent of the Pi 5, welcomed as the fastest member of the Raspberry Pi family. What came as a shock is that, from the point of view of IoT, it is incompatible with all other Raspberry Pis due to the use of a custom chip.

Luckily, although the Pi 5 cannot work with the standard IoT libraries it does behave in the same way under Linux drivers and so this new book does include the Pi 5 on an equal footing. Coverage also includes the Pi Zero 2W, which has a quad-core chip making it more capable than both the original Pi Zero and the WiFi-enabled Pi ZeroW.

After a quick tour of the Raspberry Pi ecosystem, Visual Studio Code (VS Code) and how it can be used to develop remotely, is introduced. 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.

A key component in any look at Linux and its relationship to hardware is the 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 the DHT22 temperature and humidity driver.

After a brief detour into some basic electronics, we look at Pulse Width Modulation supported via a driver rather than needing to be implemented using the GPIO. 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.

We also look at the 1-Wire bus. The final chapter takes things to the next level and considers creating your own custom overlays by writing fragments to the device tree.

Harry Fairhead has worked with microprocessors and electronics in general for many years and is an enthusiastic proponent of the IoT. C is his programming language of choice and he has written several books on programming the Raspberry Pi and other devices in an IOT context, including Raspberry Pi IoT In C, 3rd Edition, Programming the Raspberry Pi Pico/W in C, 2nd Edition, Programming the ESP32 in MicroPython and Fundamental C: Getting Closer To The Machine.

. .

Frequently Bought Products

Product Queries (0)

Login Or Registerto submit your questions to seller

Other Questions

No none asked to seller yet

Bookiyos Books Solutions - Quality Books, Unbeatable Prices

Bookiyos Books Solutions is your premier online bookstore offering a vast selection of over 5 crore books. Whether you're looking for the latest releases, timeless classics, or rare finds, we have something for every reader. Our platform serves customers worldwide, including the USA, UK, and Europe, with fast delivery and easy return policies to ensure a hassle-free shopping experience. Discover daily updates, exclusive deals, and a comprehensive collection of books that cater to all your reading needs. Shop with confidence at Bookiyos, where quality books and unbeatable prices meet.

Why Choose Bookiyos?

Extensive Inventory: New, old, and rare books available.
Fast Delivery: Same or next-day shipping.
Easy Returns: Hassle-free refund and return policies.
Global Reach: Serving customers in the USA, UK, Europe, and beyond.
Daily Updates: Thousands of new titles added every day.
Join our community of book lovers and start your literary journey with Bookiyos Books Solutions today!