Reply to topic  [ 3 posts ] 
ESP-01 (ESP8266) wireless WIFI transceiver (HCMODU0085) 
Author Message
Site Admin

Joined: Sun Aug 05, 2012 4:02 pm
Posts: 670
Post ESP-01 (ESP8266) wireless WIFI transceiver (HCMODU0085)
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 commands.

To interface to the module a standard 0.1" pitch 8 pin header is pre-soldered proving access to power, serial, and configuration pins.

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


Image

SKU: HCMODU0085
Module: ESP-01
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

CH_PD......VCC (HIGH)
GPIO2......VCC (HIGH)
RST.........VCC (HIGH)



AT Commands:
Default baud rate is 9600 baud (EDIT 07/03/11: Current shipped modules have an updated firmware which now defaults to 115200 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:
OK

ets Jan 8 2013,rst cause:1, boot mode:(3,6)

load 0x40100000, len 1396, room 16
tail 4
chksum 0x89
load 0x3ffe8000, len 776, room 4
tail 4
chksum 0xe8
load 0x3ffe8308, len 540, room 4
tail 8
chksum 0xc0
csum 0xc0

2nd boot version : 1.4(b1)
SPI Speed : 40MHz
SPI Mode : DIO
SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000

rlŽ‚rlÌÿ
Ai-Thinker Technology Co.,Ltd.

ready



Set the mode to client:
AT+CWMODE=1

Response:
change

List available WiFi networks:
AT+CWLAP

Response:
+CWLAP:(4,"dcoda",-86,"9c:97:26:ce:b3:d9",1)
+CWLAP:(4,"HCWireless",-53,"00:24:a5:bd:10:d4",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


Fri May 22, 2015 10:41 am
Profile

Joined: Wed Sep 09, 2015 2:36 pm
Posts: 2
Post Re: ESP-01 (ESP8266) wireless WIFI transceiver (HCMODU0085)
I bought one of these modules a few weeks ago but only got it out of its bag in the last few days.

It did not work.

It seems that your pinout diagram above is totally incorrect. It shows the antenna to the right of the pins.
My module seems to work fine if I install it with the connections as above but with the module rotated 180 deg so that the antenna is on the left.

I got the correct pinouts here.

...R


Wed Sep 09, 2015 2:50 pm
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 707
Post Re: ESP-01 (ESP8266) wireless WIFI transceiver (HCMODU0085)
Sorry about that. It does look like the labels got reversed. I've updated it with a corrected version.

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Thu Sep 10, 2015 7:39 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Thank you to phpBB.com & phpBB.ro.
Design created by Florea Cosmin Ionut.
© 2011 All contents of this site are © Hobby Components LTD