Mar-31-2018, 08:55 PM
Okay I just got back to the computer may not be able to stay long. I did the comment out this what I get motor does not start.
Output:Night
Close door
Drive motor
Night
Close door
Drive motor
STOP door closed
Night
Close door
Drive motor
Night
Close door
Drive motor
STOP door closed
STOP door open
STOP door open
STOP door open
Night
Close door
Drive motor
STOP door open
STOP door closed
Day
Open door
Start motor
STOP door open
STOP door closed
STOP door open
Traceback (most recent call last):
File "/home/pi/Desktop/virginburan.py", line 48, in <module>
if GPIO.event_detected(12): # bottom switch change to HIGH
KeyboardInterrupt
Then I tried the new script and motor starts but does not stop or changeOutput:Day
Open door
Start motor
Traceback (most recent call last):
File "/home/pi/Desktop/burannew.py", line 36, in <module>
print ("Current time %s" % now )
NameError: name 'now' is not defined
>>>
I will try work on it some more maybe later tonight or early morning again Thanks I do appreciate all the help I am definitely over my head