Book Image

Crazy about Arduino: Your End-to-End Workshop - Level 1 [Video]

By : Idan Gabrieli
Book Image

Crazy about Arduino: Your End-to-End Workshop - Level 1 [Video]

By: Idan Gabrieli

Overview of this book

The best way to find out whether this course is really for you is by asking yourself a few basic questions: • Do you like building things yourself? • Are you looking for ways to easily combine software and hardware components? • Did you ever wonder how electronic devices really work? • Do you have a creative idea and are just looking for ways to easily prototype it? • Are you excited about monitoring and controlling the physical world with a software program that you created? • Would you like to join the growing worldwide wave of Internet of Things makers? If your answer to most of the questions above is "Yes," then you're in the right place. The Arduino is probably one of the most amazing developments and prototyping platforms today with endless possibilities for Do-It-Yourself hobbyists looking for ways to express their creativity and technical capabilities. It is really up to us: we can build anything from simple and fun projects to very complex autonomous systems that can interact with users and help build a bridge between the physical and the digital world. This course is a starting point and part of a larger comprehensive training program divided into levels that are all about the Arduino and its surrounding ecosystem. Each course covers a specific group of subjects to let you develop and grow your skills step-by-step while enjoying the long journey. All the code and supporting files for this course are available at -
Table of Contents (8 chapters)
Chapter 5
Step 1 - LEDs Test and Animation Wave
Content Locked
Section 4
Reading Digital Inputs
Reading digital inputs will help us to interact our Arduino with the external environment in real-time. In our case we are going to use very simple digital sensors that are called push buttons. To read the status of a button, we first need to define a specific digital I/O pin as an input and use digitalRead(pin) function, where pin is the digital pin number to read. One thing that is important to add to this circuit is something that is called pull up or pull-down resistors.