Main spindle travel time measurement (machine utilisation)

Hello.
I'm a very beginner in arduino. I would like to make a device that I can put on the main spindle of a CNC and measure the time the head is in motion (machine output). I need it to be compact so I thought about the nano
I was thinking here of an ultrasonic sensor so that if the distance to be measured changes it would start counting (after a certain margin of error), and then show on a small display how many minutes or hours it has gone. My other idea would be an accelerometer solution, here the acceleration data could be used to deduct the movement time, but there are questions about the straight sections, how it could be counted in the time, because there are sometimes straight sections during the movement of the machine that can be significant seconds.
Do you need a memory card to record the data? I would like to delete the recorded data approximately every week.
Can anyone help me how to get started?

What does your machine do and what kind of motor drives the spindle?

3 knife plotters ( Zünd M-800) and 3 SEI lasers. Each machine is a little different from the other, so I would like to have a universal device. What they have in common is that they move the laser head or knife holder. That is why I thought of a completely independent device. As for the motors, AC servo and linear motor.

I was wondering if current detection, either for the spindle motor or perhaps the whole machine would give the utilization data you're looking for.

This is a completely different point of view, but it sounds good. It would be a bigger company. I don't know how the device could be fitted as a rule\officially (without disassembly) to the machine. It would be a 3 phase machine. Any clamp meter solution?

Machine output is more a question for a CNC forum.
I guess you could add a command at the end of the G-code that activates an output.
Leo..

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.