Monday 4 December 2017

Getting Started with the ESP8266 (01)

Step 1: Wiring

I got a ESP-01 version of this module, which has 8 pins: VCC, GND, CH_PD, TX, RX, RST, GPIO0, and GPIO1. Wiring the module is not complicated and should be the same for all versions of this module:

  • VCC needs 3.3V
  • CH_PD has to be pulled-up (meaning it has to be connected to 3.3V as well)
  • GND is connected to FTDI’s GND pin
  • RX is connected to FTDI’s TX pin, because you want to create a loop: RX-> TX => RX -> TX
  • TX is connected to FTDI’s RX pin
  • other pins are left floating

VERY VERY IMPORTANTLY, this module needs 3.3V, not 5V which is what most FTDIs supply. Even if your FTDI module has an 3.3V output or a switch to change the voltage, please measure it with a multimeter to make sure it is outputing 3.3V exactly. I wasted more than one hour just because I trusted the piece of garbage!!!!

Step 2: Communication


Open the serial monitor from Arduino IDE, change the two settings at the right bottom corner according to the above picture. As you can see, my first 3 AT command didn't go through because of the carriage return is not there.


ref:
http://williamdurand.fr/2015/03/17/playing-with-a-esp8266-wifi-module/
http://rancidbacon.com/files/kiwicon8/ESP8266_WiFi_Module_Quick_Start_Guide_v_1.0.4.pdf
http://www.instructables.com/id/Getting-Started-With-the-ESP8266-ESP-01/

No comments:

Post a Comment