1

I'm working on a project and I need to use a toggle switch to control a device that expects a momentary signal.

What I want is send a momentary pulse when turning it on and off. Ie: swith off to on: positive pulse, switch on to off: positive pulse again.

I've got do this with a small arduino-like board but I'm looking for a pure hardware alternative.

My knowledge of electronics are quite small. I thought about using an inverter (NOT gate) to detect both latches (low and high) in the toggle switch plus a few more components, but I'm not sure how to design it.

Any ideas?

Thank you!

Garet
  • 111
  • 3
  • 1
    Doing this in hardware makes no sense if the switch is wired to the micro-controller input as you can detect a change of state in software. What is the problem with the software approach? – Transistor Sep 03 '18 at 09:23
  • The switch is not wired to the micro-controller. I did a test with a micro-controller to see if I was capable of solve it. – Garet Sep 03 '18 at 11:04
  • Actually, there are two separate system that I want to combine. A controller with some switches plus other features and a machine that expects momentary signals. I want to add a small box between both system to convert the latch signal of the toggle switches to a momentary response without modify any of the two systems. – Garet Sep 03 '18 at 11:06

1 Answers1

3

You could use a schmitt trigger EXOR gate like this: -

enter image description here

Every time the input waveform changes state you get a positive pulse at the output and the duration of that pulse is determined by the RC time constant.

Andy aka
  • 434,556
  • 28
  • 351
  • 777