Change & Store ESP32 WiFi credentials in EEPROM without uploading code

Поделиться
HTML-код
  • Опубликовано: 20 сен 2020
  • Project Page: electronicsinnovation.com/cha...
    @PCBWay Get 10 PCBs at just $5 on www.pcbway.com/
    PCB Assembly @PCBWay at just $30 with free shipping on www.pcbway.com/quotesmt.aspx
    In this article, we are going to walk through " how to Change #ESP32 WiFi credentials without uploading code from Arduino IDE", We will update WiFi Credential wirelessly and store the same credentials in the #EEPROM memory of the ESP32 using a really awesome library "EEPROM.h". We are going to develop an Arduino Program, Which First Reads the WiFi Credentials from the EEPROM, and tries to connect to that; If the WiFi is not available or there are no credentials stored in the EEPROM, ESP32 will Acts an Accespoint and creates a Hotspot which will allow us to connect and modify the WiFi credential. Then it connects to the freshly configured WiFi Credentials. It will only take a couple of minutes to go through these steps.
    So, without wasting time let's get started.
    Required Components:
    1. Breadboard amzn.to/2DZsesr
    2. ESP32 Module amzn.to/3a0TmmZ
    3. 10k Resistor amzn.to/30ZBuX1
    4. Push-button amzn.to/2ZVVnwC
    5. Connecting wires amzn.to/2ZlUD47
    6. Data Cable to Program ESP32. amzn.to/350FWXF
    =================================================
    Subscribe to Electronics Innovation
    bit.ly/ElectronicsInnovation
    Visit Electronics Innovation.com for more Tutorials, Tips, Projects, and How It Works videos:
    electronicsinnovation.com/
    Like my page on Facebook: / electroniczinnovation
    ~-~~-~~~-~~-~
    Please watch: "I AM IRON MAN | DIY Arc Reactor"
    • How to make IRON MAN A...
    ~-~~-~~~-~~-~
  • НаукаНаука

