Simple Arduino esp8266 web server ESP-07 ESP-12

[et_pb_section admin_label="section"][et_pb_row admin_label="Row"][et_pb_column type="4_4"][et_pb_text admin_label="Text" background_layout="light" text_orientation="left" use_border_color="off" border_color="#ffffff" border_style="solid"]

Arduino esp8266 web server


To be able to host your own simple web server is easy all you need is the ESP8266 Serial WIFI Module and FTDI232 downloader here is a short description of both and a link on where to find it, An Arduino is not required at all and the ESP8266 board can be a stand alone board and it can be programmed with an FTDIboard. This blog is called Arduino esp8266 web server because you can also connect the wifi module to an Arduino if you want.
[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row admin_label="row"][et_pb_column type="1_2"][et_pb_image admin_label="Image" src="//www.botshop.co.za/wp-content/uploads/2016/11/esp8266-serial-wifi-model-esp-07-wifi-module-wifi-modules-rm0072-by-robomart-120-500x500.jpg" show_in_lightbox="off" url_new_window="off" use_overlay="off" animation="off" sticky="off" align="left" force_fullwidth="off" always_center_on_mobile="on" use_border_color="off" border_color="#ffffff" border_style="solid"] [/et_pb_image][/et_pb_column][et_pb_column type="1_2"][et_pb_text admin_label="Text" background_layout="light" text_orientation="left" use_border_color="off" border_color="#ffffff" border_style="solid" custom_margin="75px|||"]
The ESP8266-03 is a highly integrated chip designed for the needs of a new connected world. It offers a complete and self-contained Wi-Fi networking solution, allowing it to either host the application or to offload all Wi-Fi networking functions from another application processor.
[/et_pb_text][et_pb_button admin_label="Button" button_url="https://www.botshop.co.za/product/esp8266-wifi-wireless-module-esp-12f/" url_new_window="off" button_text="Get It Here" button_alignment="left" background_layout="light" custom_button="off" button_border_width="0" button_border_radius="0" button_letter_spacing="0" button_use_icon="default" button_icon_placement="right" button_on_hover="on" button_letter_spacing_hover="0"] [/et_pb_button][/et_pb_column][/et_pb_row][et_pb_row admin_label="Row"][et_pb_column type="1_2"][et_pb_image admin_label="Image" src="//www.botshop.co.za/wp-content/uploads/2016/11/Ftdi.jpg" show_in_lightbox="off" url_new_window="off" use_overlay="off" animation="off" sticky="off" align="left" force_fullwidth="off" always_center_on_mobile="on" use_border_color="off" border_color="#ffffff" border_style="solid"] [/et_pb_image][/et_pb_column][et_pb_column type="1_2"][et_pb_text admin_label="Text" background_layout="light" text_orientation="left" use_border_color="off" border_color="#ffffff" border_style="solid" custom_margin="40px|||"]
The USB to TTL serial adapter is based on the high quality and very popular FTDI FT232RL chipset and is an excellent way to connect TTL serial devices to a PC through a USB port and to program your Arduino esp8266 web server.
Unlike most USB to TTL serial adapters, this adapter supports both 5V AND 3.3V operation! Simply set the jumper as required to choose between 5V and 3.3V as labelled on the board.
[/et_pb_text][et_pb_button admin_label="Button" button_url="//www.botshop.co.za/?post_type=product&p=25598&preview=true" url_new_window="off" button_text="Get It Here" button_alignment="left" background_layout="light" custom_button="off" button_border_width="0" button_border_radius="0" button_letter_spacing="0" button_use_icon="default" button_icon_placement="right" button_on_hover="on" button_letter_spacing_hover="0"] [/et_pb_button][/et_pb_column][/et_pb_row][et_pb_row admin_label="Row"][et_pb_column type="4_4"][et_pb_accordion admin_label="Accordion" use_border_color="off" border_color="#ffffff" border_style="solid"] [et_pb_accordion_item title="Part List"]
  • ESP-07/ESP-12
  • FTDI232
  • Jumper Wires
  • 10k Resistor
  • Pushbutton
  • Breadboard
  • Stripboard
  • 2x 8 pin headers male or female
[/et_pb_accordion_item][et_pb_accordion_item title="STEP1: Easy Access "]
Grab your headers, ESP module and strip board. Cut the Stripboard down to size (8 columns 9 rows), if you are unsure of the size you could cut it afterwards, remember to break the tracks at the bottom. Next solder thin wire to the pads of the ESP module and put each wire in its own column and solder it to the stripboard, next solder in the headers.
This part is very important because the pitch of the module's pads are 2mm and that of the breadboard are 2.54mm.
esp8226-bb-2
20161123_111632
[/et_pb_accordion_item][et_pb_accordion_item title="STEP2: Wiring"]
Now we will look at the wiring of the module, something to keep in mind is that the module runs on 3.3V. The above mentioned Downloader(FTDI232) supports both 3.3V and 5V, switch the jumper to 3.3V if your downloader does not support 3.3v, you will have to add a voltage divider as shown below, below that is the wiring of the module.
untitled
esp8226-bb-1
 
[/et_pb_accordion_item][et_pb_accordion_item title="STEP3: Setup"]
First things first, if you haven't got the ESP8266 library yet see "Getting Started with NodeMCU with ESP8266 part 1" on how to install the library, next we have to select the type of board and programmer.
First select the Board Tools -> Board -> Generic ESP8266 Module
board
Next select the programmer Tools -> Programmer -> USBasp
programmer
Now you can connect your programmer and select the port. We're using an example sketch for this tutorial. File -> Examples -> ESP8266WebServer -> Hello Server. Remember to add your SSID and password.
 
[/et_pb_accordion_item][et_pb_accordion_item title="STEP4: Uploading"]
Now that the wiring is done and your Arduino IDE is set up, we can start the upload process.Uploading to the ESP module could become tricky if you don't keep track so pay close attention.
Firstly  connect GPIO 0 to ground.
gpio0
If the ESP module is powered up already, press the reset button you installed on the breadboard (pushbutton), if not just power up the module via the USB cable to the downloader. This process boots the  module up in program mode. You can now upload you sketch to the module. Once upload is complete, disconnect GPIO 0 from ground and reset it again, this allows the module to operate as normal. and your upload is complete.
 
[/et_pb_accordion_item][et_pb_accordion_item title="STEP5: Connecting To The Server"]
When you are done uploading and you have removed the wire from GPIO 0 you can open your "Serial Monitor". It should display the connection status after it has connected to your WIFI-router it will display an IP-address, copy this IP and enter it into your browser's search bar. It will display the words "Hello From ESP8266" in your browser window.
[/et_pb_accordion_item] [/et_pb_accordion][/et_pb_column][/et_pb_row][/et_pb_section]
The cookie settings on this website are set to 'allow all cookies' to give you the very best experience. Please click Accept Cookies to continue to use the site.
You have successfully subscribed!
This email has been registered