Arduino for Kids.pdf

(9830 KB) Pobierz
Arduino for Kids
Table of Contents
Arduino for Kids
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Why subscribe?
Customer Feedback
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
Errata
Piracy
Questions
1. The World around Us
Solving problems - the best way out
The beauty of taking notes
The human body
Summary
2. Systems and Logic
What is a system?
What is code?
What is an algorithm?
Logic
How does a control structure work?
What language does your Arduino Understand?
What is a library?
Activity - Understanding the Morse Code
What is a function?
What is a constant?
What is a variable?
What is a datatype?
Application of the control structure
Using loops
The Arduino IDE
Introduction to the Arduino IDE
How to download the IDE?
Verifying your first sketch
Saving your first sketch
Accessing your first sketch
Summary
3. Components and Connections
Exploring electricity
Venturing into voltage
Conceptualizing current
Revealing the Resistance
Comprehending Capacitance
Understanding Series and Parallel connections
Series connection
Parallel connection
What are sensors?
Physics behind sensors
Exploring common sensors
Distance sensor
Temperature sensor
Humidity sensor
Making your own sensor!
Summary
4. The Magic Wand
Demystifying microcontroller
Memory
Timers
Arithmetic and logic unit
Analog to Digital converters
Input and output lines
Registers
Coding the microcontroller - the process
Introduction
Process
Power supply
Let's use the IDE
Inside the working of a microcontroller
Open-source hardware and software
Summary
5. Hello World!
Hey Arduino! Let's get to work
Get the LEDs working
Testing an external influence on LEDs - pushbutton switch
Hi Computer, I’m Arduino! - Using serial communication to make your Arduino talk
Light sensitivity sensor - LDR
Summary
6. Safety Box
Don't touch my stuff!
What you will need
Let's get to work!
I/O pins
It's all about the logic
This is key!
The working
Conclusion
Make some noise!
The safe
Summary
7. Make a Friend
Giving life to your toys
Psst...come closer...
Sensing the closeness in reality
Let's get to work!
Digging deep into Arduino libraries
Downloading and installing an Arduino Library
Initializing the Library
Using library functions
Getting familiar with the sensor
Say hello to my little friend!
Summary
8. Save Energy
Automation? What's that?
Detecting light
Let's get to work!
Reading analog data
ADC to the rescue!
The analogRead() function
Wait, we need voltage!
Coding your way to light!
Let there be light!
The hut that comes to life at night!
Summary
9. High 5!
You deserve a high 5!
What you will need
Motors and movement
Let's get to work!
The servo library
Getting familiar with the servo
Understanding the code
High five!
Zgłoś jeśli naruszono regulamin