ESP-07 ESP8266 Serial Wifi Module (HCMODU0107)

Espressif Systems ESP8266 wireless microcontroller (Wifi) development boards and accessories
Post Reply
admin
Site Admin
Posts: 866
Joined: Sun Aug 05, 2012 4:02 pm

ESP-07 ESP8266 Serial Wifi Module (HCMODU0107)

Post by admin » Wed Oct 05, 2016 9:56 am

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.

Edionel
Posts: 1
Joined: Sun Jul 23, 2023 3:24 pm

Re: ESP-07 ESP8266 Serial Wifi Module (HCMODU0107)

Post by Edionel » Sun Jul 23, 2023 3:28 pm

I have an arduino uno r3 with its ethernet shield module and the esp-07 coupled to it, how can I program this complete proto so that the esp provides wifi and when I connect to its wifi, I can access a pc connected to the uno through a lan connection to see the query system in local mode served by the latter through xampp. It's a student project, can you help me?

Post Reply

Return to “ESP8266”