Hi all.
I have a circuit very similar to the example of a stepper motor run via switch.
it consists of two dc motors running through H-bridges with two switches for each (forwards and backwards).
What i am trying to do is run the motor for a maximum set period of time say five seconds. when the motor has run for say three seconds it wont run in that direction any more it would have to run in the opposite direction
I have got both motors going both ways on four switches but the second motor seems to change its position on the start point it should go back to where the sim started as being the retrospective start point
do I need to enable TWO timers for the count variables or can i just use the onetimer and have say "COUNT" as a master count variable then say "out" for one count and say "up" for another count and they will stay retrospective to there original start points? by comparing them against the "COUNT" variable if that makes sense
Any one got any ideas
Cheers
Allen
flowcode example (stepper motor 2)
Re: flowcode example (stepper motor 2)
Dont worry SOLVED IT.
You can use one timer and have two vars called count1 and count2 give each count a different value and away she goes
You can use one timer and have two vars called count1 and count2 give each count a different value and away she goes