Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Arduino Essentials

You're reading from   Arduino Essentials Enter the world of Arduino and its peripherals and start creating interesting projects

Arrow left icon
Product type Paperback
Published in Feb 2015
Publisher Packt
ISBN-13 9781784398569
Length 206 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
 Perea Perea
Author Profile Icon Perea
Perea
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Arduino Essentials
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
1. Meeting the Arduino Family FREE CHAPTER 2. The Arduino Development Environment 3. Interacting with the Environment the Digital Way 4. Controlling Outputs Softly with Analog Outputs 5. Sensing the Real World through Digital Inputs 6. Analog Inputs to Feel Between All and Nothing 7. Managing the Time Domain 8. Communicating with Others 9. Dealing with Interrupts 10. Arduino in a Real Case – Greenhouse Control Index

Summary


In this chapter, we had an introduction to the use of digital inputs by working with two different examples, each one showing different devices that can be used as digital sensors.

We saw what a momentary push button is and its particularities and also learned the right way to connect one to Arduino to be used as a digital input.

We also saw that there are lots of other devices that can be used as digital sensors and, in a second example, we used an optocoupler as an optical switch to build a coin detector.

From the point of view of programming, we met the if control structure in its two versions, simple and with a negative else branch, and learned that it can be the basis of any logical decision in our code.

In the next chapter, we are going to dive into the amazing world of analog sensors and meet two of them that will allow us to measure physical variables, which will enrich the field of application of our projects.

We will, of course, also learn how to program them and learn how to...

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 $15.99/month. Cancel anytime
Visually different images