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?
Thank you for your help!
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.