Change & Store ESP32 WiFi credentials in EEPROM without uploading code

  Рет қаралды 22,960

Electronics Innovation

Electronics Innovation

Күн бұрын

Project Page: electronicsinn...
@PCBWay Get 10 PCBs at just $5 on www.pcbway.com/
PCB Assembly @PCBWay at just $30 with free shipping on www.pcbway.com...
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/Electron...
Visit Electronics Innovation.com for more Tutorials, Tips, Projects, and How It Works videos:
electronicsinno...
Like my page on Facebook: / electroniczinnovation
~-~~-~~~-~~-~
Please watch: "I AM IRON MAN | DIY Arc Reactor"
• how to make iron man a...
~-~~-~~~-~~-~

Пікірлер: 49
@s.husain6125
@s.husain6125 3 жыл бұрын
How to do same with app made using mit app inventor sir
@printshopautomation9814
@printshopautomation9814 3 жыл бұрын
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.
@hrbembedded_craft
@hrbembedded_craft Ай бұрын
Thank you for information
@s.husain6125
@s.husain6125 3 жыл бұрын
Great sir please make video on how to update credentials using mit app inventor created app
@printshopautomation9814
@printshopautomation9814 3 жыл бұрын
Yes!
@0124akash
@0124akash Жыл бұрын
Hindi me b bana diya karo vdo....kuch samajh me to aae
@akshaygodase8067
@akshaygodase8067 4 жыл бұрын
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 4 жыл бұрын
How?
@akshaygodase8067
@akshaygodase8067 4 жыл бұрын
@@shubhamsen4572 using BluetoothSerial library and android app
@shubhamsen4572
@shubhamsen4572 4 жыл бұрын
@@akshaygodase8067 do you have saved code on github
@akshaygodase8067
@akshaygodase8067 4 жыл бұрын
@@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.
@electronic7979
@electronic7979 4 жыл бұрын
Helpful video
@CraftPreneur
@CraftPreneur 3 жыл бұрын
Thanks for this!
@hlozano32
@hlozano32 4 жыл бұрын
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
@electronicsinnovation
@electronicsinnovation 4 жыл бұрын
Yeah, we can do that using "if defined"
@Pulkz
@Pulkz 3 жыл бұрын
Your Website isn't working
@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?
@ibrahimaldagher2435
@ibrahimaldagher2435 Жыл бұрын
Awesome
@chinthaladayananda2191
@chinthaladayananda2191 4 жыл бұрын
Very useful Video sir
@dakshkalucha5408
@dakshkalucha5408 2 жыл бұрын
Please suggest if i can do the same in micropython???
@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.
@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.
@tomazis100
@tomazis100 2 жыл бұрын
Hi GREAT VIDEO!! How can we center the web page in the middle of the monitor? Thanks in advance!
@adinajoshisatyavardhan6543
@adinajoshisatyavardhan6543 Жыл бұрын
Can u provide same for esp8266 please which helps me a lot sir
@ruellarobson
@ruellarobson 3 жыл бұрын
I would like to know if this is possible for esp32Cam? thank you
@anilkumarmaurya5388
@anilkumarmaurya5388 3 жыл бұрын
Is this possible with MIT app inventor? , pls make video on this topic as many of them are waiting
@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!
@WistrelChianti
@WistrelChianti 4 жыл бұрын
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...
@bigdahaut
@bigdahaut 3 жыл бұрын
great tutorial ! God bless you
@electronicsinnovation
@electronicsinnovation 3 жыл бұрын
Thank you for the support☺️.
@jameshughes8481
@jameshughes8481 3 жыл бұрын
Thanks for showing this technique!
@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
@darshanpanchal3046
@darshanpanchal3046 2 жыл бұрын
yes same logic as this
@vinothkannan1570
@vinothkannan1570 2 жыл бұрын
awesome man, cool
@shsftech3792
@shsftech3792 3 жыл бұрын
Nice video thank you!
@chinmoytahbildar3278
@chinmoytahbildar3278 2 жыл бұрын
Nice tutorial
@mdtusharabdullah7070
@mdtusharabdullah7070 3 жыл бұрын
Thanks
@eduardpopov4165
@eduardpopov4165 3 жыл бұрын
Thank you !!!
@littlebearkidschannel
@littlebearkidschannel 3 жыл бұрын
Cheppanu 😂😂😂 cheppanu brother
@electronicsinnovation
@electronicsinnovation 3 жыл бұрын
😂
@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?
@Ravikumar-oe2wx
@Ravikumar-oe2wx 3 жыл бұрын
My code is not working can you help
@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.
The day of the sea 😂 #shorts by Leisi Crazy
00:22
Leisi Crazy
Рет қаралды 2,2 МЛН
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26
отомстил?
00:56
История одного вокалиста
Рет қаралды 7 МЛН
Стойкость Фёдора поразила всех!
00:58
МИНУС БАЛЛ
Рет қаралды 3,9 МЛН
The day of the sea 😂 #shorts by Leisi Crazy
00:22
Leisi Crazy
Рет қаралды 2,2 МЛН