Monitor alarm and indicator display multiple deviation boundaries
Use a microcontroller and its ADCs to indicate process errors.
William Grill, Riverhead Systems, Lenexa, KS; Edited by Martin Rowe and Fran Granville -- EDN, April 22, 2010
A low-cost monitor can visually indicate a process problem, such as a failed cabinet fan or other high- or low-temperature characteristic. The microcontroller-based circuit in Figure 1 provided a simple visual indication of both the direction and the magnitude of the temperature's deviation from a user-set mean in a solder pot. Using a Microchip 12F675 controller, the coded sequences allow the user to both set the mean and scale the range of the monitored variation. The application uses the controller's internal clock and two of the controller's four ADCs.
Asserting switch S1 on Pin 4 copies the input voltage under test from Pin 7, which becomes the mean value. The code then evaluates the input-voltage deviation from the mean and applies scaled boundaries to a corresponding display format. The processor monitors both the input under test and a second analog level, on Pin 6, to scale the internal deviation/boundary tables. It then schedules as many as four sequences of one or both LEDs. The monitor also asserts an output on Pin 5 when the measured variation exceeds the third tabled boundary.
| Read More Design Ideas |
Figure 2 shows the boundaries and their possible spans, which Pin 6 and
corresponding display-format numbers set (Table 1). Using the provided minimum value of the deviation/boundary
table, neglecting the error that results from the use of the 78L05 as a
reference, and assuming the scaling derived from Pin 6 result in ×1, the first
display-format step, in this application, which occurs when the measured input
deviates more than the deviation/boundary-table value times the scale derived
from Pin 6 times 1/256 times the drain-to-drain voltage equals 2×5/256×1, or 39
mV.
You can change the display-sequence formats for the five positive boundaries, beginning in a green-LED flash, and five negative boundaries, beginning in a red-LED flash, to suit simpler go or no/go applications or other needs. The circuit may also find a use in airflow or other physical-parameter monitors.
Using the controller's ADC, you can monitor any parameter that you can
represent with a voltage. You can modify the code-based tables to accommodate a
variety of other display sequences, parameter nonlinearities, or error
distributions. Listing 1 is code for the error monitor.
Talkback





















