Book Image

Arduino for Kids

By : Rishi Gaurav Bhatnagar, Vijay Varada
Book Image

Arduino for Kids

By: Rishi Gaurav Bhatnagar, Vijay Varada

Overview of this book

The mission of this book is to integrate technology with the tools that children already use for crafts so that they feel that the technology is an extension of their playtime. We use coding, sensors, and micro-controllers integrated with art and craft supplies, origami, and Playdough. There are 10 fun-filled chapters that talk to children directly, and give clear instructions for non-technical parents too. We use Arduino as the controller of choice due to its easy availability and large community. By the end of the book, children will comfortably be able to set up their Arduino, read and understand code, manipulate code, and ultimately write their own code for projects. They will also be able to use basic sensors and know how components connect to each other. All the learning takes place with lots of colorful pictures and the circuits are neatly presented using wiring.
Table of Contents (18 chapters)
Arduino for Kids
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface

This is key!


Our Arduino will need to know or sense if a key is placed into the keyhole. This is an input that will be given on one of the Arduinos I/O pins.

Arduino can take an input from the outside world using the digitalRead() function.

A function in programming can be thought of as a task or a group of tasks that performs or does something. There are functions to add two numbers, there are functions that can check the number of letters in a word, and there are many more. You can even write your own functions in a program.

The digitalRead() function is one such function that gets input from the outside world through one of Arduinos I/O pins.

You will also be introduced to conditional statements, namely the if and else statements, which help the Arduino make decisions depending on certain conditions.

Let's write a program that takes input from a button, and depending on whether the button is pressed or not, turns on and off an LED. You learned how to blink an LED in the previous chapter using...