Watchdog Timer Enables Capacitive Touch Sensor

Sept. 24, 2009
A simple four-component circuit allows a single I/O line from any microcontroller to sense the states of two capacitive touch sensors.

With so many cell phones, PDAs, and MP3 players using touch-sensitive keypads, wheels, and screens for user input, regular mechanical pushbuttons are beginning to seem outdated. Even so, mechanical pushbuttons should stay around for a long time, because they cost much less than the controller IC required for a touch sensor.

Suppose you want to improve the look and feel of a product by using a touch sensor, but can’t afford the fancy controller IC. You could then consider a simple four-component circuit which allows a single I/O line from any microcontroller to sense the states of two capacitive touch sensors.

In its standard application, the watchdog timer (U1) uses two capacitors to set the watchdog and reset timeout periods. In this circuit the capacitors are replaced by touch sensors A and B, and the two 4.7-k resistors limit current in the IC’s protection diodes during an ESD event.

WDI is tied low to ensure the watchdog timer always times out, and the Reset output connects to the microcontroller I/O pin. Touch sensor “A” determines the watchdog timer timeout period (tA in the diagram), and touch sensor “B” determines the reset timeout period (tB in the diagram).

Thus, by repeatedly measuring the reset signal’s high and low periods, the microcontroller can determine when either sensor is touched. If a sensor is untouched, the associated period is about 40 μsec. When touched, the sensor signal period rises to 400 μsec or more. Empirical testing can help you choose the timing thresholds that enable firmware code to decide whether a sensor is being touched.

— Eric Schlaepfer

Eric Schlaepfer, Maxim Integrated Products Inc., Sunnyvale, Calif., www.maxim-ic.com

About the Author

Leland Teschler

Lee Teschler served as Editor-in-Chief of Machine Design until 2014. He holds a B.S. Engineering from the University of Michigan; a B.S. Electrical Engineering from the University of Michigan; and an MBA from Cleveland State University. Prior to joining Penton, Lee worked as a Communications design engineer for the U.S. Government.

Sponsored Recommendations

Safeguarding Robots and Robot Cells

Dec. 23, 2024
Learn which standards are relevant for robot applications, understand robot functionality and limitations and how they affect typical methods of safeguarding robots, and review...

Automation World Gets Your Questions Answered

Dec. 23, 2024
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

Basic OSHA Requirements for a Control Reliable Safety Circuit

Dec. 23, 2024
Control reliability is crucial for safety control circuits. Learn about basic wiring designs to help meet OSHA, Performance Level (PL), and Safety Integrity Level (SIL) requirements...

Safety Risk Assessment Guidelines for Automation Equipment

Dec. 20, 2024
This Frequently Asked Questions (FAQ) covers the basics of risk assessments, including the goals of the assessment, gathering the right team to perform them, and several methodologies...

Voice your opinion!

To join the conversation, and become an exclusive member of Machine Design, create an account today!