View All Posts
read
Want to keep up to date with the latest posts and videos? Subscribe to the newsletter
HELP SUPPORT MY WORK: If you're feeling flush then please stop by Patreon Or you can make a one off donation via ko-fi

Learn how to easily update an ESP32 over the air in this quick and exciting tutorial that uses Wi-Fi and a few lines of code to remotely update your device!

Related Content
Transcript

[0:01] hello everyone I want to do a quick
[0:05] video to show how easy it is to update
[0:08] and ESP 32 over the earth I’ve been
[0:13] using this a few projects recently where
[0:16] I’ve not had easy access to the USB port
[0:20] and updating I have a Wi-Fi has been a
[0:23] lifesaver so well this is the first it
[0:27] means to you the instruction will get
[0:29] Wi-Fi happen money so looks you know a
[0:37] set up initialize Wi-Fi so this is just
[0:45] the standard Wi-Fi setup so we do you
[0:50] begin and that we wait to actually be
[0:52] connected now the next thing we dilute
[0:55] the next opinion me Arduino over-the-air
[1:01] hand up and now you can see some really
[1:05] nice stuff with this so the first thing
[1:09] we’ll do is set the hostname so this
[1:13] will make a ESB 32 appear on our local
[1:18] network with a friendly name rather than
[1:21] an IP address nobody is actually wire up
[1:26] the Arduino over-the-air start method
[1:40] so here we can see that we can find out
[1:44] what’s being updated
[1:46] is it the sketch or the sniffs and then
[1:52] there’s also one end event so we can
[1:56] wire that up now obviously when you
[2:01] connected by Wi-Fi these serial prints
[2:04] which actually do anything we can also a
[2:08] wire up on progress event
[2:12] so in this one progress I’m going to
[2:17] turn the any gear off and on every time
[2:21] lead percent value changes and then
[2:25] there’s also an error event so this
[2:30] makes us detect failures during the
[2:33] update process and then finally we just
[2:40] need to tell the over-the-air system to
[2:45] actually start then the last thing in
[2:51] our loop we have to service right over
[2:54] the earth system by calling Audrina
[2:57] Luigi a handle so that’s basically it so
[3:02] let’s download this to our USB phase 2
[3:06] now if we go to tools underneath ports
[3:28] will now see that we have ESP test so we
[3:32] can now select this report you’ll see
[3:34] down here that the IDE says we’re now
[3:39] volunteer in USB module of this IP
[3:42] address now just to prove this actually
[3:46] works and I’ve disconnect the USB from
[3:50] the computer and I’ll power with a
[3:55] little USB power bank let’s change our
[4:02] frequency of writing so that we flash
[4:08] the image in a different pattern
[4:11] so now let’s then push this to our ESP
[4:16] device so you can see our ideas flashing
[4:26] as the newest collections downloaded and
[4:33] now you can see us running our new
[4:36] sketch
[4:36] it’s the LED is pulsing of a different
[4:40] frequency so let’s do that again
[4:44] let’s make this even shorter so it’s
[4:47] really obvious that it’s changed so you
[4:57] download is happening now reboot and you
[5:06] can see our LED is now flashing rapidly
[5:09] so this is a really nice way of pinning
[5:13] sketches onto your yes b32 device and
[5:17] it’s a really simple to set up and make
[5:20] work thanks for watching if you found
[5:23] this useful
[5:25] subscribe button thanks


HELP SUPPORT MY WORK: If you're feeling flush then please stop by Patreon Or you can make a one off donation via ko-fi
Want to keep up to date with the latest posts and videos? Subscribe to the newsletter
Blog Logo

Chris Greening

> Image

atomic14

A collection of slightly mad projects, instructive/educational videos, and generally interesting stuff. Building projects around the Arduino and ESP32 platforms - we'll be exploring AI, Computer Vision, Audio, 3D Printing - it may get a bit eclectic...

View All Posts