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

Temperature sensor


A temperature sensor is just an electronic chip that senses the ambient temperature around it and gives out varying voltage across the output terminal of the sensor. By using this, we can calculate the temperature that's being sensed. There are many different types of sensors available in the market, but we will be using the one that is the most easily available, and most commonly used by the hobbyist. This is the LM35 temperature sensor module, which is an analog output sensor, where the voltage can be directly converted to temperature values, based on the formula given by the manufacturer of the sensor, as mentioned in the datasheet of the sensor:

How do LM35 sensors work?

The basic principle behind the LM35 temperature sensor is that it converts the ambient temperature around the sensor to analog voltage proportionally.

In the following picture, you can see the pin terminals of the LM35 temperature sensor where one terminal is the input, which gets supply input voltage...