mem:
Hi Samly_dixon, Its not clear on what you want to do and I did not see the code that you are trying to get working. Can you say more about exactly what you want to test
Mem,
Sorry for being unclear on what I want to test. Basically I want to count the durations of the running machine.
Our machine works every 15 minutes will work for 5 minutes. But it is not constant. It changes due to the usage. So I am developing a system to count the exact running time of the machine. like, how many minutes actually the machine operates.
so when the machine is in the work for one day I must be able to see how many hours the machine has been run actually..
mem:
time_t event = now();
// … some time later
long duration = now() – event; // the duration since the event in seconds
Thanks alot for this simple and beautiful idea. It works. Now I have to merge this duration coding with condition. When the machine is starting I have to call a event = now(); and when the machine goes off I need to call duration = now() - event;
Hope my merging will work,
Basically I am a beginner to arduino. It has been a interesting process for me,
Can you tell me how can I get the duration between a button switch on and off.?
Special thanks for your quick response.