How to Print AT Commands with ESP8266 using USB TTL Converter
ESP8266 Wifi module is creating a buzz in the world of IoT. It is cost effective and can do wonders for developers especially the beginners who have just started building IoT projects. In this post, we are going to learn how to upload firmware to ESP8266 (ESP-01) and print AT Commands using a USB TTL converter.
What do you need to get started?
- An ESP8266 board
- A computer that can run the Arduino IDE (Windows, Mac or Linux)
- A 3.3 volts compatible USB-to-Serial converter
- A USB cable
- A 3.3V power supply or voltage regulator
- Flashing mode
- Normal working mode
Rx -> Tx
Tx –> Rx
CH_PD -> Vcc = 3.3 volt provided by the USB-TTL module
GND -> GND
GPIO0 –> GND or Open (Flash mode/Normal mode)
Arduino’s Serial Monitor displays serial data being sent from the Arduino or Genuino board (USB or serial board). To send data to the board, enter text and click on the “send” button or press Enter. ESP8266 chip is usually set to either
9600 bps or
115200 bps.Recent firmware versions set the baud rate to by
115200 bps default, so if your chip is set to communicate at a different speed, you probably need to update the firmware.
Now, you can send it AT commands. First, let’s send “AT”:
Now let’s get the firmware version:
Now, let’s get the operation mode.
3 implies that we are in Standalone + Access Point mode. That’s fine. Now, let’s do something fun. Let’s list all the available WiFi access points.
Now let’s connect to my WiFi network.
Now, let’s check if we actually got an IP address:
- The ESP8266 chip requires 3.3V power supply voltage. It should not be powered with 5 volts like other Arduino boards.
- The I/O pins of ESP8266 communicate or input/output max 3.3 V. i.e. the pins are NOT 5V tolerant inputs.
Latest posts by Christine (see all)
- Top 5 Ways to Wire up ESP8266 Module to your Arduino Uno Board - September 22, 2017
- Get started with a Fingerprint Sensor Module using Arduino - September 13, 2017
- How to Print AT Commands with ESP8266 using USB TTL Converter - September 12, 2017