-
Notifications
You must be signed in to change notification settings - Fork 26
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
HC-SR501 and ESP32-CAM does not work simultaneously with SD card #116
Comments
It would appear that you are using pins used by the SD module. |
The example provided with library, use the onboard SD card reader in 1-bit mode.
The problem is due to how the pin has been configured to easily test the sketch: the input is tested as a simple button that closes towards GND, but normally the PIR sensors work in reverse generating a positive pulse every time an object is detected. If you set the PIN correctly and change the related if code block like this it should work as expected.
|
@cotestatnt And another problem was discovered - after some time of work (2-5 minutes), the connection with the server is lost Work is restored only after the module is rebooted |
Example ESP32-CAM-PIR.ino does not work with motion sensor HC-SR501. When the sensor is connected at the initialization stage, the error "SD Mount Failed" occurs. And accordingly further the code works incorrectly. More precisely, motion is detected, but photos are not sent to telegrams. The error "Failed to open file in writing mode" falls out in the serial port. If the sensor is turned off during the start of the module, then everything is OK. At rest, the output of the sensor is 0, and as I understand it, this prevents the SD card from being initialized. Can this be fixed somehow?
The text was updated successfully, but these errors were encountered: