Hello there, how are you all?
I need some help to create a "simple code" to apply on my company.
I want to evaluate the amount of time that my machine is producing something (Also know as "OEE"). I intend to use the following equipment's:
1) 01 Arduino, connected to my USB desktop port. 2) 01 sensor of presence (capacitive of laser type), to be my INPUT DEVICE
The approach that I figure out to use is:
a) If the sensor receive more then 15 pulses of signal on the next 10 seconds, then I need to get the Date and Time of this moment. Obs. The above subject will show me when my equipment started to produce my products
b) If the sensor receive less then 15 pulses of signal on the next 10 seconds, then I need to get the Date and Time of this new moment. Obs. The above subject will show me when my equipment stopped to produce my products
c) the ARDUINO must keep looping these algorithm without stop for any reason
d) If possible, the system exposed bellow shall have some "security protections", like "auto restart" (When the power is out and come back).
e) These information's shall be saved on a XLS (excel type) of my desktop, on the directory like "C:\"
Could you help me?