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

Transistors, relays, power switches


So basically, to switch an AC appliance or any circuit, you will need a switch, just like you have in your houses, where you have a switch to turn on a bulb or a fan. There is a basic circuit involved which looks very much like the following picture:

So, as we can see in the preceding picture, if you toggle the switch it's going to open and close the circuit. This in turn will make the bulb go off and on. But this is done mechanically in normal mechanical switches.

Whenever we want the same action to be performed, we will be using the electrically controlled switches, which are on an electrical relay. The image below shows an electrically controlled relay in off and on states:

In the preceding diagram you can see that whenever the power is supplied to the coil from the 3V power supply, the coil energizes and acts like a magnet pulling the terminal down. This connects the other terminal and closes the circuit and current flows through the circuit from the...