ESP32 with PIR Motion Sensor using Interrupts and Timers

ESP32 with PIR Motion Sensor using Interrupts and Timers

Rui Santos

5 лет назад

82,979 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@sahilmansoori3511
@sahilmansoori3511 - 18.07.2023 16:17

Can I connect this sensor with any other ESP32?

Ответить
@intheshell35ify
@intheshell35ify - 24.05.2023 02:08

Lets not block code, lets poll!!!! Huh?

Ответить
@barbarasales1745
@barbarasales1745 - 23.02.2023 13:47

Rui o meu não está a dar... ajuda-nos

Ответить
@manish63316
@manish63316 - 25.01.2023 05:45

code error 🙏

Ответить
@sarjananganggur5546
@sarjananganggur5546 - 05.01.2022 18:20

Apakah anda bisa membantu saya untuk mengkoneksikan sensor pir ke database mysql

Ответить
@EricOnYouTube
@EricOnYouTube - 13.12.2021 23:11

Woohoo. It works! :) Thanks. I put mine on G13, though.

Ответить
@bgable7707
@bgable7707 - 13.10.2021 19:05

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.

Ответить
@gibo588
@gibo588 - 22.12.2020 22:00

You can also use Ticker() library which works with millis() non blocking.

Ответить
@amelliamendel2227
@amelliamendel2227 - 22.12.2020 07:28

can you wake it from sleep when motion is detected?

Ответить
@vigatex
@vigatex - 07.06.2020 14:21

Hi,

Can the PIR sensor as a wake up input to a board in deep sleep please?

Ответить
@alexmorales1997
@alexmorales1997 - 30.03.2020 14:53

VERY VERY VERY USEFUL, I RLY LIKED IT!!!!

Ответить
@Smart3DPT
@Smart3DPT - 05.03.2020 01:55

Olá boa noite com um esp consigo accionar um servo 9g através do movimento?

Ответить
@eduardomanusse2904
@eduardomanusse2904 - 02.09.2019 12:16

excellent

Ответить
@alessandromaltese7578
@alessandromaltese7578 - 21.06.2019 21:42

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?

Ответить
@reiniervanderbrugge5023
@reiniervanderbrugge5023 - 18.02.2019 00:58

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?

Ответить
@mrdanker6756
@mrdanker6756 - 31.01.2019 01:33

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

Ответить
@Techonsapevole
@Techonsapevole - 02.01.2019 01:38

Thanks, can you wake up the ESP in deep sleep via PIR ? Can you provide an example?

Ответить
@hafzamhasan8532
@hafzamhasan8532 - 04.12.2018 05:19

can i use the same esp32 to add in servo motor in ur other tutorial, ? how ?

Ответить
@bobapthorpe
@bobapthorpe - 13.10.2018 05:41

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.

Ответить
@norsuhaila4188
@norsuhaila4188 - 26.09.2018 17:02

Can i know how the wires are installed between nodes with pir

Ответить
@markroles7304
@markroles7304 - 14.08.2018 21:16

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?

Ответить
@aprenderinvestirpt
@aprenderinvestirpt - 09.08.2018 17:40

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)

Ответить
@eriklaken1025
@eriklaken1025 - 03.08.2018 21:20

Perfect, thank you.

Ответить
@quaternion-pi
@quaternion-pi - 03.08.2018 18:47

Great tutorial. What happens if an interrupt is called while the program is executing in the interrupt function? Does it interrupt the interrupt function?

Ответить
@davebeckham5429
@davebeckham5429 - 03.08.2018 18:22

Excellent information. Thanks, Rui.

Ответить
@MeinElektronikHobby
@MeinElektronikHobby - 03.08.2018 13:30

... thanks for more information about the ESP family.

Ответить