# Converting Pulse Sequence Inputs Into Separate Outputs

I'm trying to find the simplest way of accomplishing the following task:

Convert 3 different pulse input sequences into one of 3 different output lines

The image below explains the problem graphically.

We have 3 possible input pulse sequences on the input line

• if pulse pattern 1 is received on the input line then output line 1 should go high (e.g. +5V) (and outputs 2 and 3 would be ground)
• if pulse pattern 2 is received on the input line then output line 2 should go high (all others ground)
• if pulse pattern 3 is received on the input line, then output line 3 should go high (all others ground).

Any thoughts / comments on the easiest way to accomplish this task would be greatly appreciated!

For example, I'm not sure if there is a specific Integrated Circuit chip that inherently can do this (e.g. some sort of Decoder)? Or do I need to buy an Arduino microcontroller and write a program that listens for different pulse patters on the input line and then sets one of the output lines high when it detects one of the 3 possible pulse patterns?

UPDATE (More Details) - We can differentiate the 3 different pulse patterns based on the duration of each. Let's say, for instance, that each pulse is 1ms high and 1ms low. So we know that an input pulse sequence is complete when the input line has been low for several milliseconds. Since these pulse patterns won't be coming in too frequently (probably 1 pulse input pattern every couple of minutes). The output line should go high (e.g. +5V) for a few seconds after the incoming pulse sequence is determined.

• You will need to constrain the problem further. How would you distinguish a single pulse from the first pulse in a sequence of pulses? Perhaps Time/duration? If so, how long are the pulses and the intervals between pulses and sequences? Does the output send a pulse or does it remain set? Etc.... – Edgar Brown Mar 18 at 22:19
• Depending upon the answer to the need for additional constraints, you might be able to do it with not much more than a 74HC595 Shift Register and some sort of timer. – George White Mar 18 at 22:53
• I would start by researching serial to parallel signal conversion. – Luke Gary Mar 18 at 23:06
• Thanks so much, @EdgarBrown, I appreciate your reply! I added some more detailed constraints to the problem. Any additional comments or suggestions are greatly appreciated... thanks again! – John Powers Mar 19 at 4:54
• Thanks so much, @GeorgeWhite, I appreciate your reply! I added some more detailed constraints to the problem. Any additional comments or suggestions are greatly appreciated... thanks again! – John Powers Mar 19 at 4:54