Book Image

Internet of Things Programming with JavaScript

Book Image

Internet of Things Programming with JavaScript

Overview of this book

The Internet of Things is taking the tech world by storm, and JavaScript is at its helm. This book will get you to grips with this exciting new technology. Where do Node.js, HTML5 and Windows 10 IoT Core come in with JavaScript and IoT? Why Raspberry Pi Zero rather than Arduino? How do you configure and build an IoT network from scratch? All your IoT JavaScript questions are answered in this book.
Table of Contents (15 chapters)
Internet of Things Programming with JavaScript
Credits
About the Author
www.packtpub.com
Customer Feedback
Preface

Chapter 2. Connecting Things to the Raspberry Pi Zero

You need to learn how to connect things to your Raspberry Pi Zero, and also looked at the architecture and differentiate between the pins we can use for the purpose we defined. This is the reason we have this section--to help you with the sensors we can connect and give the basics of how to connect other things to your device. In this section, we will explain how to configure the Raspberry Pi; now you cannot avoid learning how to connect to your Raspberry Pi sensors to read analog inputs connected to it.

We will cover the following topics to make our hardware communicate with the board:

  • Connecting digital inputs: Sensor DS18B20

  • Connecting analog inputs using an MCP3008 ADC converter

  • Connecting a real-time clock (RTC)