I nned to write the data obtained by arduino via serial communication on a digital pin. The digital pin will be connected to run a stepper motor. Can anyone help me with the code? I have attached two seperate codes - one for serial communication and other one to run a stepper motor. I dont know how to combine these two. Please help.
Stepper_motor_control_1.ino (758 Bytes)
SM_arduino_latest_28dec.ino (581 Bytes)