I am trying to control the motor actuation based on encoder response via serial communication. I am getting response from motor but i cant able to get output from encoder. I checked the encoder separately which is working fine. Can anyone suggest me where i made mistake? I attached the code below please check and respond me as soon as possible.
Badhri_s_Firmware.ino (5.96 KB)