Arduino by Example
eBook - ePub

Arduino by Example

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

Arduino by Example

Book details
Book preview
Table of contents
Citations

About This Book

Design and build fantastic projects and devices using the Arduino platform

About This Book

  • Explore the different sensors that can be used to improve the functionality of the Arduino projects
  • Program networking modules in conjunction with Arduino to make smarter and more communicable devices
  • A practical guide that shows you how to utilize Arduino to create practical, useful projects

Who This Book Is For

This book is an ideal choice for hobbyists or professionals who want to create quick and easy projects with Arduino. As a prerequisite, readers must have a working Arduino system and some programming background, ideally in C/C++. Basic knowledge of Arduino is helpful but not required to follow along with this book.

What You Will Learn

  • Understand and utilize the capabilities of the Arduino
  • Integrate sensors to gather environmental data and display this information in meaningful ways
  • Add modules such as Bluetooth and Wi-Fi that allow the Arduino to communicate and send data between devices
  • Create simple servers to allow communication to occur
  • Build automated projects including robots while learning complex algorithms to mimic biological locomotion
  • Implement error handling to make programs easier to debug and look more professional
  • Integrate powerful programming tools and software such as Python and Processing to broaden the scope of what the Arduino can achieve
  • Practice and learn basic programming etiquette

In Detail

Arduino an opensource physical computing platform based on a simple microcontroller board, and a development environment for writing software for the board. The opensource Arduino software (IDE) makes it easy to write code and upload it to the board. It runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing and other opensource software.

With the growing interest in home-made, weekend projects among students and hobbyists alike, Arduino offers an innovative and feasible platform to create projects that promote creativity and technological tinkering.

Arduino by Example is a project-oriented guide to help you fully utilize the power of one of the world's most powerful open source platforms, Arduino. This book demonstrates three projects ranging from a home automation project involving your lighting system to a simple robotic project to a touch sensor project. You will first learn the basic concepts such as how to get started with the Arduino, and as you start building the project, you will develop the practical skills needed to successfully build Arduino powered projects that have real-life implications.

The complexity of the book slowly increases as you complete a project and move on to the next. By the end of this book, you will be able to create basic projects and utilize the elements used in the examples to construct your own devices.

Style and approach

This book follows a project-oriented approach, with multiple images and plenty of code to help you build your projects easily. The book uses a tutorial-based methodology where the concepts are first explained and then implemented to help you develop the projects.

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
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 1000+ topics, we’ve got you covered! Learn more here.
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 here.
Yes, you can access Arduino by Example by Adith Jagadish Boloor 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.

Information

Year
2015
ISBN
9781785289088
Edition
1

Arduino by Example


Table of Contents

Arduino by Example
Credits
About the Author
Acknowledgements
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
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting Started with Arduino
Prerequisites
Materials needed
Note
Setting up
Downloading and installing the software
Windows
Mac OS X
Linux (Ubuntu 12.04 and above)
Connecting the Arduino
Windows
Mac OS X
Linux
The Arduino IDE
Hello World
Writing a simple print statement
LED blink
Summary
2. Digital Ruler
Prerequisites
A bit about the sensor
Hooking up an LCD to the Arduino
Best of both worlds
Summary
3. Converting Finger Gestures to Text
Prerequisites
What is a capacitive touch sensor?
An introduction to Processing
Tic-tac-toe with touch
Arduino and Processing
The result
Pattern recognition
Summary
4. Burglar Alarm – Part 1
What is a passive infrared sensor?
A mini PIR-Arduino alarm
Testing the camera
Installing the camera on the network
Setting up the mugshot URL
Putting it together
An introduction to Python
Hooking up the Bluetooth module
Summary
5. Burglar Alarm – Part 2
Dealing with the image
Sending a notification to a smart device
Putting the pieces together
Summary
6. Home Automation – Part 1
Prerequisites
Connecting the Wi-Fi module
The CC3000 Arduino shield
Testing the shield
Using relays to control appliances
Understanding the basics of the relay
Diving deeper into relay functionality
Programming a relay
Testing the relay with a light bulb
Communicating through a terminal
Summary
7. Home Automation – Part 2
Communicating via a smart phone
Android devices
iOS (Apple) devices
Implementing speech recognition
The software
Configuring the software
Creating a voice schema
Testing out the software
Making a more reliable schema
Upgrading the home automation system
Controlling multiple appliances
Via the terminal
Via the smart phone (Android)
Via the smart phone (iOS)
Via the speech recognition software (BitVoicer)
Complete home automation
Summary
8. Robot Dog – Part 1
Prerequisites
Introducing Arduino MEGA 2560
The microcontroller
Testing MEGA
Understanding servos
Servo 101
Testing a servo
Programming a servo
Using multiple servos
Understanding power requirements
Limitations of Arduino MEGA 2560
Choosing the right power source
Using the right power source(s)
Building the chassis
Using prior art
Summary
9. Robot Dog – Part 2
Building the chassis
Sticks and servos
Completing the circuit
Labeling the servos
Building a tiny circuit
Putting it all together
Summary
10. Robot Dog – Part 3
Programming the robot
Weight distribution
Test one
The walking gait
Test two
Developing personality
Circuit upgrade
Body upgrade
Sensors
The switch
Coding the personality
Implementing speech control
Connecting the HC-06 module
Programming the Arduino
Setting up BitVoicer
Summary
Index

Arduino by Example

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: September 2015
Production reference: 1090915
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78528-908-8
www.packtpub.com

Credits

Author
Adith Jagadish Boloor
Reviewers
Tim Gorbunov
Francis Perea
Commissioning Editor
Edward Bowkett
Acquisition Editor
Vivek Anantharaman
Content Development Editor
Arwa Manasawala
Technical Editor
Mitali Somaiya
Copy Editors
Trishya Hajare
Kevin McGowan
Project Coordinator
Shweta H Birwatkar
Proofreader
Safis Editing
Indexer
Priya Sane
Production Coordinator
Nitesh Thakur
Cover Work
Nitesh Thakur

About the Author

Adith Jagadish Boloor was born in Mangalore, India. He grew up tinkering with toys and gadgets that kindled his interest in how things work. His admiration for science and technology, specifically in the fields of robotics, 3D printing, and smart systems, grew into a passion that he is working towards, nurturing it into a career. He completed his higher studies...

Table of contents

  1. Arduino by Example