Help with a basic code

Hello ,

This is not difficult but one question on something that is not clear. Since you are intending to turn this on and off with a power switch and it is not staying on all the time real-time events will not be possible. The Arduino does not have a battery backed RTC and so its timers would start at zero every time it was turned on and it would have no idea about the passages of time whilst it was turned off. If the loss of real-time is not important then you can store the last known position and direction into the EEPROM and then when the next 5 minute event takes place after power up advance it from there.

I can write it for you very quickly. Do you have a budget in mind for this.

Cheers Pete.