Sunteți pe pagina 1din 7

technology workshop craft home food play outside costumes

Getting Started! ESP8266 Basic


by MichaelM223 on September 30, 2015

Table of Contents

Getting Started! ESP8266 Basic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Intro: Getting Started! ESP8266 Basic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 1: Download ESP8266Basic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 2: Hook up ESP in flashing configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 3: Run the flasher program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 4: Connect to the ESP8266 over wifi to configure it . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Step 5: Log in to esp8266 web interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Step 6: Hook up relay, esp and power supply to extension cord . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Step 7: Upload the control program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Step 8: And you are done. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

http://www.instructables.com/id/Getting-Started-ESP8266-Basic/
Intro: Getting Started! ESP8266 Basic
To get started you will need the following.

Parts

ESP8266 Module
3.3v power supplie (Available on ebay for less than $3)
Solid State relay. (I used a 40A)
Wire nut
DuPont wires
110v extension cable

Tools

wire cutters
arduino uno

Step 1: Download ESP8266Basic


Go to http://www.esp8266basic.com/download.html and get the latest version of ESP8266 Basic.

http://www.instructables.com/id/Getting-Started-ESP8266-Basic/
Step 2: Hook up ESP in flashing configuration
Hook your ESP8266 module up in flashing configuration as shown.

Step 3: Run the flasher program


Click the "Firmware Flash" button.

Wait for the flash to finish with out errors.

IF there are any errors check your wiring.

Reset the ESP8266 module with out GPIO 0 grounded.

http://www.instructables.com/id/Getting-Started-ESP8266-Basic/
Step 4: Connect to the ESP8266 over wifi to configure it
The module will attempt to connect to the last network it was connected to.

Because this module has never been connected before it will start its own access point.

Connect to the "ESP" access point

Step 5: Log in to esp8266 web interface


Goto http://192.168.4.1/edit in your browser.

You should see a screen that looks like this.

You can now use the edit area to type basic programs for the ESP8266.

Saving the program with no file name will make it the default program that is loaded upon restart of module likewise clicking the open button with out a program name
specified will open the default program.

http://www.instructables.com/id/Getting-Started-ESP8266-Basic/
Step 6: Hook up relay, esp and power supply to extension cord
Use the picture to hook up all the wires to the esp

Step 7: Upload the control program


go to the edit page on the ESP and past in the following program.
cls
Print “ESP8266 WiFi Solid State Relay”
print
Button “On” [on]
button “Off” [off]
button “Exit” [exit]
wait

[on]
po 2 0
Wait

[off]
po 2 1
wait

[exit]
end

Step 8: And you are done.


Hit the run link in the browser and start toggling your relay to your hearts content.

http://www.instructables.com/id/Getting-Started-ESP8266-Basic/
Related Instructables

ESP8266 WiFi How to use the CBDBv2 ESP8266 WiFi Easy ESP8266 ESP8266 wifi
relay switch by ESP8266-01 Evolution - plant irrigation WiFi Debugging (ESP01) IoT
EasyIoT pins by drmpf ESP8266 system by with Python by lamp by shinteo
Development EasyIoT jimk3038
Board meets
ARDUINO IDE!
by TrackerJ

http://www.instructables.com/id/Getting-Started-ESP8266-Basic/
Advertisements

Comments
1 comments Add Comment

seamster says: Sep 30, 2015. 8:13 AM REPLY


Very nice!

http://www.instructables.com/id/Getting-Started-ESP8266-Basic/

S-ar putea să vă placă și