could anyone give me a hint how to store the value so i can compare it with a setpoint?
How big is the value? Will if fit in a byte, and int, a long?
type name = value;
where type is byte, int, long, unsigned long, etc., name is the name of the variable, and value is the value to be stored in the variable.
How are you measuring the time between the pulses?
Don't worry i am taking the necessary safety precautions such as clutch and brake switches and a fuse puller
I'm thinking that if you have to ask a question this basic that you are no where near ready to be designing a cruise control.