2501 Aerial Center Parkway
Suite 200
Morrisville, NC 27560
USA
All rights reserved.
I mportant licensing information. Please read.
This book is available for free download from www.syncfusion.com on completion of a registration form.
If you obtained this book from any other source, please register and download a free copy from
www.syncfusion.com.
This book is licensed for reading only if obtained from www.syncfusion.com.
This book is licensed strictly for personal or educational use.
Redistribution in any form is prohibited.
The authors and copyright holders provide absolutely no warranty for any information provided.
The authors and copyright holders shall not be liable for any claim, damages, or any other liability arising
from, out of, or in connection with the information in this book.
Please do not use this book if the listed terms are unacceptable.
Use shall constitute acceptance of the terms listed.
SYNCFUSION, SUCCINCTLY, DELIVER INNOVATION WITH EASE, ESSENTIAL, and .NET ESSENTIALS are the
registered trademarks of Syncfusion, Inc.
Technical Reviewer: Sander Rossel
Copy Editor: Suzanne Kattau
Acquisitions Coordinator: Hillary Bowling, marketing coordinator, Syncfusion, Inc.
Proofreader: Tres Watkins, content development manager, Syncfusion, Inc.
3
, Table of Contents
The Story behind the Succinctly Series of Books .................................................................... 6
About the Author .................................................................................................................. 8
Chapter 1 Introduction and Getting Started .......................................................................... 9
Installing Arduino IDE on Windows ............................................................................................... 10
Installing Arduino IDE on Linux ..................................................................................................... 14
Installing Arduino IDE on Mac OS X ............................................................................................... 16
Arduino Uno Hello World ............................................................................................................. 16
Serial Monitor .............................................................................................................................. 20
Chapter 2 Building Circuits with LEDs .................................................................................. 22
Arduino Traffic Light ..................................................................................................................... 24
Arduino Cylon Eye ........................................................................................................................ 27
Countdown .................................................................................................................................. 30
Chapter 3 Working with Buttons ......................................................................................... 34
Pushbutton .................................................................................................................................. 34
Quirky Pushbutton ....................................................................................................................... 35
Pushbutton with Noise Filtering Software ..................................................................................... 38
Pushbutton with Noise-Filtering Hardware ................................................................................... 39
Chapter 4 Using Buzzers...................................................................................................... 41
Counting Seconds ......................................................................................................................... 41
Changing Buzzer’s Frequency ........................................................................................................ 44
Using the Tone Function ............................................................................................................... 47
Playing a Melody .......................................................................................................................... 49
Chapter 5 Measuring Environment Conditions .................................................................... 52
Measuring Air Temperature.......................................................................................................... 52
Detecting Light Levels ................................................................................................................... 55
Using Temperature and Humidity Sensor ...................................................................................... 58
Measuring Barometric Pressure .................................................................................................... 61
Detecting Soil Moisture ................................................................................................................ 65
Measuring Environment Conditions Conclusion............................................................................. 69
Chapter 6 Detecting Objects ............................................................................................... 70
Using Potentiometers ................................................................................................................... 70
Using Ultrasonic Distance Sensor .................................................................................................. 72
Reacting On Approaching Objects ................................................................................................. 76
Tuning the Distance Sensor on the Fly ........................................................................................... 78
Parking Sensor ............................................................................................................................. 81
Using Infrared Motion Sensor ....................................................................................................... 84
Turning the Light on Conditionally ................................................................................................ 87
Chapter 7 Networking......................................................................................................... 90
Communication with MK Modules ................................................................................................ 90
Using nRF24L01+ Data Transceivers .............................................................................................. 94
Connecting to Wireless with ESP8266 Chip .................................................................................. 100
4
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller ibrahimonoru20. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $8.39. You're not tied to anything after your purchase.