You are on page 1of 1

one circle means:

1)Motor1 start or is alredy started


2)wait for LDR to become HIGH from LOW which is its normal state.
3)When this happen, stop motor1 imediately and start motor2.
4)then wait for IR sensor to become LOW from HIGH which is its normal state.
5)When this happen, stop motor2 imediately.

THIS IS THE COMPLETE CIRCLE and it counts as one in the counting indicators.
So when a circle finish, adds one to the apropriate indicator.

So we have two modes. Auto and manual.


1) Auto mode means to start the circles from any position the system currently is
until it finishes which means that limit switch2 is trigered.
At auto mode the buttons "start" and "stop" are about controling the complete
circles.
If during the last circle the limit switch2 is trigered, then cancel the last
circle
and start reseting the system which means that the system is finished and the
motor1 should
start running counterclowise until the limit switch1 is trigered.

2) Manual mode instead of starting and finishing uknown number of circles unlti it
finishes,
you can edit the exact number of circles and execute it.
Beside that there is no difference betwen modes in how they manipulate the circles
complition.

So either manual or Auto mode, "start" means to start the circles from any position
the system currently is until it finishes which means that limit switch2 is
trigered.
buttons "start" "pause/continue" "stop" are about controling the complete circles.
If during the last circle the limit switch2 is trigered, then cancel the last
circle
and start reseting the system which means that the system is finished and the
motor1 should
start running counterclowise until the limit switch1 is trigered.

So when any "start" button is pressed, the system should start the circles until
the limit switch2 is triggered.
That means that the system is finished and the motor1 should start running
counterclowise until the limit switch1 is trigered.

So Limit swith1 and switch2 are guarding the system to not exceed the mechanical
left(start) and right(end) limits.

Switch1 is the far left limit (start) and Switch2 is the far right limit (end).

so when we press the "reset press" button: Cancel last circle (if not finished) and
start the motor1 counterclowise
until the limit switch1 is trigered.

You might also like