Arduino Development Cookbook
eBook - ePub

Arduino Development Cookbook

  1. 246 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Arduino Development Cookbook

Trusted byĀ 375,005 students

Access to over 1 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Arduino Development Cookbook


Table of Contents

Arduino Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Power on – Arduino Basics
Introduction
Downloading the Arduino software
Getting ready
How to do it…
There's more
See also
Connecting Arduino
Getting ready
How to do it…
Mac OS X
Windows
See also
Uploading code to Arduino
Getting ready
How to do it…
How it works…
Learning Arduino code basics
Getting ready
How to do it…
How it works…
See also
Code basics – Arduino C
Getting ready
How to do it…
How it works…
See also
Code basics – Arduino pins
Getting ready
How to do it…
How it works…
2. Blinking LEDs
Introduction
Blinking LED without delay()
Getting ready
How to do it…
How it works…
Breaking down the code
See also
Connecting an external LED
Getting ready
How to do it…
Schematic
Code
How it works…
Code breakdown
There's more…
LED resistor
Multiple LEDs
See also
Fading the external LED
Getting ready
How to do it…
Schematic
Code
How it works…
Code breakdown
There's more…
See also
RGB LED
Getting ready
How to do it…
Schematic
Code
How it works…
Code breakdown
There's more…
Common anode (+) or common cathode (-)
Without PWM
LED bar graph
Getting ready
How to do it…
Schematic
Code
How it works…
Code breakdown
There's more…
Common anode (+) and common cathode (-)
Bar graph variations
See also
The 7-segment display
Getting ready
How to do it…
Schematic
Code
How it works…
Code breakdown
There's more…
Common anode (+) and common cathode (-)
The dot
Variations
3. Working with Buttons
Introduction
Connecting a button
Getting ready
How to do it…
Schematic
Code
How it works…
Code breakdown
There's more…
Pull-up configuration
Multiple buttons
See also
Button with no resistor
Getting ready
How to do it…
Schematic
Code
How it works…
Code breakdown
There's more…
Multiple buttons
See also
The toggle switch
Getting ready
How to do it…
Schematic
Code
How it works…
Code breakdown
There's more…
See also
Button to serial
Getting ready
How to do it…
Code
How it works…
Code breakdown
There's more…
Button debouncing
Getting ready
How to do it…
Code
How it works…
Code breakdown
See also
1,000 buttons to 1 pin
Getting ready
How to do it…
Schematic
Code
How it works…
Code breakdown
There's more…
More buttons
Finding each button
Pressing multiple buttons
See also
Button multiplexing
Getting ready
How to do it…
Schematic
Code
How it works…
Code breakdown
There's more…
More buttons
See also
4. Sensors
Introduction
Simple sensor – potentiometer
Getting ready
How to do it…
Schematic
Code
How it works…
Code breakdown
There's more…
Arduino Due
Analog reference (AREF)
See also
Temperature sensor
Getting ready
How to do it…
Schematic
Code
How it works…
Code breakdown
There's more…
Detecting motion – PIR sensor
Getting ready
How to do it…
Schematic
Code
How it works…
Code breakdown
Measuring distance – infrared and ultrasonic
Getting ready
How to do it…
Schematic
Code
How it works…
Code breakdown
There's more…
See also
Noise reduction
Getting ready
How to do it…
Code
How it works…
Mean filter
Median filter
Main loop()
See also
Accelerometer
Getting ready
How to do it…
Schematic
Code
How it works…
Code breakdown
There's more…
See also
Localization – GPS
Getting ready
How to do it…
Schematic
Code
How it works…
Cod...

Table of contents

  1. Arduino Development Cookbook

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Arduino Development Cookbook by Cornel Amariei in PDF and/or ePUB format, as well as other popular books in Computer Science & Hardware. We have over one million books available in our catalogue for you to explore.