skiwithpete / sesamepi

25 stars 19 forks source link

control the motor for specific angle #1

Open 3073 opened 5 years ago

3073 commented 5 years ago

As I understand, the garage door opener motor should rotate several times until the door is fully open.
def trigger() : for i in pinList: GPIO.output(i, GPIO.LOW) time.sleep(0.5) GPIO.output(i, GPIO.HIGH) GPIO.cleanup() does it mean the delay time of 0.5 enough delay time until the door open fully? How do you make the motor to turn a specific degree only? like 30 degrees or 45 degrees only

skiwithpete commented 5 years ago

0.5 is sufficient for the trigger. The operation of the door happens entirely and automatically after the command is triggered.

This is different to say a light switch which only operates during an "on" state. In fact, it's more like operating a dishwasher... Press the button once and the dishwasher works to completion.

Make sense?

On Wed, Aug 21, 2019, 8:49 PM 3073 notifications@github.com wrote:

As I understand, the garage door opener motor should rotate several times until the door is fully open. def trigger() : for i in pinList: GPIO.output(i, GPIO.LOW) time.sleep(0.5) GPIO.output(i, GPIO.HIGH) GPIO.cleanup() does it mean the delay time of 0.5 enough delay time until the door open fully? How do you make the motor to turn a specific degree only? like 30 degrees or 45 degrees only

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/skiwithpete/sesamepi/issues/1?email_source=notifications&email_token=ACQAEDKFXDGIW527FN7IUALQFWL47A5CNFSM4IONJZEKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HGTN7FQ, or mute the thread https://github.com/notifications/unsubscribe-auth/ACQAEDIACMLIOCPBJ2F2WPTQFWL47ANCNFSM4IONJZEA .

3073 commented 5 years ago

your make sense . But how do I make the motor to rotate 52.2 degrees only ( for closing the valve) and then stop?