Programming in Arduino Uno

taz__90:
One motor, in this case Master, get a signal generated from a pulse generator(at the moment).

So that is constant.

This signal is then read by arduino uno and compared with the signal from Slave.

How is the signal from the slave derived and what does it represent?