• 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

How to use ESP32 with power bank and be able to upload updates at same time?

Q&A Forum › How to use ESP32 with power bank and be able to upload updates at same time?
0 Vote Up Vote Down
William Lucid asked 5 months ago

Would like to use a power bank with access to recharge, power ESP32, and be able to upload sketch updates.

OTA is not an option.  I understand you can not use Vin and USB at same time without damaging ESP32.

Trying to avoid opening project box every time a update is available or need to recharge the power bank.

 

William

7 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 months ago

Hi.
What do you mean by “OTA is not an option”.
Regards,
Sara
 

0 Vote Up Vote Down
William Lucid answered 5 months ago

Good Morning Sara,

Project is a child’s game with no WIFI.  Will be moved between different networks,  There will be no one to configure WIFI credentials.

Regards,

William

0 Vote Up Vote Down
Anthony Hill answered 5 months ago

I’ve read different things about using USB and Vin ( i.e. 5V) at the same time.  Whether it will work or cause damage depends on the actual ESP32 board that you are using.  The boards with a proper design have diode isolation between the power from the USB port and the 5V power from Vin.  So you can use either or both at the same time with no worries.  it’s the poorly designed boards with no isolation between the USB 5V pin and the Vin pin that can cause issue.  It won’t damage the actual ESP32 chip buy it might fry either your 5v power supply or the USB port in your computer.

tl;dr : check the schematic to ensure that USB 5V and Vin are diode isolated and go ahead if they are.

0 Vote Up Vote Down
William Lucid answered 5 months ago

Not supported by my device; still looking…

Regards,
William

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

Hi.
Sending updates wirelessly without connecting to a network is kind of a challenge. At the moment, I’m not aware of a solution for that. Let me know if you find something interesting.
Regards,
Sara

0 Vote Up Vote Down
William Lucid answered 5 months ago

HI Sara,

Re-reading the documentation for Tzapu’s WilFiManager; found  an additional command for the WiFiManager object:

wm.setConfigPortalTimeout(30); //Timeout in seconds –set to 30 seconds for testing

Command when used; allows Timeout of the Configuration Portal to close without entering WiFi credentials, while still having the ability to setup a network before Configuration Portal closes from timeout.

The problem was not having someone available every time anew network was encountered.  When firmware update is available and someone can enter network credentials; will be able to use WiFiManager, Update function.

Just what what is needed!   Tested in project; works perfectly!

Sara, you may mark as resolved, thanks for the forum!

Best Regards,
William

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

That’s great!
Thanks for sharing your findings.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
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.