I tried this code but the motor also seems to rotate without stop.
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?


 
						
					 
			 
			 
			 
					
					

 
 
		 Originally Posted by mackrackit
 Originally Posted by mackrackit
					
 
				
				
				
				
			

Bookmarks