#33 ESP8266 WiFi Web Server, Arduino style - Introduction

preview_player
Показать описание
Using an ESP8266-based, Arduino-sized board for WiFi control of your environment is a great way to get into remote control, data-logging and so on.

Read the temperature of your greenhouse; turn on a fan in your home from your browser in the office... the possibilities are endless. All with a few lines of C++ code and a smattering of HTML (very easy).

This is just a quick(ish) intro into the world of WiFi control - I'll think of a Real World project in the near(is) future - unless you have some ideas? Drop them into the comments section below.

All PDFs and other links on how to set up these great boards can be found in the comments section below, including where I procured these devices.

-------------------------------------------------------------------------------------------------
The demo sketch can be found here, and I've included two PDFs that describe the boards in the video and the installation process:
-------------------------------------------------------------------------------------------------

As always, Thanks for Watching and do subscribe so you don't miss future videos that will help you get your project off the ground.

And my channel is here:
------------------------------------------------------------------
------------------------------------------------------------------
How can I remember this? Memory tip: "See" Ralph Bacon, geddit?
Рекомендации по теме
Комментарии
Автор

a truly brilliant video..i just got a few of these "8266" and i know nothing about html arr.. but this really helped/helps me understand a bit more how it all works.. so so pleased i found this.. top stuff sir....P.s pleased too see you back too :) in your new cave ( not jellous in anyway) lol.. :)

gazzacroy
Автор

Excellent Video Mate. Us arduinites like something unusual so a bit of HTML makes a nice change. Ralph - many thanks again.

alanpowell
Автор

Thanks a million! I have been sitting here, looking at my extensive collection of Arduino's and ESP8266's wondering why the hell I got them in the first place. I guess it was because of video's put out by others on this place but I would simply build something, play with it for awhile and then put it in a drawer for some other day. About the only things I have kept were some electronic thermometers one with Arduino and one with an ESP8266. I finally took the 8266 one apart for the screen but really regret that and may one day reassemble that one. Now I have decided that, until I put these to use, I am cutting the string to China where I buy all my devices, and simply play with the toys in the toy-box until I run out, or burn them up, as has happened a few times by inadvertently feeding them the wrong voltage for breakfast. Oh and now that Workers Comp, who has supported me since a damn traffic accident left me a disabled cop has declared me "Presumed Retired" and cut my pay in half, I can no longer afford even the cheap stuff from Banggood and Ebay. Oh well I have way to much crap as it is, but I am surely going to study your videos and see what I can build from your suggested projects. Again thanks a million, you will be among my favorites along with Big Clive and Julian Ilett.

JerryEricsson
Автор

Today i posted the query in Arduino forum about Interfacing Arduino +ESP8266 and LCD. I will go through the video and reply you. Thank you Sir.

keshavdk
Автор

For those that want to use the standard blink program to test their device you can change
from pin 13 to the onboard one which is located on D4.
int ledPin = D4;

PaulCavanagh
Автор

Good evening (for me) Ralph.
I want to get started on the ESP front and I'm wondering if an ESP32 could be used for my GPS project. I'm using a serial display :-( that requires pins I can't translate to the '32, but I'll learn more and more about them, thanks to your videos.

I just ordered an SPI screen from China. I think I'll need your help to make it work if it's not strait forward. LOL

Looking forward to talk to you soon, my Friend !

daniellachance
Автор

N00b question I hope someone can clarify : at 11:22 it's stated that Wemos D1 Rev.1 is 3.3v but there's also a pin for 5V. So if you use pin 5V then the you can connect 5v devices? Or is t his about the internal logic of the board operating at 3.3v and nothing to dow ith those 3.3V and 5V pins ... but then the 5V seems to be of marginal use if you can't connect it to anything on the board without a Level shifter?

BennyKleykens
Автор

Thirdly, the official WEMOS page on the D1 (Rev. 1 - retired) but from here you can also navigate to the Rev 2 version:

Also a link to a great ESP8266 Community Forum that covers every imaginable ESP8266-based question:

RalphBacon
Автор

This is a great video and the explanation was terrific, I have one question what if I want to access from internet? outside from my wifi, wich IP adress must I use?

WebstockXal
Автор

This is the URL need to add the ESP8266 series of boards to the Arduino IDE (in File > Preferences, Additional Boards Manager URLs) :


Secondly, here's a link to the PDF with English instructions on how to install those boards (using the above link):

RalphBacon
Автор

board wemmos d1 r1 and this are my settings



i got this error after i tried to conect the arduino to a java sofware intellij ide before that it was working just fine



warning: espcomm_sync failed

error sending the sketch
error: espcomm_open failed
error: espcomm_upload_mem failed

djlrsghkshdfoighsdfh
Автор

Hi Ralph. Teh link to the code is down. Can you please reload it or paste it here? Thanks. Very Nice video indeed,

mikespocket
Автор

Hi, Ralph, good video.
I have the same board (espduino) but i can´t make de webserver with this...

please can you give me de sample code ESP8266_WIFI_Simple ?
i dont see this in the coment area.
thanks.

jlgarciasosa
Автор



Detailed Overview of this project:

1. I decided to use ESP8266 12e node mcu due to its cheap price and wifi capabilities, r305 fingerprint sensor, and oled display 0.96".

2. So i was thinking about interfacing all of these and making a device which would connect to wifi network and ones a teacher scans his finger and chooses a class and subject, and than gives it to students to scan their fingers, it will display their name on screen whoever scans his finger, and ones all the class have scanned their fingers then it will send a mail to a mail id containing all the names of present students.


Its functioning:

2. ones the wifi is connected now it should check in which mode we are operating it, i.e we should design it in two modes, setup mode and running mode, in setup mode we should be able to enroll a fingerprint and give it a ID and name so that it store it, and in running mode we should just run it., ESP8266 will just check whether a button is pressed or not and decide which mode it is begin operated in.

3. Now ones the running mode is activated i.e button is not pressed. so it will ask for a fingerprint, if a teacher scans his finger than it will check and match it with the fingerprints of database, if it matches than it will let him select class and subject, ones it is selected than he can handover the module to the students.

4. Now students will scan their fingers, and device will display the name of students whose fingerprint matches on oled display, and side by side it will also save those names in a mail.


Future scope:
Now when the mail has been sent than the website can read that mail and mark the attendance of all those students who were present for that lecture, mail subject may include class/lecture/date which teacher had selected in the beginning. Even a android and iOs app can be developed where a student can check his attendance in real time.

So what are the improvements can you do in this and can it be done successfully? Can you help in developing this project?

ManishKumar-mgcg
Автор

Hi Ralph I have sent you an email, i hope you have the time to look at it soon
Thank you

leojode
welcome to shbcf.ru