Skip to Content
Practical Internet of Things with JavaScript
book

Practical Internet of Things with JavaScript

by Arvind Ravulavaru
December 2017
Intermediate to advanced
296 pages
5h 56m
English
Packt Publishing
Content preview from Practical Internet of Things with JavaScript

Setting up and updating the Raspberry Pi

First, we will set up the circuit, as follows:

Now, we will make the following connections:

Source pin

Component pin

Raspberry Pi pin 1 - 3.3V

Breadboard + railing

Raspberry Pi pin 6 - Ground

Breadboard - railing

Raspberry Pi pin 3 - GPIO 2

Temperature sensor signal pin

Raspberry Pi pin 12 - GPIO 18

LED anode pin

LED cathode pin

Breadboard - railing

Temperature sensor + pin

Breadboard + railing

Temperature sensor - pin

Breadboard - railing

We have used a current limiting resistor of 220 ohms between pin 12/GPIO 18 and the anode of a LED pin.

Once this ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Test-Driving JavaScript Applications

Test-Driving JavaScript Applications

Venkat Subramaniam
Web Caching and Replication

Web Caching and Replication

Michael Rabinovich, Oliver Spatscheck

Publisher Resources

ISBN: 9781788292948Supplemental Content