Комментарии:
Can I connect this sensor with any other ESP32?
ОтветитьLets not block code, lets poll!!!! Huh?
ОтветитьRui o meu não está a dar... ajuda-nos
Ответитьcode error 🙏
ОтветитьApakah anda bisa membantu saya untuk mengkoneksikan sensor pir ke database mysql
ОтветитьWoohoo. It works! :) Thanks. I put mine on G13, though.
ОтветитьEXCELLENT as always! I obviously had viewed this video in the past because the "thumps-up" was highlighted. Yet, watching it another time, helped solidify ISR's again. Your walking through the code line by line, explaining clearly the components use and their value brings these all together.
ОтветитьYou can also use Ticker() library which works with millis() non blocking.
Ответитьcan you wake it from sleep when motion is detected?
ОтветитьHi,
Can the PIR sensor as a wake up input to a board in deep sleep please?
VERY VERY VERY USEFUL, I RLY LIKED IT!!!!
ОтветитьOlá boa noite com um esp consigo accionar um servo 9g através do movimento?
Ответитьexcellent
ОтветитьThank you very much :D!!
I dont know but when the pir triggered and the LED turned on and again off, it takes to much time, until the pir detects again some motion. How can I change it?
Hi i have used your sketch and tutorial and it works perfect with one pir sensor.... but i want to use 3 pirsensors to activate a relay do you know how this can be done?
ОтветитьESP32 actually uses freeRTOS (your code runs within it), which handles threading & tasks. You can split code up into different tasks on the same core, and use delay, only having it affect one task, while the others continue to run
ОтветитьThanks, can you wake up the ESP in deep sleep via PIR ? Can you provide an example?
Ответитьcan i use the same esp32 to add in servo motor in ur other tutorial, ? how ?
ОтветитьI believe the variables startTimer and lastTrigger should specified as volatile since they are updated in the ISR. Also, you probably shouldn't call Serial.println() in the ISR; I understand you're doing it for the purpose of illustration, but in production code you want the the ISR to execute extremely quickly with as few side effects as possible. Otherwise this is a good, straighttforward example of how to use external interrupts; thanks for posting it.
ОтветитьCan i know how the wires are installed between nodes with pir
ОтветитьIf you are having the motionSensor pin configured as a pullup, how will then the interrupt ever catch a rising signal since it will always be high then?
ОтветитьBoas rui, estou a pensar utilizar esse sensor (PIR) com um esp-01 mas preciso que seja com bateria. Que bateria/pilhas aconselhas e como fazias o circuito de modo a que durasse mais ou menos 4-6 meses ou ate mesmo um ano ? (Estando em deepsleep)
ОтветитьPerfect, thank you.
ОтветитьGreat tutorial. What happens if an interrupt is called while the program is executing in the interrupt function? Does it interrupt the interrupt function?
ОтветитьExcellent information. Thanks, Rui.
Ответить... thanks for more information about the ESP family.
Ответить