I am repairing a portable heater cooler machine. One of its stepper motors went bad. This linear stepper motor opens and closes a valve depending if you want cold or hot water. I could not find the original stepper motor so I had to buy the closest one that will match the size constraints.
Since the motor does not match the original one, when the installed and the machine turned on the motor does not open or close all the way. It seems the stepper signal is different so I must code my own signal. I know how to code it the problem is putting everything together.
How do I sense when its going forward or backwards? Do I just compare 2 wires, depending which one turns on first?
How do I power my circuit and my stepper? I can only find a 36V DC source. I guess I would use a regulator with 12v and 5v output, one for the motor one to drive the stepper.
I have a stepper driver and coded a working program for my stepper motor it's just putting it together that bogs me down.
DO I need to down regulate the original stepper signal in order to read in which way its going, since its 12v? I dont think the arduino can read in 12v.