Sanity check a project idea before jumping in!

Hello,

I have yet to embark on my Arduino journey. Before I disappear down the rabbit hole I was hoping I could get some advice on a real life project I would be interested in exploring.

I work for a manufacturing company using CNC machine tools. We run our CNC machines through the night unmanned. I was hoping there may be a way to get very basic notification on my phone when the status of the CNC changes.

The CNC machine already has a traffic light system, with green, yellow and red lights being illuminated when the machine status changes (tool breakage, machine has stopped etc).

Would it be possible to hijack the traffic light signals and forward the signal to my phone?

I am a total beginner, so apologizes for my ignorance.
Any advice, or suggested tutorials would be amazing.

Thank you in advance,

Kind regards,
Luke

Yes, that sounds feasible.

If the lights run off a low voltage, then it may be possible to make a direct connection between the machine and an Arduino.

If the lights use mains voltage then it would be safer to use photo transistors to detect the light from the lamps.

Do you have any information about the CNC machines that you can share with us?

1 Like

Anything is possible.
I suggest you learn how to program and use the Arduino and some basic electronics.
Spend some time at these websites
https://docs.arduino.cc/learn/
https://www.allaboutcircuits.com/textbook/

Hi John

Thanks for your reply.

We have many machines, but one example below,
https://www.ycmcnc.com/_upload/files/NFX400_E_2019_low.pdf

I can imagine, but I am not certain, the traffic light will have a 12v supply?

The traffic light is visible in the pdf above.

I think I will need a direct connection, as I would need to distinguish between a solid green, solid yellow, flashing yellow, and solid red.

All advice welcome how I would undertake this type of project.
What preliminary investigation should I perform ahead of embarking on researching the details?

Thanks for your help

Luke

Thanks Jim

Depending on your skills you may or may not decide to go any further.

It could be anything really. It looks like it might be a multicolor LED though. Unless you can get more info from the supplier, you will need to take it apart and examine it.

Worth asking the supplier if there is already an external interface, it would be less intrusive to plug into a port somewhere.

1 Like

I noticed that the CNC machine in the link has RS232 and Ethernet connections.

It might be possible to program the machine to send status messages on one of those interfaces.
Maybe it already does that?

If that was possible, then there is no need to make any internal modifications/connections to the machine.

1 Like

Thanks for such quick replies.

I believe there is an aftermarket solution but at an initial cost of £6k per cnc and then a subscription thereafter.

I was tasked with investigating this by my boss, so I assume he has already investigated other options, but will discuss to confirm.

I will also chat will the machine manufacture to confirm they do it offer support with this functionality via rs232 or Ethernet

Thanks again

Only the same advice you may have already.

Divide and conquer.

A first project, which is not trivial and will drag you over learning stuff, some easy and some a little less so, would be to get an Arduino to illuminate three LEDs in exact synchrony with the traffic lights you have now.

Hijack, to use your, and the, term for it. Can you look into what is going on in the traffic light system? How do we feel about voiding warranties? :expressionless: It should be easy enough to accomplish without doing.

Forget for now about the whizzy end goal of being alerted on your cellphone at 3AM in the morning.

Or do that part first. Just program an Arduino to send you an email when you press a button.

That one is a different kind of fun.

By the time you've finished both half-projects, you'll prolly be far enough along to combine that progress.

a7

I can't see the pdf because Firefox says the linked site has a revoked certificate. But it seems to me that three photo-transistors, with a red, green or yellow filter in front of each, would be able to detect the lights optically from a moderate distance away. It might even be possible to use regular red, green and yellow LEDs. While normally used to emit light, LEDs will also generate current when exposed to light - not as good as a real photodiode or transistor, but possibly well enough.

In the past I have also used phototransistors stuck into the end of soda straws and pointed directly to a light, which senses only one light. In that case, color doesn't matter.

Is there a place above the display or below it that would hold the Arduino circuit and let you place an LED directly on the front of each light, either hanging down from above or on stilts from below?

It just seems it would be better to avoid connecting into the display. I say that having just finished installing a circuit into my microwave to detect what it is displaying. But my microwave isn't a big, expensive CNC machine, and is already well out of warranty.

Anyway, I think this should be possible to do. You will need to be able to make a connection to your company's wifi router if they will allow that. Or I guess it could be done over cellular, but I don't know anything about that option. Maybe the first step would be to see if you can get an Arduino to detect one of the lights in some way.

Another vote for approach that doesn't invalidate warranty or violate safety regulations.
Photodiode/transistor is probably the best way, another "non invasive" method could be a current clamp sensor in a right spot. OP could use for example Shelly EM to measure AC current of some part of the device and get alerts without coding or DIY tinkering.

1 Like

as @JohnLincoln stated the CD machine has RS232 and ethernet interfaces
you should be able to get information from the machine manufacturer on how to monitor the machine using these interfaces
some time ago I was involved in a similar project with two hundred + knitting machines
information was sent over ethernet to a central database server reporting operator, job status, faults, etc

Great advice :ok_hand:

Thank you everyone.
I really appreciate all the responses.
Once I have done a little more research I will come back and provide an update :+1: