Learn Arduino from Scratch Part 1.pdf

(1052 KB) Pobierz
Copyright © 2016 by RuntimeProjects.com All rights reserved. This book or any
portion thereof may not be reproduced or used in any manner whatsoever
without the express written permission of the publisher except for the use of
brief quotations in a book review.
First Published, 2016
Notice of Liability The author and publisher have made every effort to ensure
the accuracy of the information herein. However, the information contained in
this book is sold without warranty, either express or implied. Neither the authors
and Runtime Projects., nor its dealers or distributors will be held liable for any
damages to be caused either directly or indirectly by the instructions contained in
this book, or by the software or hardware products described herein. All projects,
tutorials and articles are for educational purposes only.
Trademark Notice Rather than indicating every occurrence of a trademarked
name as such, this book uses the names only in an editorial fashion and to the
benefit of the trademark owner with no intention of infringement of the
trademark.
About the e-Book
‘Learn Arduino from Scratch’ has come a long way since its inception. We, at
RuntimeProjects.com, struggled a great deal to understand and master Arduino
and Arduino compatible devices. We believe it should not be like that. Arduino
was created to bring electronics and electronic projects closer to people, by
making it easy to start your very own hardware projects. Still, learning the basics
is always difficult, so we decided to start RuntimeProjects.com, a blog dedicated
to all new comers to the Arduino world. Since then, we helped hundreds of
beginners using tutorials and projects we built and tested ourselves. We have
received numerous praises for our work and this fueled our desire to embark on a
new journey; to write an e-book that answers most of the problems faced by
beginners and sometimes, even by experienced users like ourselves.
In this e-book you will find tutorials which are targeted to beginners having had
absolutely no experience with Arduino or any electronics whatsoever. It starts
with all the basics, building block by block until finally you reach a point where
you can start building simple projects, like reading from a sensor or displaying
text on an LCD. Later, we offer some more challenging projects like our famous
Lightning Detector which you will be able to build with only information
contained in this e-book. You will also connect to WiFi networks, request data,
send data and connect your little gadget to the Internet. Finally we attempt to
create an invincible TicTacToe player. Yes Arduino is capable of artificial
intelligence as well.
So we welcome you to this amazing world, where software and hardware merge
together to create amazing things. Have a good read and happy building.
Table of Contents
About the Book
Table of Contents
Introduction to Arduino Part 1
What is Arduino?
Arduino Boards
The IDE
Introduction to Arduino Part 2
Basic Stuff
Using the Serial Library
Hardware Serial
Software Serial
Writing to Serial
Reading from Serial
Reading and Writing Pin Values
Installing and Using Libraries
Installing Libraries
Reading Sensor Data – Temperature TMP36
Sample Code
Understanding Interrupts
The AttachInterrupt() function
The volatile keyword
Plants Monitor Using Arduino & Soil Moisture Sensor
Arduino Ultrasonic Range Finder – HC-SR04
433Mhz RF Wireless Data Transfer
Bluetooth Tutorial HC-05
Solar Power your Arduino
ESP8266 – Environment Setup
Introduction
Connections
Environment Setup
Testing
ESP8266 - Connect to WiFi and Download data from the Internet
Running a simple Web Server
ESP8266 - How to turn your ESP8266 into an Access Point
Arduino Cellular Automata
Arduino Frequency Counter with 16×2 LCD Display
A Lightning Detector for Arduino
Messing with WiFi protocol, Esp8266 and fake APs
Extend WiFi with an ESP8266
Keep accurate time using Real Time Clock (RTC)
Detect Vibrations using a Piezo Element
WiFi Scanner using PCD8544 and NodeMCU
Artificial Intelligence on Arduino - An invincible Tic Tac Toe Player
Zgłoś jeśli naruszono regulamin