Book Image

BeagleBone By Example

By : Pei JIA, Jayakarthigeyan Prabakar, Alexander Hiam
Book Image

BeagleBone By Example

By: Pei JIA, Jayakarthigeyan Prabakar, Alexander Hiam

Overview of this book

BeagleBone is a low cost, community-supported development platform to develop a variety of electronic projects. This book will introduce you to BeagleBone and get you building fun, cool, and innovative projects with it. Start with the specifications of BeagleBone Black and its operating systems, then get to grips with the GPIOs available in BeagleBone Black. Work through four types of exciting projects: building real-time physical computing systems, home automation, image processing for a security system, and building your own tele-controlled robot and learn the fundamentals of a variety of projects in a single book. By the end of this book, you will be able to write code for BeagleBone in order to operate hardware and impart decision-making capabilities with the help of efficient coding in Python.
Table of Contents (17 chapters)
BeagleBone By Example
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Switches and LEDs


Switches are one of the the elementary components in electronic circuits:

All they do is make or break a circuit, meaning it either opens a connection or closes it between two terminals. The two states of a switch are as shown in the following figure:

There are a lot of different types of switches. But there are two most commonly used ones in our circuits that we will discuss in this section, which are the momentary switch and the toggle switch. Before we discuss the different types of switches, as mentioned during the introduction of this chapter, let's see what LEDs are and how to create a basic circuit using them, as during the explanation of the switch operations, it will be useful for better understanding.

To create your first simple circuit, take a battery, resistor, and LED with wires to connect them as shown in the following figure. By doing this, you can understand what an LED is. LED stands for light emitting diode, which is nothing but an electronic component that...