Hi all,
I have an odd "problem". I am refitting a model that was wired up some 15 years ago, with all connections using a three wire system. Where one wire is the ground, one is a +12 volt line and the third was used to signal a relay (basically another 12volt line). The wires are well and truly built into inaccessible parts of the model so I can't replace them.
Naturally I have decided to replace the switch and relay with a couple of micro controllers, one on each end of this old signal line via the UARTs. My first idea was to simply use the existing wire as a simple one way serial connection, so the operation of the system would be much the same as before, except I will now be able to send codes, rather than a single signal, to the back of the model and control more stuff with the receiving micro controller. All well and good.
But then the bought occurred to me that If I schedule communication on this single wire, I should be able to allow the micro controller at the rear of the model to send information back to the front.
I have attached a diagram of my idea, with a lamp in place of the RX pin and switch in place of the TX pin... now as long as I ignore the echo of the transmitting device receiving it's own transmission... I think this should work...
/media/uploads/bloodline/untitled.jpg
Hi all,
I have an odd "problem". I am refitting a model that was wired up some 15 years ago, with all connections using a three wire system. Where one wire is the ground, one is a +12 volt line and the third was used to signal a relay (basically another 12volt line). The wires are well and truly built into inaccessible parts of the model so I can't replace them.
Naturally I have decided to replace the switch and relay with a couple of micro controllers, one on each end of this old signal line via the UARTs. My first idea was to simply use the existing wire as a simple one way serial connection, so the operation of the system would be much the same as before, except I will now be able to send codes, rather than a single signal, to the back of the model and control more stuff with the receiving micro controller. All well and good.
But then the bought occurred to me that If I schedule communication on this single wire, I should be able to allow the micro controller at the rear of the model to send information back to the front.
I have attached a diagram of my idea, with a lamp in place of the RX pin and switch in place of the TX pin... now as long as I ignore the echo of the transmitting device receiving it's own transmission... I think this should work...
/media/uploads/bloodline/untitled.jpg