Author Topic: Momentary push button to toggle switch IC  (Read 1930 times)

0 Members and 1 Guest are viewing this topic.

Offline SoundLockEngTopic starter

  • Contributor
  • Posts: 13
  • Country: gb
Momentary push button to toggle switch IC
« on: March 01, 2018, 05:27:37 pm »
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.
 

Offline Benta

  • Super Contributor
  • ***
  • Posts: 5871
  • Country: de
Re: Momentary push button to toggle switch IC
« Reply #1 on: March 01, 2018, 06:46:09 pm »
I have no idea what you mean. Toggle or no toggle?
 

Offline SoundLockEngTopic starter

  • Contributor
  • Posts: 13
  • Country: gb
Re: Momentary push button to toggle switch IC
« Reply #2 on: March 02, 2018, 09:47:17 am »
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.
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: Momentary push button to toggle switch IC
« Reply #3 on: March 02, 2018, 11:31:59 am »
That would be a pretty straightforward application of using PSOC
state 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 recommend
below 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 is
a UP coupled with analog and logic fabric, the fabric and analog can operate independently
or 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 in
PSOC is a function logic or analog element), a debounce component. See
attached 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-kits



Lastly you would only be using a fractional part of the PSOC 4s capability. For example
many pins have a capsense capability to get rid of mechanical buttons. A/D has onboard
precision reference and analog mux for many channels. Timers, counters, clocks, random
logic, its all good.


Regards, Dana.
« Last Edit: March 02, 2018, 12:38:55 pm by danadak »
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16615
  • Country: us
  • DavidH
Re: Momentary push button to toggle switch IC
« Reply #4 on: March 02, 2018, 01:20:15 pm »
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.
 

Offline SoundLockEngTopic starter

  • Contributor
  • Posts: 13
  • Country: gb
Re: Momentary push button to toggle switch IC
« Reply #5 on: March 02, 2018, 01:24:24 pm »
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 best
Chris
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf