TransWikia.com

Button short press and long press without using microcontroller

Electrical Engineering Asked by spockshr on December 15, 2021

I have a single button system for which I want to detect the short press and long press of the button. The task is really easy with a microcontroller, but I want to do it without in a simpler way, in order to reduce the BOM as well as some cost on the BOM, however miniscule it might be. So, is there any way to detect the long press and short press without using the microcontroller?

Block diagram

2 Answers

The user is looking for 2 outputs from the design. (Long press and short press). In my design, X1 is the button. When you close it, point A will have 3.3V instantaneously making this short press. If the switch is closed for more than 6 seconds, then point B will also have 3.3V, making this long press.

This delay can be adjusted by changing R3. In this config, Its acts as supply and model. You can use separate voltage sources if you want. I assumed voltage higher than 2.5V is HIGH. If its different, Use different voltage source.

enter image description here

Answered by varun on December 15, 2021

Try this:

R3 is your delay time configurator. Higher the R3, more the delay. Adjust it accordingly.

Connect the input of HCS360 between R4 and Q1. There is voltage only when the gate Voltages exceeds 0.7V, and that doesn't happen until 6 seconds roughly (This delay is adjustable).

I hope this helps. enter image description here

Answered by varun on December 15, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP