18.11.2014 Views

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Using Sensors to Detect and Measure<br />

9<br />

Using Sensors to Detect and<br />

Measure<br />

With your 8052-BASIC system and some sensors, you can detect and measure properties<br />

such as temperature, light, chemical composition, motion, and more. This chapter focuses<br />

on how to use sensors in an 8052-BASIC or other microcontroller system.<br />

Sensor Basics<br />

A sensor is a device that responds to a physical property or condition. Other terms for sensor<br />

are detector and transducer. Sensors enable a circuit to learn about the world outside of<br />

itself, much as humans use the senses of sight, hearing, touch, smell, and taste.<br />

A sensor may respond in any of a number of ways. For example, litmus paper is a sensor<br />

that responds to acidity by changing color. For interfacing to the 8052-BASIC, we’re<br />

interested in sensors that respond electrically, by varying in voltage, current, or resistance,<br />

since these are easily interfaced to electronic circuits.<br />

One obvious use for sensors is in environmental monitoring, including detecting and<br />

measuring temperature, light, wind speed and direction, humidity, and so on. But all kinds<br />

of electronic devices use sensors, even when sensing isn’t the primary purpose. For example,<br />

computer printers have sensors that detect when the printer is out of paper. Many cameras<br />

<strong>The</strong> <strong>Microcontroller</strong> <strong>Idea</strong> <strong>Book</strong> 153

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!