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
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Chapter 9<br />
can sense light level and distance. And modern automobiles contain all kinds of sensors,<br />
including ones to measure engine temperature, composition of exhaust emissions, oil<br />
pressure, engine speed, and whether or not the seatbelts are fastened.<br />
You can find a sensor to detect and measure just about any property. Some sensors are readily<br />
available from suppliers of other electronic components. <strong>The</strong>se include photodiodes and<br />
solar cells, which respond to light, and semiconductors that respond to changes in temperature.<br />
Surplus catalogs sometimes have good deals on sensors from failed or obsolete products—<br />
for example, dollar-bill sensors from vending machines and motion detectors from security<br />
systems.<br />
Sometimes you can make your own sensors from everyday materials. <strong>The</strong> conductive foam<br />
commonly used to hold CMOS components can double as a simple pressure sensor, since<br />
its top-to-bottom resistance decreases as the foam is pressed. A popular homemade moisture<br />
detector is a printed-circuit board with two interleaved but untouching copper traces. When<br />
the board is wet, water shorts the traces together and changes the resistance between them<br />
from very high to a few hundred ohms.<br />
Some projects call for a specialized sensor that you just won’t find in the usual sources. A<br />
good resource is the Sensors Buyer’s Guide, published annually by Sensors magazine. <strong>The</strong><br />
guide lists over 1200 companies involved with sensors, and indexes them according to<br />
property sensed, technology used, manufacturer, and related products and services. From<br />
the list of properties sensed, you can select the category that interests you and consult a list<br />
of companies that offer products in that area. Most companies are happy to provide product<br />
information and applications hints.<br />
Choosing Sensors<br />
To pick the right sensor for a job, you first need to specify what you want the sensor to do.<br />
Below are some of the questions to ask about your desired sensor. <strong>The</strong> example answers<br />
describe a temperature sensor intended for use in a controller used in processing photographic<br />
film:<br />
• What property do I want to measure? (temperature)<br />
• What range of inputs do I need to measure? (60-110 degrees Fahrenheit)<br />
• What resolution and accuracy do I need? (accurate to within 0.5 degree Fahrenheit)<br />
• How fast must it respond to input changes? (quick response not critical for this<br />
application)<br />
• What kind of output do I need (analog, digital, voltage, current,...)? (8-bit digital output<br />
would be ideal, but analog voltage or current output is OK)<br />
154 <strong>The</strong> <strong>Microcontroller</strong> <strong>Idea</strong> <strong>Book</strong>