Book Image

Arduino for Kids

By : Priya Kuber, Rishi Gaurav Bhatnagar, Vijay Varada
Book Image

Arduino for Kids

By: Priya Kuber, 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
About the Authors
About the Reviewers
Customer Feedback

Make some noise!

Congratulations! You now have the basic concepts needed to get our safe working! There is only one thing left to do: to figure out how to output sound for an alarm.

We are going to use an output sound using a device called a buzzer:

Image source:

A buzzer is a two-terminal device, meaning it has to have two connections going up to it. This buzzer also has polarity, meaning it should be connected with one particular terminal of the two connected to 5V or HIGH, and the other connected to ground or LOW.

Let's hook up a circuit and make some noise!

Connect the components to the breadboard as shown. Make sure the pin of the buzzer near the + sign of the buzzer goes into the I/O pin of the Arduino. This pin is usually the longer one of the two.

The other pin would be connected to the Arduinos ground:

We shall now write a code that will bring the buzzer...