marzan
Senior Member
Hello everyone. I have 2 linear threaded shafts that need to move in unison (or close to) to 6 pre defined positions. what I was thinking of doing is have one Picaxe acting as the master that decides what position they need to go to by sending a serial command to a second picaxe controlling the other shaft. what I want to do is have the master send the command to the slave, and for the slave to send the command back so the master knows it was received. I want the master to wait until it receives the reply before moving. The bit I am trying to work out is if both picaxes can be alerted via serial input if either detects their particular shaft isn't moving.
In essence what I am asking is, can you have a serial port wait for a command and then after run in the background waiting for a possible fault message?
I am using a 20x2 as a master and possibly an 08m2 as a slave. to make it tougher I would rather not use wires, although I realise that would create a whole set of new problems. Failing that, as few wires as possible.
Thanks in advance.
Marz
In essence what I am asking is, can you have a serial port wait for a command and then after run in the background waiting for a possible fault message?
I am using a 20x2 as a master and possibly an 08m2 as a slave. to make it tougher I would rather not use wires, although I realise that would create a whole set of new problems. Failing that, as few wires as possible.
Thanks in advance.
Marz