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. After reading it you will be in a better position to tackle interfacing anything-with-anything without the need for custom drivers and prebuilt hardware modules.
Author: Harry Fairhead
Publisher: I/O Press
Date: October 2, 2016
Category: IoT; Electronics
Harry Fairhead takes a practical approach, helping readers to understand electronic circuits and datasheets and translate 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. Here it is used in conjunction with NetBeans and with the bcm2835 library.
The main idea in this book is to not simply install a driver, but to work directly with the hardware. So rather than using Raspberry Pi HATs or other expansion boards we use the Pi's GPIO (General Purpose Input Output) and connect off-the-shelf sensors. If you want to know how to work with the GPIO lines directly, how to work with near realtime Linux and generally take control of the Pi this is the book you need. It explains how to use the standard bus types - SPI, I2C, PWM - and 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 and the low cost ESP8266.
As well as being a regular contributor to I Programmer, Harry Fairhead is the Editor of IoT-Programmer and author of:
Micro:bit IoT In C (I/O Press)
Exploring Intel Edison (I/O Press)
Visit Book Watch Archive for hundreds more titles.
Subscribe to I Programmer's Books RSS feed
or follow @bookwatchiprog on Twitter for news addition to Book Watch and for new reviews. Contact BookWatch@i-programmer.info.