Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Advanced Analytics with R and Tableau

You're reading from  Advanced Analytics with R and Tableau

Product type Book
Published in Aug 2017
Publisher Packt
ISBN-13 9781786460110
Pages 178 pages
Edition 1st Edition
Languages
Authors (3):
Ruben Oliva Ramos Ruben Oliva Ramos
Profile icon Ruben Oliva Ramos
Jen Stirrup Jen Stirrup
Profile icon Jen Stirrup
Roberto Rösler Roberto Rösler
View More author details

Table of Contents (16) Chapters

Advanced Analytics with R and Tableau
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface
1. Advanced Analytics with R and Tableau 2. The Power of R 3. A Methodology for Advanced Analytics Using Tableau and R 4. Prediction with R and Tableau Using Regression 5. Classifying Data with Tableau 6. Advanced Analytics Using Clustering 7. Advanced Analytics with Unsupervised Learning 8. Interpreting Your Results for Your Audience Index

Building your own decision system-based IoT


In this section, we build a simple decision system using fuzzy logic on Raspberry Pi. We use Python for implementation. We build a system to monitor temperature and humidity in a room to decide if the environment is comfortable or not. If the environment is not comfortable, then we turn on a cooler machine.

The following is our design system:

Wiring

We use DHT22 and relay modules for our wiring. Connect the DHT22 module into the following connections:

  • DHT22 pin 1 (VDD) is connected to the 3.3V pin from Raspberry Pi

  • DHT22 pin 2 (SIG) is connected to the GPIO23 (see the BCM column) pin from Raspberry Pi

  • DHT22 pin 4 (GND) is connected to the GND pin from Raspberry Pi

  • A relay VCC is connected to the 3.3V pin from Raspberry Pi

  • A relay GND is connected to the GND pin from Raspberry Pi

  • A relay signal is connected to the GPIO26 (see the BCM column) pin from Raspberry Pi

The complete wiring is shown in the following figure:

Writing the program

We build a fuzzy logic...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at AU $19.99/month. Cancel anytime}