Reply to topic  [ 1 post ] 
ESP-07 ESP8266 Serial Wifi Module (HCMODU0107) 
Author Message
Site Admin

Joined: Sun Aug 05, 2012 4:02 pm
Posts: 633
Post ESP-07 ESP8266 Serial Wifi Module (HCMODU0107)
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 to request data from a server anywhere in the world 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 (115200 baud default) commands. The ESP8266-07 also features an on-board ceramic antenna as well as uFL connector allowing an external antenna to be connected (see item HCWILS0001).


Please Note: This module operates at 3.3V only. If interfacing to a 5V microcontroller level shifters should be used. For a suitable USB adapter see item HCMODU0051 Silicon Labs CP2102 3.3V USB to UART Serial Interface module.



Image

SKU: HCMODU0107
Module: ESP-07
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
EN (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 pin to GND via a pull-down resistor.

GPIO15....GND (LOW)


AT Commands:

Default baud rate is 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 115200 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 1856, room 16
tail 0
chksum 0x63
load 0x3ffe8000, len 776, room 8
tail 0
chksum 0x02
load 0x3ffe8310, len 552, room 8
tail 0
chksum 0x79
csum 0x79

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

rlŽ‚rlŒžâŒb ü
Ai-Thinker Technology Co. Ltd.

ready



Set the mode to client:
AT+CWMODE=1


Response:
OK


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"

Response:
OK
AT+CWJAP="YOURSSID","YOURPASSWORD"

WIFI CONNECTED
WIFI GOT IP

OK

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

Response:
CONNECT

OK


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

Response:
OK
>

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.


Disclaimer: Libraries, example code, and diagrams are provided as an additional free service by Hobby Components and are not sold as part of this product. We do not provide any guarantees or warranties as to their accuracy or fitness for purpose.

Descriptions and diagrams on this page are copyright Hobby Components Ltd and may not be reproduced without permission.


Wed Oct 05, 2016 9:56 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

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:  
cron
Thank you to phpBB.com & phpBB.ro.
Design created by Florea Cosmin Ionut.
© 2011 All contents of this site are © Hobby Components LTD