ArduiUno Programming - Advanced.pdf
(
901 KB
)
Pobierz
© Copyright 2019 by Steve M. Eckert
All rights reserved.
This document is geared towards providing exact and reliable information
with regards to the topic and issue covered. The publication is sold with the idea
that the publisher is not required to render accounting, officially permitted, or
otherwise, qualified services. If advice is necessary, legal or professional, a
practiced individual in the profession should be ordered.
- From a Declaration of Principles which was accepted and approved equally
by a Committee of the American Bar Association and a Committee of Publishers
and Associations.
In no way is it legal to reproduce, duplicate, or transmit any part of this
document in either electronic means or in printed format. Recording of this
publication is strictly prohibited and any storage of this document is not allowed
unless with written permission from the publisher. All rights reserved.
The information provided herein is stated to be truthful and consistent, in that
any liability, in terms of inattention or otherwise, by any usage or abuse of any
policies, processes, or directions contained within is the solitary and utter
responsibility of the recipient reader. Under no circumstances will any legal
responsibility or blame be held against the publisher for any reparation,
damages, or monetary loss due to the information herein, either directly or
indirectly.
Respective authors own all copyrights not held by the publisher.
The information herein is offered for informational purposes solely, and is
universal as so. The presentation of the information is without contract or any
type of guarantee assurance.
The trademarks that are used are without any consent, and the publication of
the trademark is without permission or backing by the trademark owner. All
trademarks and brands within this book are for clarifying purposes only and are
the owned by the owners themselves, not affiliated with this document.
Table of Contents
Chapter One: Arduino Programming
A quick revision of the finer points of Arduino
Serial communication
Synchronous serial protocols
Actuators
Data logging
EPROM
The Micro SD Card module
The things we can accomplish with Arduino
Chapter Two: Arduino Hello World
The blinking Led
To make the lights fade on or off
Chapter Three: Introduction To Sensors
To measure light
Measurement of temperature and humidity
Measurement of atmospheric pressure
Chapter Four: Some More Sensors
Motion sensing
The ultrasonic distance sensor
Measuring acceleration
The infrared line sensor
The tilt and impact sensor
The flex sensor
Chapter Five: Buttons
The membrane potentiometer
The rotary potentiometer
The buzzer
Chapter Six
The keypad
Chapter Seven
The fingerprint scanner
Chapter Eight
The LCD character screen
Including the Dt22 sensor
Connecting all your LCD with a single wire
Conclusions
CHAPTER ONE
ARDUINO PROGRAMMING
Think of yourself as an explorer. You have traveled through distant lands until
you finally came to the land of Arduino. You started off with many comrades,
but many of these comrades have fallen off along the way. They have fallen
along the way because, truth be told, even though we have opined that Arduino
is a pretty simple platform to get a grasp of, it requires hard work, dedication and
consistency. Anything that is worthwhile requires hard work, dedication and
consistency really. So, you have understood that the journey is a difficult one,
but you have also realized that this journey is worth it. That is why you have
persisted to continue with this book, after you have finished with the first
volume Arduino for Beginners (this is the opportunity to refer you to that
volume, if you have any beginners’ questions you need answers to).
What this book will do for you, is to continue from where the last book
stopped, the volume 1 of this book, Arduino for Beginners. Even though this
book assumes that you have gone through the basics of Arduino with the volume
1, we will still refresh your mind on points that we feel you may have forgotten.
This book will be result oriented, and thus, we will mostly be talking about
projects. However, we understand that as you go through the projects with us,
you may forget one or two important points. Don’t worry, we’ve got you
covered in that aspect. If you do not have any prior knowledge on Arduino, we
suggest that you go back to the first volume of this book. You will not regret
doing so.
So, good luck as you go through this book and congratulations as you grasp
yet another skill.
A Quick Revision of the Finer Points of Arduino
Arduino is a platform that has come to stay, and the sooner you jump into the
bandwagon, the better for you. You know that Arduino is a platform for
automation. Most of your remote-controlled gadgets and home automated
systems make use of Arduino or any of its derivatives in one way or the other.
The question now is: how does Arduino achieve this automation; how does it do
what it does?
In the previous volume of this book, we talked about microcontrollers, and we
talked about how microcontrollers have revolutionized the automation and
automation industry. Well, at the heart of every Arduino lies the microcontroller.
Remember that the microcontroller is more like a mini computer on a chip. Well,
the Arduino board serves as the platform which holds the microcontroller and
every other component together. Think of the Arduino as an adapter and a
facilitator. Adapts the microcontroller and provides other components to
facilitate the work of the microcontroller. These components include pins,
connectors and a host of other things.
We also talked about shields. Remember that a shield serves as an add-on, it
improves the work on the work of the Arduino. What the shield does is to
include a property which is needed in a project, but which the Arduino does not
possess. For instance, a project which requires Wi-Fi can be fitted with a Wi-Fi
shield. There are other shields like the motor shield, the battery shield and a host
of other shields which are available to assist you in your projects. Because most
devices built with Arduino need to be compact, these shields are mostly used to
build prototypes. This is because stacking a shield over another will make your
project very unwieldy. Imagine that you need both Wi-Fi, batteries and an
electric motor in one project! Will you stack them over the other in such a
fashion? Most often, after the prototypes have been built with the Arduino and
the shields, a board containing all the needed components is then designed. This
is why Arduino boards are called prototyping boards. What this means is that
after a prototype that requires Wi-Fi and a motor has been built with Arduino
and shields, for example, and it has been confirmed to work, a compact board
which contains all these components will then be developed.
We also learnt about the different accessories that work with Arduino. The
components that make up the Arduino ecosystem are: The Arduino IDE, the
Plik z chomika:
aklapa
Inne pliki z tego folderu:
Elegoo 37 Sensor Kit Tutorial for UNO R3 and Mega 2560 V1.0.0.2019.08.7.zip
(33632 KB)
Handbook of Arduino 100+ Arduino Projects.PDF
(43339 KB)
Top 100 Arduino Project for Innovators Getting Started With Arduino Projects.PDF
(34216 KB)
Learn Arduino Basics With Projects - Mathew, Er.pdf
(5014 KB)
Arduino_36.zip
(44729 KB)
Inne foldery tego chomika:
Kryminalne Sensacyjne Faktu
Perelman RUS
Przewodniki
Raspberry
Recreation
Zgłoś jeśli
naruszono regulamin