I am a chemist who is trying to use a particle photon for research purposes. I am building a pump and I need to measure the speed of the pump. I am trying to use this motor (https://www.pololu.com/product/3269) I have been able to wire this motor up to run off of a 12V battery and and am using a L298N to control the motor speed. I have that code working with no problems. My next step is trying to interface the encoder that comes with the motor so I can calculate and plot the RPM as a function of time.
My problem I have no idea how to start this. I have found older example codes but I haven’t been able to get any to work. Is the motor to fast for the particle photon? Also, is there a way to store the motor speed so I can make some plots later on?
Thank you for any help or direction!