-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
external PIR support on "AI Thinker ESP32-CAM" #1
Comments
Hi MrMate2, I can't add such feature (PIR and button) in the code because that is not a default feature. As for the restart command: I though about it. but enabling the sleep mode with an interval would make the ESP more or less same as reset every X number of mins. and then next command is to disable the sleep. Tell me if you want further elaborations. |
Dear Asmaklad, many thanks for Your reply! #ifndef CAMERA_PINS_H #if defined(CAMERA_MODEL_WROVER_KIT) #define Y9_GPIO_NUM 35 #elif defined(CAMERA_MODEL_ESP_EYE) #define Y9_GPIO_NUM 36 #elif defined(CAMERA_MODEL_M5STACK_PSRAM) #define Y9_GPIO_NUM 19 #elif defined(CAMERA_MODEL_M5STACK_WIDE) #define Y9_GPIO_NUM 19 #elif defined(CAMERA_MODEL_AI_THINKER) //Board definition "AI Thinker ESP32-CAM" #define Y9_GPIO_NUM 35 #define FLASH_LAMP_PIN 4 #elif defined(CAMERA_MODEL_TTGO_T1_CAMERA) // Board definition "ESP32 WROVER Module" #define Y9_GPIO_NUM 39 #define SDA_PIN 21 #define I2C_DISPLAY_ADDR 0x3c #else #if defined(FLASH_LAMP_PIN) #if defined(USE_OLED_AS_FLASH) |
yes the code is like what I advised. However, you will have to change it to the PIR PIN number that corresponds to your setup. it really depends on which PIN you chose for PIR. I recommend making a PULL _DOWN on the chosen PIN . like this circuit for example https://easyelectronicsproject.com/esp32-projects/esp32-cam-pir-motion-detector-with-photo-capture-1/ As for the button, looking back to it: I don't think I have implemented anything in the code for that. And yes , having pin 34 used twice is not correct. For the BOT to refresh the command list , you need to issue the command "/options" or "/start" in telegram. Or to avoid all of this hassle, if you really want to use PIR, order this board instead "ESP32 CAM TTGO T1 (google it)" |
All is done, now working perfect! |
Thanks for using the project. Please spread the word. |
Definitely, I will do my best to spread information about Your code among as many people as I can. With reference to this repository, of course!
For the moment, I dont have examples of my usage of Your code yet. My plan is to use 2-3 units, it in my house, to monitor movements of my children around the house when me and wife are away. To be sure that they are not doing nothing and lying on the sofa all day and watching tv... :) Believe me,Ias I was not able to do myself,I was searching for similar code long time, already about one year. I have seen nearly all videos on youtube with reference to esp32cam., I have read many articles, in English and Russian. The sources were numerous, but none was about code with" ALL IN ONE"
The code is great for my purposes. All the best! And many thanks for Your work! Best regards from Ukraine! |
Is it possible to specify more than 1 "AdminChatID", in order for my wife to control same from her phone? |
I am already working on these two features, but I am not finished yet :
|
@mrmate2
|
Good day,
is it possible to enable external PIR support on "AI Thinker ESP32-CAM", i.e. some GPIO pin to listen for PIR input, or at least to enable external physical button to activate photo capture?
If yes-then to make appropriate switch in telegram bot interface.
Your project is very good, but no motion detection for PIR "AI Thinker ESP32-CAM" is dissapointing...
Unfortunately my skills in coding are not yet sufficient.
Many thanks in advance.
Best regards from Ukraine!
P.S
just thoughts:
-"restart" button in telegram would be a good option
setting lapse time in secons instead of minutes also would be nice.
sometimes need photo every 20-30 sec...
The text was updated successfully, but these errors were encountered: