Notifications
Clear all

ESP32-Cam not responding after successful compiling and download  

Page 2 / 2

drjoelleon
(@drjoelleon)
Eminent Member
Joined: 1 month ago
Posts: 38
Topic starter  

The error was the Brownout notice


ReplyQuote
DaveE
(@davee)
Eminent Member
Joined: 1 month ago
Posts: 45
 

@drjoelleon Hi Joel,

Sorry to hear you are having more problems. It could be the ESP-Cam board you have is very marginal, which will be a nightmare.

If it is any consolation, I am having a nightmare sending this reply - this is the third time of trying - once due to my PC crashing and second time when the forum software lost the whole second version...GRrrrrr!

The 'starting' configuration I would recommend is:

  1.  your separate 5V supply to the 5V input terminal of the ESPCam board, and of course the 0V return line between supply and the ESP Cam board. This should provide the power feed, which will be reduced to 3.3V by the ESP CAM board onboard regulator to feed the ESP chip, etc. Please note these wires should be as short as possible.
  2. Set your FTDI board to 3.3V operation, and connect Tx, Rx and 0V lines between the FTDI board and the ESP-CAM board. (Note you do not need to connect 3.3V or 5V lines from FTDI card.)
  3. Assuming you left the ESP-CAM board programmed with the CameraWebServer code, then the 'programming jumper on the ESP CAM board (pins 3 & 4) should not be connected.
  4. Power up the ESP card (5V supply on).
  5. Open the Arduino monitor window
  6. Press reset on ESP CAM board
  7. Hopefully see boot status messages on screen, through to reporting IP address.

If the ESP CAM is not programmed, then obviously step 3 and step 4 should be replaced by

  • Connect programming jumper on ESP CAM board.
  • Power up ESP card (5V supply on)
  • Upload code form Arduino program, checking there are no error messages in the status window. From memory it reports hash matches twice.
  • remove programming jumper
  • continue from 4. onwards

Good luck, let me know how you get on!


ReplyQuote
drjoelleon
(@drjoelleon)
Eminent Member
Joined: 1 month ago
Posts: 38
Topic starter  

@davee 

I will not have an external power supply other than the Powered USB hub. I’ll have to wait until it comes hopefully in a few days. I think I’ll get the real AI Thinker board within 2 weeks. 
mill keep you up to date 

Thanks


ReplyQuote
DaveE
(@davee)
Eminent Member
Joined: 1 month ago
Posts: 45
 

@drjoelleon Hi Joel,

  Ah, sorry I thought you had a 5V supply.

  If you want to try something else in the meantime, do you have a voltmeter?

  If so, you might like to see if the interface voltage jumper on your FTDI card affects the 5V output ... (ie does it reduce to 3.3V). 'In theory' it shouldn't, and it doesn't on mine, but it is possible the card has been designed such that it does...

Also, not all USB cables are 'created equal', and neither are all USB outputs on PCs. If you have any alternate ones, they might be more helpful.

And looking on the web, some people have improved their plight by adding capacitors between 5V and 0V inputs .. something like 100nF (ceramic) and 10 microfarad (could be electrolytic or ceramic)  in parallel, though the exact values aren't critical.

Best wishes, Dave


ReplyQuote
drjoelleon
(@drjoelleon)
Eminent Member
Joined: 1 month ago
Posts: 38
Topic starter  

I do have a voltmeter and will try to get information on the correct pins.

thanks again


ReplyQuote
drjoelleon
(@drjoelleon)
Eminent Member
Joined: 1 month ago
Posts: 38
Topic starter  

I connected the voltmeter to the hand and power supply coming out of the FTDI board. Using both the USB power hub and my computer, the voltmeter read about 3.4. So the power supply is good. I even checked the 5 volt jumper on the FTDI board and it produced 5+ volts.

it must be the esp32-cam board. I have 3 that have the same issue.

until I get the real AI Thinker, I’ll try to modify the code for the LED and maybe work out the housing and power supply on the boat using the existing board. If it fails, no big deal.

I’ll keep you up to date and thanks again for all your help. 
By the way, where are you located?


ReplyQuote
DaveE
(@davee)
Eminent Member
Joined: 1 month ago
Posts: 45
 

@drjoelleon Hi Joel, Thanks for your reply.

The check I had in mind was to see if you could get 5V power to the ESP CAM board (from the FTDI board), whilst the jumper was set at 3.3V. That is the Tx and Rx signals between the two boards would still be in the 0-3.3V range, but the power feed to the ESP board would be 5V, going to the 5V pin input on the ESP board. Can you confirm that was the case?

