Momentary push button to toggle switch IC - Page 1
Forum section: electronics / projects

author: SoundLockEng
author_rank: Contributor
timestamp: March 01, 2018, 05:27:37 pm
content: Hi All,I have been trying to find a simple way to imlament a type of switch function and was wondering is anyone had come across such an IC.I am looking for an IC that works similarly to the MAX16054 tactile to toggle function, however that when you press and hold for an amount of time (more than just a normal press of a button) will hold the output on until you release the switch again.Otherwise it’s time to program something.Thanks in advance if anyone knows of anything.

author: Benta
author_rank: Super Contributor
timestamp: March 01, 2018, 06:46:09 pm
content: I have no idea what you mean. Toggle or no toggle?

author: SoundLockEng
author_rank: Contributor
timestamp: March 02, 2018, 09:47:17 am
content: You tap the switch it latches on. You tap it again it turns off.However, if you press and hold for more than 2 seconds (for example) it turns on but when you let go it turns off and doesn’t latch.It’s a common function for communications systems and monitoring.

author: danadak
author_rank: Super Contributor
timestamp: March 02, 2018, 11:31:59 am
content: That would be a pretty straightforward application of using PSOCstate machine wizard. PSOC 4 family, low cost, would more than suffice.No code as its really a simple use of the UDB components.This video explains. Note boards used in video irrelevant, the board I recommendbelow works as well. I just did this example, RGB LEDs driven by a push button, took~ 15 mins total, no code even though PSOC has an arm core. Stated another way PSOC isa UP coupled with analog and logic fabric, the fabric and analog can operate independentlyor coupled to the core, or both, you choose.Once you create this custom component inside PSOC you use it in a project.In that project uses an additional standard library component (component inPSOC is a function logic or analog element), a debounce component. Seeattached project IDE screen shot.The board to use, a $ 4 board, for dev more than adequate.http://www.cypress.com/documentation/development-kitsboards/psoc-4-cy8ckit-049-4xxx-prototyping-kitsLastly you would only be using a fractional part of the PSOC 4s capability. For examplemany pins have a capsense capability to get rid of mechanical buttons. A/D has onboardprecision reference and analog mux for many channels. Timers, counters, clocks, randomlogic, its all good.Regards, Dana.

author: David Hess
author_rank: Super Contributor
timestamp: March 02, 2018, 01:20:15 pm
content: These days that is the sort of thing I would use a 50 cent 8 pin PIC microcontroller for unless I had a larger microcontroller to handle it directly. If you can live with surface mount, then the cost is even lower.I might be able to do with with a quad comparator or gate but it would cost just as much or more, take up more space, and likely be less reliable.

author: SoundLockEng
author_rank: Contributor
timestamp: March 02, 2018, 01:24:24 pm
content: Thanks Dana, That looks like a really good solution, I will get a dev board and have a go!Yes I’m trying to avoid high part count, that’s why I was looking for a chip that’s already giving the function but yes otherwise something programmable is the best bet.All the bestChris