8 years, 9 months ago.

Wi-Fi Module

Hi guys,

I'm using LPC1768 with ESP8266 WiFi module(https://developer.mbed.org/components/ESP8266-01/) but it didn't work.

I assign Pins' mapping which refers this page (http://randomnerdtutorials.com/getting-started-with-esp8266-wifi-transceiver-review/).

Does anyone have successful experience? Please share to me, thanks.

P.S. I built a socket server to receive data from clients, and it works when I use a linux-based machine as a socket client. However, it couldn't receive data when I use mbed as the client. Can I check whether the mbed connects to wi-fi successfully?

1 Answer

8 years, 9 months ago.

You could try here:

https://developer.mbed.org/users/star297/code/ESP8266-configuaration-baudrate/

and

https://developer.mbed.org/users/star297/code/ESP8266-WEB-Mbed-Controller/

This does work and will get you going although quite basic, no plugs and sockets or whatever you want to call it. The firmware on this device is by far from good so do not expect much from it. Works well with a single connection but does get screwed up if you attempt several simultaneous connections. The transmit buffer is 2k so larger pages or data will need to split and sent sequentially. But there again what would you expect for the money.

Accepted Answer

Thank you for reply. I try your " ESP8266-configuaration-baudrate ", but it can't receive any responses. Maybe my pin mapping was wrong? Could you tell me which board you used and how do you assign the pins. Thanks again.

posted by Charles Liou 16 Jul 2015

Mainly using the Freescale KLxx boards, but should work on any.

If you are using the LPC1768 Mbed board, try using this serial port:

Serial esp(p9, p10); tx, rx

Other serial ports will also work. Don't forget the MCU tx, rx goes to the ESP rx,tx. (swap over).

Also try a different ESP8266 baud rate some ESP's are 115200, the example is set to 9600, your ESP may be on 115200 so you will need to change the setting (line 21) to esp.baud(115200);

Otherwise double check the connections to the ESP and make sure you have at least 300mA (3.3v) supply to the ESP. The Mbed 3.3v supply may not be stable enough to power the ESP that will cause it to 'lock out' when starting.

posted by Paul Staron 16 Jul 2015

My problem fixed. The problem is that the wifi module is broken. I change to other wifi module and it works now. Thanks for help.

posted by Charles Liou 17 Jul 2015