ebook img

Arduino Made Simple: With Interactive Projects PDF

190 Pages·2018·1.97 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Arduino Made Simple: With Interactive Projects

Arduino Made Simple With Interactive Projects by Ashwin Pajankar FIRST EDITION 2018 Copyright © BPB Publications, INDIA ISBN: 978-93-86551-81-8 All Rights Reserved. No part of this publication can be stored in a retrieval system or reproduced in any form or by any means without the prior written permission of the publishers. LIMITS OF LIABILITY AND DISCLAIMER OF WARRANTY The Author and Publisher of this book have tried their best to ensure that the programmes, procedures and functions described in the book are correct. However, the author and the publishers make no warranty of any kind, expressed or implied, with regard to these programmes or the documentation contained in the book. The author and publisher shall not be liable in any event of any damages, incidental or consequential, in connection with, or arising out of the furnishing, performance or use of these programmes, procedures and functions. Product name mentioned are used for identification purposes only and may be trademarks of their respective companies. All trademarks referred to in the book are acknowledged as properties of their respective owners. Distributors: BPB PUBLICATIONS BPB BOOK CENTRE 20, Ansari Road, Darya Ganj 376 Old Lajpat Rai Market, New Delhi-110002 Delhi-110006 Ph: 23254990/23254991 Ph: 23861747 DECCAN AGENCIES MICRO MEDIA 4-3-329, Bank Street, Shop No. 5, Mahendra Chambers, 150 Hyderabad-500195 DN Rd. Next to Capital Cinema, V.T. Ph: 24756967/24756400 (C.S.T.) Station, MUMBAI-400 001 Ph: 22078296/22078297 Published by Manish Jain for BPB Publications, 20, Ansari Road, Darya Ganj, New Delhi-110002 Dedicated To The Missile Man of India A.P.J. Abdul Kalam — Ashwin Pajankar Acknowledgement No task is a single man’s effort. Cooperation and Coordination of various peoples at different levels go into successful implementation of this book. There is always a sense of gratitude, which every one expresses others for their helpful and needly services they render during difficult phases of life and to achieve the goal already set. It is impossible to thank individually but I am hereby making a humble effort to thank some of them. I would like to thank Mr. Manish Jain for giving me an opportunity to write for BPB publications. Writing for BPB has been my dream for me for almost last 15 years as I grew up reading books authored by Yashavant Kanetkar. I have published more than 10 books till now and this is my very first book for an Indian publisher. Finally, I want to thanks everyone who has directly or indirectly contributed to complete this authentic piece of work. Ashwin Pajankar Preface The author is confident that the present work in form of this book will come as a relief to the students, makers, and professionals alike wishing to go through a comprehensive work explaining difficult concepts related to Arduino platform and ecosystem in the layman’s language. The book offers a variety of practical projects with electronic components and sensors. Also, this is the one of the very first printed books on the Arduino platform which offers detailed instructions on setup of Arduino Tian. This book promises to be a very good starting point for complete novice learners and is quiet an asset to advanced users too. The author has written the book so that the beginners will learn the concepts in a step-by-step approach. Though this book is not written according to syllabus of any University, students pursuing science and engineering degrees (B.E./ B. Tech /B.Sc./ M.E./ M. Tech./M.Sc.) in Computer Science, Electronics, Instrumentation, Telecommunications and Electrical will find this book immensely beneficial and helpful for their projects and practical work. Software and I.T. Professionals who are beginning to learn microcontrollers or want to switch their careers to IoT (Internet of Things) will also benefit from this book. It is said “To err is human, to forgive divine”. In this light the author wishes that the shortcomings of the book will be forgiven. At the same time, the author is open to any kind of constructive criticisms, feedback, corrections, and suggestions for further improvement. All intelligent suggestions are welcome and the author will try his best to incorporate such in valuable suggestions in the subsequent editions of this book. Ashwin Pajankar vi Arduino Made Simple Table of Content Chapter 1: Introduction to Arduino 1 Microcontrollers 1 AVR Microcontrollers 1 Other Microcontrollers and Processors used by Arduino boards 2 Who can learn Arduino? 2 Features of Arduino 3 Arduino Boards and Ecosystem 3 Official Arduino Boards 3 Arduino Derivatives 10 Arduino Clones 11 Arduino Counterfeits 11 Assembling your own Arduino Uno Board 11 Where to buy Arduino 11 Summary 11 Exercise for this chapter 11 Chapter 2: Getting Started 12 Arduino Uno 12 Technical Specifications Arduino Uno Rev 3 13 Pin Description of Arduino Uno Rev 3 13 How to power Arduino Uno 14 USB Power 15 DC Power Jack 15 Arduino IDE installation and Setup 16 Summary 21 Exercise for this chapter 21 Chapter 3: Writing Programs for Arduino 22 Our very first Arduino Program 22 Alternate ways of powering Arduino 27 USB Power 27 DC Power Jack 27 Power pins 28 C Programming for Arduino 29 Arduino C Data Types 29 Summary 29 Exercise for this chapter 29 Arduino Made Simple vii Chapter 4: LED Programming 30 Breadboards 30 Jumper Wires 32 Resistors 33 LED 34 Our very first Arduino Circuit 34 Morse Code SOS 37 Alternate blink circuit and program 38 LED Chaser example 40 Summary 44 Exercise for this chapter 44 Chapter 5: Programming with Push Buttons 45 Push Buttons 45 Concept of Pull Up resistor 47 Traffic Light 50 Visualizing Random Numbers Generation 52 Summary 53 Exercises for this chapter 54 Chapter 6: Analog Inputs and Various Buses 55 Serial Data transfer 55 Arduino Serial 57 Getting Started with Arduino Serial 57 Analog Input 59 Arduino SPI 64 Arduino I2C 65 Summary 66 Exercises for this chapter 66 Chapter 7: Working With Displays 67 Segment Led bar graph 67 16x2 LCD Screen 70 I2C LCD 74 MAX 72XX LED Driver 77 Summary 88 Exercises for this chapter 88 Chapter 8: Arrays, strings, and memory 90 Arrays 90 Multidimensional Arrays 91 Character Arrays 92 Strings 93 Arduino Uno Memory 94 Checking free RAM 94 viii Arduino Made Simple EEPROM 95 Summary 96 Exercises for this chapter 96 Chapter 9: Working with Sound and Sensors 97 Piezo Buzzer 97 Audio SOS Signal 100 Arduino Piano Keyboard 101 LM393 Digital Sound Sensor 103 Summary 106 Exercises for this chapter 107 Chapter 10: More Sensors 110 Digital Humidity and Temperature Sensor 110 Proximity Sensing with IR sensor 115 PIR Sensor 116 Distance measurement 119 Summary 121 Exercises for this chapter 121 Chapter 11: Arduino PWM 123 Pulse Width Modulation 123 PWM in Arduino 124 RGB LEDs 125 Controlling a simple DC motor with PWM 130 Using a Servo Motor with Arduino 132 Summary 134 Exercises for this chapter 134 Chapter 12: Matrix Keypad And Security System 135 Keypad 135 Password Protected Security System 138 Summary 140 Exercises for this chapter 140 Chapter 13: SD Card Module, IR Receiver, and Relay 141 MicroSD Card Module 141 IR Receiver Sensor and Remote control 147 Summary 150 Exercises for this chapter 150 Chapter 14: Arduino Nano and Arduino Tian 153 Arduino Nano 153 Arduino Tian 156 Summary 171 Exercises for this chapter 171 Arduino Made Simple ix Chapter 15: Miscellaneous Topics 172 Connecting Multiple Arduino Boards to a computer 172 Arduino To Arduino I2C Communication 173 Arduino to Arduino Serial Communication 175 Arduino to Raspberry Pi Communication through Serial USB 177 Summary 179 Exercises for this chapter 179 Important Questions (Unsolved) 180

Description:
This book is written in such a way that the concepts are explained in details, giving adequate emphasis on circuits and code examples. To make the topics more comprehensive circuit diagrams and code snippets are furnished extensively throughout the book. The book is designed in such a way to make it
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.