Path: EDN Asia >> Design Ideas >> IC/Board/Systems Design >> Monitor indicates multiple deviation boundaries
IC/Board/Systems Design Share print

Monitor indicates multiple deviation boundaries

22 Jul 2015  | William Grill

Share this page with your friends

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.


Figure 1: This microcontroller-based circuit provides a simple visual indication of both the direction and the magnitude of the temperature's deviation from a userset mean in a solder pot.


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 analogue 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.

The circuit provides independent positive- and negative-deviation tables and multiplies the ranges by interpreting the voltage on Pin 6, resulting in the application of a multiple from one to eight on the boundary limits. You configure the converter reference to use the controller's VDD voltage. Using only 8 bits of the controller's 10bit ADC, the deviation can be as small as one step or 1/256×VDD, the drain-to-drain voltage. For a 5V reference, this voltage is approximately 9 mV.

Figure 2: Pin 6 and the corresponding display-format numbers set the boundaries and their possible spans.


Figure 2 shows the boundaries and their possible spans, which Pin 6 and corresponding display-format numbers set (table). 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.


Table: Display-format numbers and table-based sequence.


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 non-linearities, or error distributions.


About the author
William Grill is with Riverhead Systems.


This article is a Design Idea selected for re-publication by the editors. It was first published on April 22, 2010 in EDN.com.




Want to more of this to be delivered to you for FREE?

Subscribe to EDN Asia alerts and receive the latest design ideas and product news in your inbox.

Got to make sure you're not a robot. Please enter the code displayed on the right.

Time to activate your subscription - it's easy!

We have sent an activate request to your registerd e-email. Simply click on the link to activate your subscription.

We're doing this to protect your privacy and ensure you successfully receive your e-mail alerts.


Add New Comment
Visitor (To avoid code verification, simply login or register with us. It is fast and free!)
*Verify code:
Tech Impact

Regional Roundup
Control this smart glass with the blink of an eye
K-Glass 2 detects users' eye movements to point the cursor to recognise computer icons or objects in the Internet, and uses winks for commands. The researchers call this interface the "i-Mouse."

GlobalFoundries extends grants to Singapore students
ARM, Tencent Games team up to improve mobile gaming


News | Products | Design Features | Regional Roundup | Tech Impact