Meanwhile, I hope you can make good progress in organising the rest of the project. Clearly, a solid power supply is top of the list. Although the average current taken by the ESP board is probably modest, the short term transients are probably quite high, say 2A, so that E=IR can take its toll on the voltage actually arriving at the chip if 'R' is significant.

Unfortunately I haven't treated myself to a scope yet, so I can't give you any real figures, but 2A transient has been mentioned elsewhere and doesn't surprise me. If it's any consolation, desktop processors can exceed 100W peak demand, and they usually work at 3.3V and less  (e.g. 1.8V), so a simple W=IV will show the current peaks they can require!

I would allow for putting some extra capacitors at the power input to the ESP board. I am hoping the cable from your power supply to the ESP board in your final project will be short. If not, some extra precautions may be needed.

I am based near Gloucester, England (UK). Where are you?

Best wishes and good luck, Dave.


ReplyQuote
drjoelleon
(@drjoelleon)
Eminent Member
Joined: 1 month ago
Posts: 38
Topic starter  

@davee

if I understand you correctly:

my Powered USB hub delivers 5volts to the FTDI. I set the jumper on the FTDI board to 5volts. I connected toe FTDI VCC to the 3.3 pin of the esp32-cam board. 
result: I did not work. It did erase the installed program so I put the connector back on the 5v pin and recompiled and installed the program and it works fine.

 


ReplyQuote
DaveE
(@davee)
Eminent Member
Joined: 1 month ago
Posts: 45
 

@drjoelleon Hi Joel,

 I am delighted you got it working, but sorry I am not clear about the setup you are using. I suspect my confusion may centre around us having different FTDI boards. So taking it a step at a time..

"my Powered USB hub delivers 5volts to the FTDI." ... That I would expect .. so moving on ..

The 'single pin' connections on my FTDI card are labelled:

  • 5V
  • 3V3
  • TXD
  • RXD
  • GND

In addition, my card has jumper which can be put in either '5V' position or '3V3' position.

---------------------------------------------------------------------

The arrangement I was suggesting was connecting the FTDI to ESP CAM as follows: 

FTDI CARD                                                   ESP CAM card

  • 5V      .................................................... Pin 5V  (next to reset button)
  • 3V3   ........not connected
  • TXD  ......................................................Pin U0R
  • RXD  ......................................................Pin U0T
  • GND  ..................................................... Gnd

The jumper is in the '3V3' position.

Is your configuration the same or different?

 

Best wishes and thanks for your patience, Dave

 


ReplyQuote
drjoelleon
(@drjoelleon)
Eminent Member
Joined: 1 month ago
Posts: 38
Topic starter  

@davee

with the jumper in the 3.3 position and the pin to 5v it did not work.

Back to the 5 v pin and jumper.

I have another endeavor:

I want to use the ESP32-cam as a Soft Access point but ,as usual I am having trouble compiling.

1. Error, expected initializer before 

     Void start WifiServer();

since this sketch is using 2 different loops do the share the same void setup(){  and are the const and #define listed together?

where can I read about the syntax errors?

thanks

Joel


ReplyQuote
DaveE
(@davee)
Eminent Member
Joined: 1 month ago
Posts: 45
 

@drjoelleon Hi Joel,

Sorry, to my limited grey cell, your 3.3V vs 5V experience doesn't make sense. I'll park my confusion for now!!

As for your software question, I am not sure there is an easy answer as to where to read about syntax errors. Of course, Google can sometimes help with a particular phrase, etc.  In principle, they are supposed to be self explicit ... though of course, that is a wild exaggeration... Compiler syntax errors are better than they used to be ... I recall an Algol (1960's) compiler that had a favourite one, that amounted to 'You have an error somewhere in your program ... but I don't know where' ... but even now they often report the wrong line of code... so always look back up the program a bit if it's not obvious on the reported line.

I have to admit I am only just feeling my way with Arduino, which has been designed to hide much of the complexity, but that also seems to mean that when you need to dig deeper, you have dig through the complexity shields and I have only just started ..

Where did you got "Void start WifiServer();" ? I know C++ has lots of 'tricks' I am not yet familiar with,  and that maybe one, but perhaps if I could see it in context, I can dig a little deeper.

Best wishes, Dave


ReplyQuote
drjoelleon
(@drjoelleon)
Eminent Member
Joined: 1 month ago
Posts: 38
Topic starter  

@davee

ill try to attach the file


ReplyQuote
Page 2 / 2