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

DC motors


A DC motor is a motor that runs using a DC power supply.

As shown in the preceding picture, it has two terminal wires. We can call one of these terminal wire positive and the other one negative. Usually, these wires are marked red and black where red is positive and black is negative. Although these wires are marked positive and negative, unlike the battery, where these polarities can't be mixed, here in the DC motors they can be mixed.

Say, for example, on a motor, if the positive wire is connected to the positive terminal of the battery and the negative wire is connected to the negative terminal of the battery, or the power source, the motor rotates in a clockwise direction. When you reverse the connection, say from the positive terminal of the motor to the negative terminal of the battery and the negative terminal of the motor to the positive terminal of the battery, then the motor will rotate in an anti-clockwise direction, as shown in the following picture:

While the polarity...