Change & Store ESP32 WiFi credentials in EEPROM without uploading code

แชร์
ฝัง
  • เผยแพร่เมื่อ 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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 48

  • @jameshughes8481
    @jameshughes8481 2 ปีที่แล้ว

    Thanks for showing this technique!

  • @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.

  • @CraftPreneur
    @CraftPreneur 3 ปีที่แล้ว +2

    Thanks for this!

  • @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 2 ปีที่แล้ว

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

  • @tomazis100
    @tomazis100 ปีที่แล้ว

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

  • @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.

  • @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!

  • @s.husain6125
    @s.husain6125 3 ปีที่แล้ว +2

    How to do same with app made using mit app inventor 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...

  • @ruellarobson
    @ruellarobson 2 ปีที่แล้ว

    I would like to know if this is possible for esp32Cam?
    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

  • @electronic7979
    @electronic7979 3 ปีที่แล้ว +1

    Helpful video

  • @bigdahaut
    @bigdahaut 3 ปีที่แล้ว +1

    great tutorial ! God bless you

  • @giancarlotammacco5347
    @giancarlotammacco5347 ปีที่แล้ว

    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?

  • @dakshkalucha5408
    @dakshkalucha5408 ปีที่แล้ว

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

  • @chinmoytahbildar3278
    @chinmoytahbildar3278 2 ปีที่แล้ว

    Nice tutorial

  • @eduardpopov4165
    @eduardpopov4165 3 ปีที่แล้ว

    Thank you !!!

  • @anilkumarmaurya5388
    @anilkumarmaurya5388 3 ปีที่แล้ว

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

  • @vinothkannan1570
    @vinothkannan1570 2 ปีที่แล้ว

    awesome man, cool

  • @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

  • @mdtusharabdullah7070
    @mdtusharabdullah7070 3 ปีที่แล้ว

    Thanks

  • @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.

  • @ibrahimaldagher2435
    @ibrahimaldagher2435 ปีที่แล้ว

    Awesome

  • @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

  • @Pulkz
    @Pulkz 2 ปีที่แล้ว

    Your Website isn't working

  • @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.

  • @raghubabukamarajugadda7550
    @raghubabukamarajugadda7550 3 ปีที่แล้ว

    Cheppanu 😂😂😂 cheppanu brother

  • @0124akash
    @0124akash ปีที่แล้ว

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

  • @Ravikumar-oe2wx
    @Ravikumar-oe2wx 3 ปีที่แล้ว

    My code is not working can you help

  • @smarthomeconsultant
    @smarthomeconsultant 2 ปีที่แล้ว

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

  • @Marc-mp6lf
    @Marc-mp6lf 2 ปีที่แล้ว

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