Trying to figure out how I'd go about doing this. I am going to be using a pic12f675 using HI-TECH C. I am trying to create a program that will record the sequence of a single push button and then output that sequence to run a dc motor where the motor will run when the button was pushed in and stop when the button was not engaged. There will be up to 5 ON-OFF cycles with the ON portions being 1-10 seconds and the OFF portions being 1-10 seconds.
The problem is I am not 100% sure how to record the length of time the button is pushed in.
Does anyone know of any examples I can look at?
Thanks for your input.
The problem is I am not 100% sure how to record the length of time the button is pushed in.
Does anyone know of any examples I can look at?
Thanks for your input.