I´m a newbie, having received an Arduino with a basic code (30 lines) which I then modified to do a lot more than the original task. So, I am a beginner, understanding basic principles. I am also an experienced computer / PLC programmer, but not good with the Arduino hardware, yet this project seems an easy one for someone who is fluent on any Arduino (if you are local to Cleveland, Ohio, I don't mind contacting and compensating you for a joint hands on startup).
Here is what I need and my ideas:
I work at a 3 football field long facility. We have about 30 machines we want to connect on this project.
The goal is to detect if the machine is ON or OFF.
The detection process will be simple: When an operator RUNS it, the operator will press an existing "GREEN / RUN" button at the machine. When the operator stops, the operator will press an existing "RED / STOP" button at the machine.
I plan on having each of these existing buttons also hardwired to an Arduino (UNO or MEGA... pls let me know) analog input pins.
The RUN button will send an analog signal (3.3V) to the Arduino's A1 (analog input 1) pin.
The STOP button will send an analog signal (3.3V) to the Arduino's A2 (analog input 2) pin.
When A1 goes HIGH (true, bit "1"), A2 will be LOW (false, bit "0"). In the Arduino's code, I will also start a logical timer ("timer1) when RUN is pressed, and set the "timer2" to ZERO
Similarly, when A2 goes HIGH (true, bit "1"), A1 will be LOW (false, bit "0"), and in the Arduino's code, I will start a logical timer ("timer2) when STOP is pressed, and set the "timer1" to ZERO
This part is "easy" for me. Now comes what I don't know and need help with:
How can I send "write" this info WIRELESSLY OVER a long distance (900 MHz / 2.4 GHz) to a computer listening somewhere?
What hardware do I need?
How do I wire / connect?
Code snipet so I can read and then go from there? (I am fluent on several languages... been around programming since 1972, and have programmed several PLCs)
What do I need at the desktop computer "listening" far away?
Note - All these machines are stand alones. None of them are connected to the web / internet. due to security reasons. Each machine will have its own Arduino mounted on its panel and I can easily provide the power to the arduino. The wiring to the A1 and A2 analogs is not an issue. Issue is where do I go from here?
Ultimately, what is needed is to know is if the machine is running, and for how long it is running, and similarly, if it is stopped / idle / not running, for how long it has been that way. This will enable us to remotely see what's going on and then take the necessary action (send support ... either maintenance, QC, supervisor, setup personnel, etc)
Thanks in advance for any help you can offer.
Best regards,
Andry