yeah it works
so in this video i'm going to show you
how to control an led
via wi-fi with an esp32 or esp8266 let's
get started
so first of all connect two jumpers to
your esp32 or esp8266
connect one jumper to the ground and
another jumper to d2
then take a led and connect the positive
of the led which is the longer leg
to d2 and the shorter leg to ground then
connect the esp32 or esp8266 to your
computer via
a micro usb cable
and then go to this website called
io.adafruit.com and then create an account
there
when you're logged in hit feeds and then
view all and then hit actions and then
create a new feed. Name it something
i'm going to name it "led" it
then go to that feed then hit dashboards
view all then hit actions again and
create a new dashboard and
give it a name i'm gonna name it led and
then go to that dashboard
hit this plus button and then select
this toggle block
and then connect this toggle block
to the
led feed by hitting this check box and
then go to next step
and then here in the button on text
it should be one and the button
off should be zero and then create block
so now we are kind of done setting up
the
internet side of the project then go to
arduino.cc
and then go to software
and downloads and then download the
arduino ide i
have it already downloaded and then open
the arduino ide
after you have opened the arduino ide go
to file, preferences
and here in the additional boards
manager urls
paste this link if you're using the
esp8266
and then hit ok after this go to
tools, board
and then boards manager
and then here type in esp8266 if you're
using esp8266
and then hit install
so after you've installed it. In the esp8266
board from the boards manager you'll go
to
tools port and then esp8266 boards
and then select the one that you are
using for example
nodemcu 1.0 esp-12e module
and then you will just select the com
port where esp board is connected and
then you'll upload the code that i'm
going to show you
if you're using a esp32 it will be a
similar process
and then i show you with the esp8266 so
instead of
the previous link you'll just paste this
link for the esp32 module
and then hit ok and then you'll go to
tools
board, boards manager and then you'll
type "esp32"
and then you'll just install this i have
it already installed
then you'll hit close and then you'll
select
the board, so esp32, select
the esp32 board that you're using.
I will select this
So now we need a library, the adafruit io library 0:03:32.799,0:03:37.440 so we'll go to manage libraries.
Sketch, manage libraries
and here we'll just type in "adafruit io"
and here "adafruit io arduino" yeah you will
download this i haven't updated it yeah
you will install this .
After that you'll go to file, examples,
down here go to adafruit io arduino and
then
"digital out" here in the led pin you'll
type the led pin that you're using
that should be D2. LED pin 2 here in
config.h you're going to put your
username
and your key of your adafruit io
account
So
i'll put that here,
don't share this, share the key with anyone
yeah in the website it says that it should be kept in a safe place.
it should be kept in a safe place.
your username
and here you put your wi-fi ssid meaning
your wi-fi
network's name and your wi-fi password
so the esp
board can connect to your wi-fi network
here between these two quotes
you'll put the name of the feed that you
created so in my case it's led
and then you'll just upload
and one thing if your board is not
uploading or you're having issues
hold down the boot button when you're
when it shows uploading
and then release it when it's at like
after a 100 percent and
yeah you should be fine then if you go
to the website and hit this
button, your led should turn on
yeah it works
it works
yeah it works if you like this video
please hit the like button
subscribe and share this and if you want
to support my work and help me make
videos like this
please go to my patreon
www.patreon.com/aymaanrahman05
and sign up for a membership. I would really appreciate your
support. Thank you very much for watching
see you in the next video and stay tuned
for more. thank you bye
bye good night good evening good morning
wherever you are
when you are watching this video bye see you
bye see you in the next video
bye