Raspberry Pi IoT In C, 2nd Edition

Raspberry Pi IoT In C, 2nd Edition

Book Description
The Raspberry Pi makes an ideal match for the Internet of Things. But to put it to good use in IoT you need two areas of expertise, electronics and programming and, because of the way hardware and software engineering tend to occupy separate niches, you may need help with combining the two. This book teaches you to think like an IoT programmer.
In Raspberry Pi IoT in C you will find a practical approach to understanding electronic circuits and datasheets and translating this to code, specifically using the C programming language. The main reason for choosing C is speed, a crucial factor when you are writing programs to communicate with the outside world. If you are familiar with another programming language, C shouldn't be hard to pick up. This Second Edition has been brought up-to-date and focuses mainly on the Pi 4 and the Pi Zero. There is new material on the recently introduced GPIO character driver and using the Pi 4’s additional ports and scheduling.
Although NetBeans is used to develop programs, VS Code is now considered an alternative remote development environment and all the book’s code, which is available for download, has been tested with VS Code.
The main idea in this book is to not simply install a driver, but to work directly with the hardware using the Raspberry Pi's GPIO (General Purpose Input Output) to connect with off-the-shelf sensors. It explains how to use its standard output with custom protocols, including an in-depth exposition of the 1-wire bus. You will also discover how to put the Internet into the IoT using sockets.
After reading this book you will be in a better position to tackle interfacing anything-with-anything without the need for custom drivers and prebuilt hardware modules.


Chapter 1. Why Pi For IoT?
Chapter 2. Getting Started
Chapter 3. Getting Started With The GPIO
Chapter 4. Simple Output
Chapter 5. Some Electronics
Chapter 6. Simple Input
Chapter 7. GPIO The Linux Way
Chapter 8. Advanced Input – Events, Threads, Interrupts
GPIO Chapter 9. Pulse Width Modulation - Servos And More
Chapter 10. Using The I2C Bus
Chapter 11. The DHT22 Sensor Implementing A Custom Protocol 18
Chapter 12. Exploring 1-Wire Bus Basics
Chapter 13. Using iButtons
Chapter 14. DS18B20 Temperature Sensor
Chapter 15. The Multidrop 1-Wire Bus
Chapter 16. The Serial Port
Chapter 17. Getting Started With The SPI Bus
Chapter 18. A to D With The SPI Bus
Chapter 19. Connecting With The Web - Sockets
Chapter 20. Memory-Mapped GPIO
Chapter 21. Almost Real-Time Linux

Download Raspberry Pi IoT In C, 2nd Edition PDF or ePUB format free

Free sample

Download in .PDF format

Add comments
Введите код с картинки:*
Кликните на изображение чтобы обновить код, если он неразборчив
Copyright © 2019