Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn Arduino Prototyping in 10 days

You're reading from   Learn Arduino Prototyping in 10 days Build it, test it, learn, try again!

Arrow left icon
Product type Paperback
Published in Jun 2017
Publisher Packt
ISBN-13 9781788290685
Length 288 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Kallol Bosu Roy Choudhuri Kallol Bosu Roy Choudhuri
Author Profile Icon Kallol Bosu Roy Choudhuri
Kallol Bosu Roy Choudhuri
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Boot Camp FREE CHAPTER 2. The Arduino Platform 3. Day 1 - Building a Simple Prototype 4. Day 2 - Interfacing with Sensors 5. Day 3 - Building a Compound Device 6. Day 4 - Building a Standalone Device 7. Day 5 - Using Actuators 8. Day 6 - Using AC Powered Components 9. Day 7 - The World of Transmitters, Receivers, and Transceivers 10. Day 8 - Short Range Wireless Communications 11. Day 9 - Long-Range Wireless Communications 12. Day 10 - The Internet of Things

Smoke detector - Digital I/O method

Overall, the general steps to interface the Arduino with a sensor device, as outlined in Chapter 4, Day 2 - Interfacing with Sensors, will be followed once again in this chapter. However, you will notice that for the smoke detector, we do not require an Arduino library. The reason is because the smoke detector's output can be directly read via an analog pin or via a digital pin.

For building the smoke detector project the following parts will be required:

  • Arduino Uno R3
  • USB connector
  • 1 bread board
  • 1 MQ2 gas sensor
  • 1 Piezo Buzzer
  • 1 pc. 100 ohms resistor
  • Some male-to-male jumper wires
  • Some female-to-male jumper wires

First, let us inspect the method of using the digital pin; after that we will see the method of using the analog pin. Just so you know, it may be a little difficult to trigger smoke detection using the digital pin method, compared...

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 $19.99/month. Cancel anytime