Комментарии • 48

  • @jameshughes8481
    @jameshughes8481 3 года назад

    Thanks for showing this technique!

  • @CraftPreneur
    @CraftPreneur 3 года назад +2

    Thanks for this!

  • @jinshamai2918
    @jinshamai2918 3 года назад

    It works! Thanks! can you please help to make this code shorter? the problem i got is that i can only add two to 3 pins to function as input/output to control appliances. Thanks! hoping to see another video update. cheers!

  • @shsftech3792
    @shsftech3792 3 года назад

    Nice video thank you!

  • @hlozano32
    @hlozano32 3 года назад +1

    I spend all day yesterday doing this (I did it for myself but I would like to see you video before) thanks.
    My code works for esp32 and esp8266

  • @chinthaladayananda2191
    @chinthaladayananda2191 3 года назад +1

    Very useful Video sir

  • @WistrelChianti
    @WistrelChianti 3 года назад

    This wasn't what I was expecting (figured it might be some IDE function for to writing direct to the EEPROM somehow - similar to how it is possible to write to the "file system" [of sorts]) but I learnt some useful stuff anyhow. Some impressively functionality in that webserver. Feel somehow the credentials are crying out for a data structure and a layer of abstraction for read/write but of course that would not make a good basic demo for beginners. I need to go read more on the EEPROM library and see what can be done...

  • @electronic7979
    @electronic7979 3 года назад +1

    Helpful video

  • @eduardpopov4165
    @eduardpopov4165 3 года назад

    Thank you !!!

  • @bigdahaut
    @bigdahaut 3 года назад +1

    great tutorial ! God bless you

  • @hayder.ismael
    @hayder.ismael Год назад

    thank you so much for this great tutorial. In other wifi managers the page to enter new wifi credential pop up automatically once it is connected to the ESP, so no need to find the IP address. just imagine in somewhere and you don't have your laptop. Is there any lins of code can enable this property? thanks.

  • @tomazis100
    @tomazis100 Год назад

    Hi GREAT VIDEO!!
    How can we center the web page in the middle of the monitor?
    Thanks in advance!

  • @chinmoytahbildar3278
    @chinmoytahbildar3278 2 года назад

    Nice tutorial

  • @akshaygodase8067
    @akshaygodase8067 3 года назад +2

    I could design code to accept wifi credentials with bluetooth and then connect to wifi still this was helpful. Thanks for this video.

    • @shubhamsen4572
      @shubhamsen4572 3 года назад

      How?

    • @akshaygodase8067
      @akshaygodase8067 3 года назад +1

      @@shubhamsen4572 using BluetoothSerial library and android app

    • @shubhamsen4572
      @shubhamsen4572 3 года назад

      @@akshaygodase8067 do you have saved code on github

    • @akshaygodase8067
      @akshaygodase8067 3 года назад

      @@shubhamsen4572 mail me on akshaygodase15@gmail.com.
      I can share with you

    • @akshaydasm.k9388
      @akshaydasm.k9388 3 года назад

      Esp already has that feature called bluefi. Or you can use the smart config example provided by espressif.

  • @mdtusharabdullah7070
    @mdtusharabdullah7070 3 года назад

    Thanks

  • @vinothkannan1570
    @vinothkannan1570 2 года назад

    awesome man, cool

  • @s.husain6125
    @s.husain6125 3 года назад +2

    How to do same with app made using mit app inventor sir

  • @anilkumarmaurya5388
    @anilkumarmaurya5388 3 года назад

    Is this possible with MIT app inventor? , pls make video on this topic as many of them are waiting

  • @dhavalshukla6615
    @dhavalshukla6615 2 года назад

    Hi, I am using ESP32 WROOM32D module and trying to read and store the read values from eeprom to ssid, pass in order to then connect to WiFi automatically. Here's my snippet: ssid+=char(EEPROM.read(addr)); which is in a for loop of course, but all I get in response are the inverted question marks. Sigh, what is it that I could be doing wrong? Any help will be appreciated.

  • @ruellarobson
    @ruellarobson 2 года назад

    I would like to know if this is possible for esp32Cam?
    thank you

  • @ibrahimaldagher2435
    @ibrahimaldagher2435 Год назад

    Awesome

  • @dakshkalucha5408
    @dakshkalucha5408 2 года назад

    Please suggest if i can do the same in micropython???

  • @giancarlotammacco5347
    @giancarlotammacco5347 2 года назад

    Nice work.... There is only one thing that i don't understand... everithing goes ok. but if i disconnect the wan line of my router (so Wifi is present) in serial plot it write "Connection Status Negative / D15 HIGH" and it will open the AP function! If i will re connect wan cable, the ESP32 it doesn't re connect, becouse is in AP mode... how can i avoid this?

  • @burhanuddinbhiwaniwala618
    @burhanuddinbhiwaniwala618 3 года назад

    GREAT VIDEO sir.... I was thinking is it possible to use Nextion display to enter WiFi credentials without hard coding or without creating a Soft AP

  • @adinajoshisatyavardhan6543
    @adinajoshisatyavardhan6543 Год назад

    Can u provide same for esp8266 please which helps me a lot sir

  • @s.husain6125
    @s.husain6125 3 года назад +1

    Great sir please make video on how to update credentials using mit app inventor created app

  • @printshopautomation9814
    @printshopautomation9814 3 года назад +2

    How is the access point ip address determined? Will it always be 192.168.4.1? How do users find it with out the serial monitor?

    • @poruatokin
      @poruatokin 2 года назад

      Late response, but you can use other techniques in the sketch to force connection with a static IP instead of relying on DHCP.

  • @Pulkz
    @Pulkz 3 года назад

    Your Website isn't working

  • @raghubabukamarajugadda7550
    @raghubabukamarajugadda7550 3 года назад

    Cheppanu 😂😂😂 cheppanu brother

  • @sunziv01
    @sunziv01 3 года назад

    To see the acces point you need to connect esp32 with laptop. Then what is the benifit of this process? Anyway you are connecting esp32 with laptop, then you can simply edit ssid and password from the code.

    • @electronicsinnovation
      @electronicsinnovation  3 года назад

      For the first time you are doing it
      From next time onwards, you can access the same with same IP which is already known to us.
      Or else, you can login to your home wifi admin panel and see the ip.
      In video, we will try to explain things as simple as possible. That doesn't mean we are so dumb to know about these issues.

  • @Ravikumar-oe2wx
    @Ravikumar-oe2wx 3 года назад

    My code is not working can you help

  • @Marc-mp6lf
    @Marc-mp6lf 2 года назад

    How can i change the password of esp32 ap wifi server?

  • @smarthomeconsultant
    @smarthomeconsultant 2 года назад

    Why it's just printing ?????? on serial monitor and there is no webserver. plz help

  • @0124akash
    @0124akash Год назад

    Hindi me b bana diya karo vdo....kuch samajh me to aae