code compiles and loads no problem. when a pic is triggered the pic is uploaded to 80% or les and then I get a 250 error (all should be good error?) and no email arrives?
Could not copy from serial screen had to manually transcribe:
Error sending Email, code 250, text: 2.1.5 OK k2120020a05620a143500b006cbc6e1478csm7603925qkj.57 – gsmtp
Hi again.
Are you using the email password?
Or did you create an app password for this specific project?
Regards,
Sara
Create an app password for your sender email.
Create an App Password
An App Password is a 16-digit passcode that gives a less secure app or device permission to access your Google Account. Learn more about sign-in with app passwords here.
An app password can only be used with accounts that have 2-step verification turned on.
- Open your Google Account.
- In the navigation panel, select Security.
- Under “Signing in to Google,” select 2-Step Verification > Get started.
- Follow the on-screen steps.
After enabling 2-step verification, you can create an app password.
- Open your Google Account.
- In the navigation panel, select Security.
- Under “Signing in to Google,” select App Passwords.
- In the Select app field, choose mail. For the device, select Other and give it a name, for example ESP32. Then, click on Generate. It will pop-up a window with a password that you’ll use with the ESP32 to send emails. Save that password (even though it says you won’t need to remember it) because you’ll need it later.
Now, you should have an app password that you’ll use on the ESP32 code to send the emails.
Let me know if this solves the issue.
Regards,
Sara
Thanks Sara,
Yes I did all that re password/2 step a nd app password. At this point I am seeing intermittent success and suspicious that I have a bad esp so Ive ordered a new one…. We’ll see!
New development. While waiting for a new esp 32 cam chip to arrive I packaged everything ( would send a pic but have not figured out how yet) with a pc board and header for the esp and things started working –sort of–. Now i get an email with an attached picture but the picture is not complete!?
Pic of finished unit:
Link to email pic received:
https://mail.google.com/mail/u/0?ui=2&ik=2796ed14fd&attid=0.1&permmsgid=msg-f:1752942150594190160&th=1853b39935f9db50&view=att&disp=safe
Hi.
I couldn’t open your link.
But your issue can be related to one of the following:
- insufficient or not stable power supply can result in pictures of lower quality, grainy pictures, or in tones of green.
- the board is not close enough to your router and it can’t load the complete picture. Check if your board needs an external antenna (see this tutorial: https://randomnerdtutorials.com/esp32-cam-connect-external-antenna/). If it is set in a configuration for external antenna, you’ll need to connect one. Otherwise, you don’t necessarily need the antenna—see this picture:
Regards,
Sara
Discovered the hard way inputs on GPIO’s are limited to 3.3V. One would think that with a 5 volt input GPIO highs could be 5volts— nope.
So I put a momentary N/O switch in parallel with the PIR sensor to allow for triggering via push button. Worked great for a while and then I started having trouble. Triggering via the switch and or the PIR became intermittent. Thought I had a bad esp32 cam until I noticed that resetting the esp32 cam resulted in an email with a partial picture. Then after some on-line research I came across the warning against GPIO’s at more then 3.3volts. I assume that the 5 volt input to GPIO13 did some internal damage to the esp32 cam. Live and learn! Next step is to see how long this will operate powered by two 18650 batteries in parallel with a boost converter pumping the supply voltage up to 5 volts.
Ok.
Just so that you know, there have been some updates to the libraries that might interfere with some of the sketches we currently have.
We’re working on updating the eBook at the moment and testing all projects again to see what changes need to be made.
You can expect an eBook update in the second week of January.
Regards,
Sara