Go Down

Topic: Use Arduino Uno as multiplexer latched output (Read 1 time) previous topic - next topic

PaulRB

The way I expect your demux to work is like this. 4 address lines indicate which relay is to be switched. A data line indicates if the selected relay is to be switched on or off. An enable or latch line indicates that the 4 address lines and the data line are ready to be read by the Arduino. This enable/latch line might indicate this by being high, or by being low, or by changing from low to high or from high to low, any of those would work. But without a latch or enable line, you would get unwanted switching of your relays when you did not intend them to switch.

dougp

So we are planning to use Arduino to carry out addressable latch function.
But I am unfamiliar with Arduino so I need advice here or there is other better option.
If you can answer 'Yes.' to the questions in post #10 you're on your way.

Will the six input signals be arriving via discrete digital I/O or is there messaging involved? 

Andy2778

The way I expect your demux to work is like this. 4 address lines indicate which relay is to be switched. A data line indicates if the selected relay is to be switched on or off. An enable or latch line indicates that the 4 address lines and the data line are ready to be read by the Arduino. This enable/latch line might indicate this by being high, or by being low, or by changing from low to high or from high to low, any of those would work. But without a latch or enable line, you would get unwanted switching of your relays when you did not intend them to switch.
Alright. Roughly I know what you are saying.
So the enable/latch line is also trigger from my microcontroller?

If you can answer 'Yes.' to the questions in post #10 you're on your way.

Will the six input signals be arriving via discrete digital I/O or is there messaging involved? 
Sorry, I don't get which question you mean in post #10.
And there is no messaging involved. Only ON and OFF digital signal.
For example:
0001 select relay 1
0010 select relay 2
0011 select relay 3


dougp

And there is no messaging involved. Only ON and OFF digital signal.
For example:
0001 select relay 1
0010 select relay 2
0011 select relay 3
Then your answer's in post #15.

Go Up