Hello,
I know this is very doable thing but I would like some suggestion or samples how to make it.
I have Arduino #1 which generates step/direction pulses using stepper.h. No problem with that part.
I have Arduino #2 which I would like to to read the step and direction pulses generated by Arduino #1. Just one step / direction pair to be read is enough. I would like to get help how to implement this part. Let me give a real example how it would happend:
I receive 10 step/direction pulses in in 1 second. I want to start processing them immediately from first pulse received. For the output to process 10 input step/direction takes about 3 seconds. After this there will be several seconds break until new burst of step/direction pulses comes in.
Requirements:
- Receive step/direction pulses at rate about 20 / second
- Can not lose any incoming step / direction pulses
- Output operation start immediately when first step/direction pulse pair is received
- Have a buffer for several hundred or even thousands of step/direction input pulses, this is because handling one step/direction input pulse takes up to 300 ms in output side.
The output part uses servo.h and controls rc-servo motor. That part is much easier to make, no problem with that...