Linear Encoder test for Arduino Mega 2560 using MSK200

Hi,

I am doing a small experimental project using Arduino Atmega 2560.

My goal is to deliver small quantities of liquid into a 10mL syringe and I want to use linear encoder MSK200 to control the amount.

Is there any sample codes for Arduino ATMEGA 2560 that has a similar function or any test cases for experimental purposes.

Thank you.

I am just guessing but it looks like the output of your sensor is quadrature and you will need to be able to read and control from that information. I believe you could start by looking for information and code for digital encoders such as used for volume control. Try this lilnk for starters: https://howtomechatronics.com/tutorials/arduino/rotary-encoder-works-use-arduino/. This response is to help you get started in solving your problem, not solve it for you. Good Luck & Have Fun! Gil