
Originally Posted by
bison_bloke
I have two inputs: start/stop button and a 'selector switch' which I already have working with that if statement you see above.
I have three outputs: two servos that I need to 'bounce' independently of each other. I need them to simulate the somewhat random movements that a passenger in a car would experience whilst driving. The third input is for vibration, this is just an unbalanced DC motor - np.
I also want to run a countdown timer so that it gets turned of after 20mins.
So now that my project is exactly half done

, which way do I head?
Hi, BB
Just missing : is both servos position given by a unique " selector pot " ( 6 positions , if I have correctly understood ) , so both servos receive same driving pulse ???
Alain
For the Heading ...
I'd propose you a " system clock " @ 50 Hz ... with a timer interrupt ( very, very simple kind of interrupt ). And as 20 mins = 60000 " ticks " @ 50 Hz ... it's done
If you think to it, tasks are done in a linear way and the whole sequence is repeated @ 50 Hz ...
so, just let me an hour to open the '690 Datasheet ( never worked with this chip to the day ) ...
Last edited by Acetronics2; - 26th March 2010 at 08:28.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks