Quote Originally Posted by mackrackit View Post
I am most likely missing something, but what about this
Code:
ForwardM:
LCDOUT $FE,1
LCDOUT $FE,$80,"OPENING BLIND"
LCDOUT $FE,$C0,"DAYLIGHT"
FOR i = 1 TO 500 ' ?? will equal 10 revolutions ??
portb = %1100
pause speed
portb = %0110
pause speed
portb = %0011
pause speed
portb = %1001
pause speed
NEXT i
GOTO Main
I tried this code but the motor also seems to rotate without stop.

Quote Originally Posted by Melanie View Post
Unless you are counting steps (and have limits preset), I see no way of detecting end of travel of your blind, which means you can drive it beyond it's stop position in either open or close mode.
I thought it's possible to count the motor step (limit the step). Is there anyway to achieve this?

I've thinking again, how about use the inside sensor, double the sensor to set the stop position. When the blind is open and the 2nd sensor which is located in the room detect the light, it will stop the motor. This is meant the 1st sensor use to start the motor and 2nd sensor use to stop the motor.

Same thing goes to close operation. if the outside = 0 and the inside = 0 the blind will close.

to summary this,

open operation:

1st sensor = 1 (motor start) then 2nd sensor = 1 (motor stop)

close operation:

1st sensor = 0 (motor start) then 2nd sensor = 0 (motor stop)

My question is, how can i use any label that prevent the motor spinning like the stop/pause function?