ESP-12 (ESP8266) wireless WIFI transceiver (HCMODU0077)

Wireless and wired modules including Bluetooth, Ethernet, and IR kits.
Post Reply
admin
Site Admin
Posts: 866
Joined: Sun Aug 05, 2012 4:02 pm

ESP-12 (ESP8266) wireless WIFI transceiver (HCMODU0077)

Post by admin » Thu Feb 19, 2015 1:01 pm

Image

Order yours here

Image

This amazingly priced wireless module allows any microcontroller to connect to a 802.11b/g/n wireless network. This in turn provides your microcontroller project with the ability or request data from a server anywhere in the word via a suitable WiFI connection. Control of the module couldn't be simpler as it comes pre-flashed with a serial application allowing it to be controlled via simple 'AT' serial (9600 baud default) commands.

Please Note: This module operates at 3.3V only. If interfacing to a 5V microcontroller level shifters should be used.


Image

SKU: HCMODU0077
Module: ESP-12
Device: ESP8266MOD
Frequency: (ISM): 2.4GHz
Power: +25dBm
Supported Wifi: 802.11 b/g/n
Operating voltage: 3.3V
Min Current (Sleep): 10mA
Max current (connected to 802.11b network): 215mA



Image

Image

VCC.........3.3V
GND........0V
CH_PD.....Power down pin. Connect to 3.3V for normal operation

Additionally to configure the module to accept AT commands you should connect the following pins to GND/VCC

GPIO0......VCC (HIGH)
GPIO2......VCC (HIGH)
GPIO15....GND (LOW)



AT Commands:
Default baud rate is 9600 baud. All commands must be terminated with both a cartridge return <CR> and line feed <LF>

Image



Example website request:
Open up a serial terminal connection to the module with a baud rate of 9600 BAUD

Reset the module so that it is in a known status:
AT+RST

Response:
ü!¤§æÇ!ÿ1ä)}ôÊõ
[Vendor:www.ai-thinker.com Version:0.9.2.4]

Set the mode to client:
AT+CWMODE=1

Response:
change

List available WiFi networks:
AT+CWLAP

Response:
+CWLAP:(4,"HCTest",-61,"xx:xx:xx:xx:xx:xx",1)
+CWLAP:(4,"HCWLS",-53,"xx:xx:xx:xx:xx:xx",8)

OK


Connect to your access point:
AT+CWJAP="YOURSSID","YOURPASSWORD"

Respose:
OK

Open a TCP connection to a website:
AT+CIPSTART="TCP","google.co.uk",80

Response:
OK
Linked

Request a page (number of bytes includes a CR & LF):
AT+CIPSEND=30

Response:
>

The '>' signifies that the module is now expecting 30 bytes of data including a CF & LF

Send a GET request for the page:
GET http://www.google.co.uk/

The module will now return the result of the request followed by an OK



Basic Server Example:
Open up a serial terminal connection to the module with a baud rate of 9600 BAUD

Reset the module so that it is in a known state:
AT+RST

Set the mode to both client and access point:
AT+CWMODE=3

The module should now be visible to any wifi client such as a PC, tablet or smart phone with a default SSID of 'ESP_9D66BF' as an open wifi network. Connect to this network with your WiFi client.

Allow multiple connections:
AT+CIPMUX=1

Enable as server accepting connections on port 80:
AT+CIPSERVER=1,80

The default address (gateway) of the module will be 192.168.4.1
Open a browser on your client and go to this address. You should now see your browsers request appear in the terminal window. To send a basic response:

Tell the module we are sending 26 bytes of data (including a CR+LF)
AT+CIPSEND=0,26

Module will responds with a '>'

Send the following:
<body>Hello World</body>

The text hello world should now appear in your clients browser.

Close the connection:
AT+CIPCLOSE=0

john_m0ers
Posts: 12
Joined: Fri Feb 28, 2014 10:21 pm

Re: ESP-12 (ESP8266) wireless WIFI transceiver (HCMODU0077)

Post by john_m0ers » Sat Jul 11, 2015 9:30 am

Hi, I received my modules yesterday thank you.
Only today have I had chance to really look at them, and the first thing I noticed was the pin spacing.
Do you know if they're 2mm pitch, my ruler is fifty years old!
Thanks john

andrew
Site Admin
Posts: 1374
Joined: Sun Aug 05, 2012 4:15 pm

Re: ESP-12 (ESP8266) wireless WIFI transceiver (HCMODU0077)

Post by andrew » Sat Jul 11, 2015 2:07 pm

Yes they are 2mm metric pitch.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

RogerL
Posts: 9
Joined: Mon Apr 14, 2014 7:56 pm

Re: ESP-12 (ESP8266) wireless WIFI transceiver (HCMODU0077)

Post by RogerL » Mon Aug 10, 2015 10:02 pm

Hi Andrew,
I finally got round to trying out one of the modules I bought earlier this year. I got through the 3 blog tutorials OK, but had a problem when I tried to connect to the unit from my Windows 7 laptop when it was configured as a server. The module was displayed in my list of network connections with good signal strength, but Windows said it couldn't connect to it. I was able to connect with a Windows 8.1 laptop OK, so it doesn't look like a problem with the module. Is this something you have come across before?

andrew
Site Admin
Posts: 1374
Joined: Sun Aug 05, 2012 4:15 pm

Re: ESP-12 (ESP8266) wireless WIFI transceiver (HCMODU0077)

Post by andrew » Tue Aug 11, 2015 7:55 am

I'm afraid I haven't seen that problem. I take it that it's failing at the password authentication process? A few simple things to try if you haven't already:

With the module set up connect to it using your windows 8.1 computer to confirm it is set up correctly and without resetting the module disconnect and then try to connect with your windows 7 computer. This will at lease confirm that you have the module configured correctly.

Try setting a simple 6 character password on the module.

Checking the network and sharing center to see if it has saved the connection and if so deleting it from there.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

RogerL
Posts: 9
Joined: Mon Apr 14, 2014 7:56 pm

Re: ESP-12 (ESP8266) wireless WIFI transceiver (HCMODU0077)

Post by RogerL » Tue Aug 11, 2015 9:42 am

Thanks Andrew. I have already tried the Win 8.1, then Win 7 check without any joy, so I am pretty sure the hardware setup must be OK. I will try the other ideas and let you know how I get on.

Windows isn't very helpful as regards telling me why its failing --- it just suggests I try turning my router off until all the light have gone out and then turning it on again!

Falesh
Posts: 1
Joined: Fri May 01, 2015 3:25 pm

Re: ESP-12 (ESP8266) wireless WIFI transceiver (HCMODU0077)

Post by Falesh » Mon Nov 23, 2015 11:17 pm

Am I able to use HCARDU0011 to program it or does the HCARDU0011 RX/TX output at 5v?

Cheers!

andrew
Site Admin
Posts: 1374
Joined: Sun Aug 05, 2012 4:15 pm

Re: ESP-12 (ESP8266) wireless WIFI transceiver (HCMODU0077)

Post by andrew » Tue Nov 24, 2015 8:44 am

I'm afraid the Tx and Rx pins on an HCARDU0011 are at 5V logic levels and the ESP-12 Tx & Rx are not 5V tolerant. So you will either need to level shift them or just use a CP2102 (HCMODU0051) which uses 3.3V levels.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

Post Reply

Return to “Wireless / Wired”