stevercarter
New Member
I wish to use say a 20m as master and serial connect say 4 20m as slave units
I want the slave units to replicate the master outputs
I want the slave units to replicate the master outputs
You might use serial communication. If you have enough pins on the master, a serial wire to each slave is easy.I wish to use say a 20m as master and serial connect say 4 20m as slave units
Master:
dirsB = $FF
Do
pinsB = ...
SerOut TX_PIN, TX_BAUD, ( outpinsB )
Pause ...
Loop
Slave:
dirsB = $FF
Do
SerIn RX_PIN, RX_BAUD, pinsB
Loop
Presumably these mimic panels are to go some distance away, long wiring runs are traditionally a serial job, so that sounds right. How long?i am not sure if serial out to serial in is best way
If the slaves only listen, and you don't need to know if they are all correctly there. or respond to buttons pressed on them or suchlike - then they can all be the same with no unique ID.and do i need to have slave units id numbers even tho they
will be doing the same thing
As you are using N4800 baud rates ( idle low ) it would be better to make the pull-down from pin C.1 to 0V.only problem occurred when when cable not joined holding serial cable going to slave unit caused it to randomly operate. I put a 10k resister from +5v to serin pin C1 and this solved