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.

Control Circuits<br />

11<br />

Control Circuits<br />

This chapter presents a variety of ways to use an 8052-BASIC system for computer control.<br />

<strong>The</strong> applications include switching power to a load, controlling a matrix of switches,<br />

selecting the gain of an op amp, and controlling speed and direction of stepping and dc<br />

motors.<br />

Switching Power to a Load<br />

You can use your 8052-BASIC system’s port bits to control power to all kinds of devices,<br />

including those powered by alternating current (AC), or direct current (DC) at voltages other<br />

than 5 volts. Figure 11-1 shows two port bits that control solid-state relays that switch power<br />

to AC and DC loads.<br />

A solid-state relay is a simple, safe way to switch power to devices that require high voltages<br />

or currents. A logic voltage at the relay’s control inputs determines whether or not power is<br />

applied to the load.<br />

In a typical solid-state relay, the control voltage is electrically isolated from the switching<br />

circuits, which contain an optoisolated triac or a similar device. Many AC solid-state relays<br />

include zero-switching circuits, which reduce noise by switching power only when the AC<br />

signal is near zero volts.<br />

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

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

Saved successfully!

Ooh no, something went wrong!