Skip to Main Content
Hands-On Internet of Things with MQTT
book

Hands-On Internet of Things with MQTT

by Tim Pulver
October 2019
Intermediate to advanced content levelIntermediate to advanced
350 pages
9h 5m
English
Packt Publishing
Content preview from Hands-On Internet of Things with MQTT

Connecting the other tilt switches

By now, you should have a feeling for how the tilt switch behaves and what values it outputs when you hold it upright or upside down.

With one tilt switch, we are able to sense two positions, either upright or upside down. We want to sense even more positions by using multiple tilt switches. If we arrange them at different angles, we can reliably sense various orientations.

Because we want to build a smart productivity cube, we need to sense six sides: bottom, top, left, right, front, and back. We need to lay out the tilt switches in such a way that all of these sides can be reliably sensed. When I say reliably, I mean that when placing the cube on one of its sides, the output of the tilt switches should ...

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

Practical IoT Hacking

Practical IoT Hacking

Fotios Chantzis, Ioannis Stais, Paulino Calderon
Internet of Things (IoT) Fundamentals

Internet of Things (IoT) Fundamentals

Jerome Henry / Rob Barton

Publisher Resources

ISBN: 9781789341782Supplemental Content