i need a simple Arduino Program.
I have a photoelectric switch and want to measure the time between pulses, as a meter per hour convert (for example 25 meters per hour because between two signals is 15 seconds time). The photocell has a digital output.
Furthermore, I want to store a fixed value in the program (such as 20 meters per hour) and use a control function to correct the actual value so that the setpoint is reached. This should be done with two relays electric motor. I want to be able to influence the rule strength and it must be ensured that both relays are never operated in parallel.
I will pay only after complete and correct completion.