• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Unit 2 Motion detector with picture capture and email

Q&A Forum › Category: ESP32 › Unit 2 Motion detector with picture capture and email
0 Vote Up Vote Down
Thomas Dimm asked 3 months ago

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?
 

Question Tags: esp32 cam motion
15 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

Hi.
Can you copy the complete error code?
Regards,
Sara

0 Vote Up Vote Down
Thomas Dimm answered 3 months ago

Could not copy from serial screen had to manually transcribe:

Error sending Email, code 250, text: 2.1.5 OK k2120020a05620a143500b006cbc6e1478csm7603925qkj.57 – gsmtp

 

 

0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

Hi again.
Are you using the email password?
Or did you create an app password for this specific project?
Regards,
Sara

0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

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.

  1. Open your Google Account.
  2. In the navigation panel, select Security.
  3. Under “Signing in to Google,” select 2-Step Verification > Get started.
  4. Follow the on-screen steps.

After enabling 2-step verification, you can create an app password.

  1. Open your Google Account.
  2. In the navigation panel, select Security.
  3. Under “Signing in to Google,” select App Passwords.

Create app password gmail

  1. 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.

Generated App password gmail

 

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

0 Vote Up Vote Down
Thomas Dimm answered 3 months ago

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!

0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

Ok.
Then, let me know the results.
Regards,
Sara

0 Vote Up Vote Down
Thomas Dimm answered 3 months ago

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
 

0 Vote Up Vote Down
Thomas Dimm answered 3 months ago

https://mail.google.com/mail/u/0?ui=2&ik=2796ed14fd&attid=0.1&permmsgid=msg-a:r8523909484250970672&th=1853b4f3ad9e9da3&view=att&disp=safe&realattid=1853b4f2b04dd8c2c161

0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

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

0 Vote Up Vote Down
Thomas Dimm answered 3 months ago

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.

0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

Hi again.
But what happened exactly?
Regards,
Sara

0 Vote Up Vote Down
Thomas Dimm answered 3 months ago

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.

0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

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

0 Vote Up Vote Down
Thomas Dimm answered 3 months ago

That’s great!  How do I get a copy of the update when its ready?

0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

We’ll send an email to all people that have purchased the eBook.
So, you’ll be notified via email.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.