So here I am at work, we just got this winding machine working that hasn't for a while (it had some stuff plugged in wrong inside).
Now a winding machine is kinda a simplified lathe, without all teh fancy speed controls, not a very powerful motor either. Used for making electromagentic coils for magnets or transformers. On it theres a counter (says number of rotations since started, and when it reaches a set point shuts off the motor).
Now heres the plan, I want to try and make it so that when the rig finishes winding, it'll send a signal to an arduino so that it can for example, automatically log the amount of wire that's been used up being among the first parts. All the arduino programming is fine, what I'm wondering about is the circuitry.
From testing, the signal the counter sends to the motor controller to stop is is a 50-120V AC signal ( There is a foot pedal to tell the motor to run or not, when its pressed the signal is 120V, and when released the signal is 50V AC). I was thinking the easiest way to get a read off of this signal would be to have a branch of it drive a relay, and the power going through the relay itself would be the 5V or 0V for the arduino to know when its stopped. Theres also a 15V rotary encoder (one of the quad ones, works both directions) on the machine that I'd like to get a read off of as well, which I was thinking another 2 relays would probably do the trick.
So would relays be a good path to go, or would there be a better way to get a read off of the 2 signals. If the 120V AC were really that much of a problem to deal with, that could always be controlled by the 24VDC going out to the motor itself if that'd be easier to work with since itd go off when the signal to stop the motor goes.