Timeline for How can I stop my servo looping when my sensor doesn't detect movement?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 12, 2021 at 18:58 | comment | added | timemage | It sounds like you should "accept" this answer. | |
Feb 11, 2021 at 17:58 | comment | added | Nathan Ghali | I pasted the code, works like a charm, thanks a lot to you two guys !! | |
Feb 11, 2021 at 14:43 | comment | added | timemage |
"long as the condition is true" or maybe "as long as the input remains LOW ". I'm going to delete my previous comments above (and this one later), because with your good clarifications they're going to look more out of sync.
|
|
Feb 11, 2021 at 14:37 | history | edited | Dave X | CC BY-SA 4.0 |
added 314 characters in body
|
Feb 11, 2021 at 14:30 | comment | added | Dave X |
If pir is LOW, the OP's speed-controlled code will keep cycling between 180 and zero again and again.
|
|
Feb 11, 2021 at 14:06 | history | answered | Dave X | CC BY-SA 4.0 |