Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

ESP8266 ESP-01 USB Serial Programmer With CH340

Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

ESP8266 ESP-01 USB Serial Programmer with C... https://makeradvisor.com/esp8266-esp-01-usb-seri...

HOME DEALS ABOUT RNT COURSES CONTACT TOOLS

» FREE GUIDE «

ESP8266 ESP-01 USB Serial Programmer


with CH340 (Fix Programming Issue)
May 21, 2020 By Rui Santos

This module is a USB programmer for ESP8266 modules of type ESP-01. This is a very practical
programmer module, because you just need to connect the ESP-01 to the module and the
module to your computer to program the ESP8266.

However, we don’t think this is a good programmer, because you must modify it to make it work
properly. However, I know that a lot of our readers have this programmer and experience
problems �ashing new sketches when they �rst try it. So, we wrote this guide that explains how
to �x the ESP-01 USB Serial Programmer “issue”.

Where to Buy ESP-01 USB Programmer


You can grab an ESP-01 USB Serial Programmer at one of these stores (even newer
1 of 15 1/12/21, 7:08 PM
ESP8266 ESP-01 USB Serial Programmer with C... https://makeradvisor.com/esp8266-esp-01-usb-seri...

HOME DEALS ABOUT RNT COURSES CONTACT TOOLS

» FREE GUIDE «

eBay - ESP8266 ESP-01 USB Serial $1.29


in
BUY NOW (http://rover.ebay.com/rover/1/711-53200-19255-0/1?campid=5338179998&custom

stock
Programmer with CH340
(http://rover.ebay.com/rover
/1/711-53200-19255-0
/1?campid=5338179998&
customid=MakerAdvisorT&
toolid=10019&mpre=https%3A%2F
%2Fwww.ebay.com%2Fitm%2F1PCS-
NEW-ESP01-Programmer-Adapter-
UART-GPIO0-ESP-01-Adaptateur-
ESP8266-USB-%2F223971880142)

Banggood - ESP8266 ESP-01 USB Serial Programmer with CH340 (https://www.banggood.com/ESP0


p-1441922.html?p=MA24043

$5.21 BUY NOW

(https://www.banggood.com

/ESP01-Programmer-Adapter-UART-GPIO0-
ESP-01-CH340G-USB-to-ESP8266-Serial-
Wireless-Wi�-Development-Board-
p-1441922.html?p=MA240439985285201910&
cur_warehouse=CN)

Amazon.co.uk - ESP8266 ESP-01 USB Serial Programmer with CH340 (with ESP-01 Boar

(https://www.amazon.co.uk/dp/B078J7LDLY?tag=makeradvisor-21&

linkCode=ogi&th=1&psc=1)

Amazon.com - ESP8266 ESP-01 USB Serial Programmer with CH340 (with ESP-01 Board

(https://www.amazon.com/dp/B07D49MSTM?tag=makeradvisor-20&

linkCode=ogi&th=1&psc=1)

Amazon.de - ESP8266 ESP-01 USB Serial Programmer with CH340


2 of 15 1/12/21, 7:08 PM
ESP8266 ESP-01 USB Serial Programmer with C... https://makeradvisor.com/esp8266-esp-01-usb-seri...

HOME DEALS ABOUT RNT COURSES CONTACT TOOLS

» FREE GUIDE «

Aliexpress - ESP8266 ESP-01 USB Serial Program

(http://s.click.aliexpress.com/e/_BfZ1vlA3)

Amazon.es - ESP8266 ESP-01 USB Serial Programmer with CH340 (with ESP-01 Board

(https://www.amazon.es/dp/B07D388RX6?tag=makeradviso02-21&

linkCode=ogi&th=1&psc=1)

Installing CH340 Drivers


This module is based on the USB-UART bridge CH340 chip, so you must have the CH340
drivers installed in your computer to be able to upload code to the ESP8266-01.

ESP-01 Board
If you don’t have an ESP-01, you can get one in the links below.

eBay - ESP8266 - ESP-01 Wi-Fi Board (http://rover.ebay.com/rover/1/711-53200-19255-0/1?campid=5338179998&


Transceiver-Module-Send-R

eBay - ESP8266 - ESP-01 Wi-Fi Board $1.75 BUY NOW (http://rover.ebay.com/rover/1/711-53200-19255-0/1?campid=5338179998


in
(http://rover.ebay.com/rover stock

/1/711-53200-19255-0
/1?campid=5338179998&
customid=MakerAdvisorT&toolid=10019&
mpre=https%3A%2F
%2Fwww.ebay.com%2Fitm%2FESP8266-01-
Serial-WIFI-Wireless-Transceiver-Module-
Send-Receive-LWIP-AP-
STA-%2F112016580768)

Amazon.es - ESP8266 - ESP-01 Wi-Fi Board

3 of 15 1/12/21, 7:08 PM
ESP8266 ESP-01 USB Serial Programmer with C... https://makeradvisor.com/esp8266-esp-01-usb-seri...

HOME DEALS ABOUT RNT COURSES CONTACT TOOLS

» FREE GUIDE «

Banggood - ESP8266 - ESP-01 Wi-Fi Board (https://www.banggood.com/Upgraded-Version-1

(https://www.banggood.com/Upgraded-Version-1M-

Flash-ESP8266-ESP-01-WIFI-Transceiver-Wireless-Module-
p-979509.html?p=MA240439985285201910)

Amazon.de - 3pcs - ESP8266 - ESP-01 Wi-Fi Board

(https://www.amazon.de/dp/B074RL7YR3?tag=makeradviso01-21&

linkCode=ogi&th=1&psc=1)

Amazon.com - 4pcs ESP-01 ESP8266 Wi� Breakout Board

(https://www.amazon.com/dp/B01EA3UJJ4?tag=makeradvisor-20&

linkCode=ogi&th=1&psc=1)

Aliexpress - ESP8266 - ESP-01 Wi-Fi Board (http://s.click.aliexpress.com/deep_link.htm?dl_target_url=https%3A

out of stock BUY NOW (http://s.click.aliexpress.com/deep_link.htm?dl_

(http://s.click.aliexpress.com

/deep_link.htm?dl_target_url=https%3A%2F
%2Fwww.aliexpress.com%2Fitem%2FESP8266-
Serial-Esp-01-WIFI-Wireless-Transceiver-
Module-Send-Receive-LWIP-AP-
STA%2F32790147230.html&
aff_short_key=EqzVzne)

Amazon.co.uk - 2pcs - ESP8266 - ESP-01 Wi-Fi Board

(https://www.amazon.co.uk/dp/B07868KWQV?tag=makeradvisor-21&

4 of 15 1/12/21, 7:08 PM
ESP8266 ESP-01 USB Serial Programmer with C... https://makeradvisor.com/esp8266-esp-01-usb-seri...

)
HOME DEALS ABOUT RNT COURSES CONTACT TOOLS

» FREE GUIDE «
which doesn’t happen in the original module. As you can see in the �gure below, GPIO 0 is not
connected to GND.

For a reference, here’s the ESP-01 pinout.

ESP-01 Pinout Guide

To pull GPIO 0 to GND to make the ESP-01 go into programming mode, you can solder a
pushbutton to the ESP-01 USB Serial Programmer between GPIO 0 and GND pins as shown in
the following �gures.

5 of 15 1/12/21, 7:08 PM
ESP8266 ESP-01 USB Serial Programmer with C... https://makeradvisor.com/esp8266-esp-01-usb-seri...

HOME DEALS ABOUT RNT COURSES CONTACT TOOLS

» FREE GUIDE «

Here’s the �nal result:

Programming the ESP8266 ESP-01 with the USB Serial


Programmer
Now that you have your Serial Programmer �xed, we’ll show you how to program the ESP-01
using this module.

Attach the ESP-01 board to the USB Serial programmer as follows.


6 of 15 1/12/21, 7:08 PM
ESP8266 ESP-01 USB Serial Programmer with C... https://makeradvisor.com/esp8266-esp-01-usb-seri...

HOME DEALS ABOUT RNT COURSES CONTACT TOOLS

» FREE GUIDE «

Then, follow these steps:

1. Hold-down the soldered pushbutton;


2. While holding down the pushbutton, plug the ESP-01 USB programmer into your computer.

Note: if you don’t hold-down properly the pushbutton before plugging it to your computer, your
ESP-01 might fail to boot in �ashing mode causing an error uploading new code.

Open your Arduino IDE and having the ESP8266 Board installed, select the board “Generic
7 ofESP8266
15 Module” and the right COM Port. 1/12/21, 7:08 PM
ESP8266 ESP-01 USB Serial Programmer with C... https://makeradvisor.com/esp8266-esp-01-usb-seri...

HOME DEALS ABOUT RNT COURSES CONTACT TOOLS

» FREE GUIDE «

After that, press the “Upload” button to �ash an empty sketch to your board. After a few
seconds, you should see the “Done Uploading” message.

8 of 15 1/12/21, 7:08 PM
ESP8266 ESP-01 USB Serial Programmer with C... https://makeradvisor.com/esp8266-esp-01-usb-seri...

HOME DEALS ABOUT RNT COURSES CONTACT TOOLS

» FREE GUIDE «

[SOLVED] esptool.FatalError: Failed to connect to


ESP8266
If you see the following error message when you try to upload a new sketch to your ESP-01:

esptool.FatalError: Failed to connect to ESP8266


Timed out waiting for packet header

This means that your ESP-01 didn’t go into �ashing/uploading mode, so it can’t receive a new
code.

9 of 15 1/12/21, 7:08 PM
ESP8266 ESP-01 USB Serial Programmer with C... https://makeradvisor.com/esp8266-esp-01-usb-seri...

HOME DEALS ABOUT RNT COURSES CONTACT TOOLS

» FREE GUIDE «

One of the ways to solve this problem is to remove the board from your computer and restart
the process.

1. Remove the ESP-01 USB programmer from your computer;


2. Hold-down the soldered pushbutton;
3. While holding down the pushbutton, plug the ESP-01 USB programmer to your computer;
4. Ensure that the programmer Port is selected in your Arduino IDE;
5. Press the Arduino IDE “Upload” button.

You might also try to hold-down the soldered pushbutton while uploading a new sketch. If you
continue to see that error, check with a multimeter that your pushbutton is soldered properly
and it’s connected to the right GPIOs.

Wrapping Up
We hope that with this article you’ve gotten your ESP8266 ESP-01 USB Serial Programmer with
CH340 Chip to work properly. After �xing the issue, you’ll see that this module is very practical
to upload code to an ESP-01.

If you intend to get a USB Serial Programmer like this one, take into account that you need to
make a few modi�cations to make it work.

Read our ESP8266 Troubleshooting Guide for more tips


10 of 15 1/12/21, 7:08 PM
ESP8266 ESP-01 USB Serial Programmer with C... https://makeradvisor.com/esp8266-esp-01-usb-seri...

HOME DEALS ABOUT RNT COURSES CONTACT TOOLS

» FREE GUIDE «

[Recommended Course] Learn ESP32 with Arduino IDE


Register in our brand new ESP32 course with Arduino IDE. This is our complete guide to
program the ESP32 with Arduino IDE, including projects, tips, and tricks! The registrations are
open, so sign up now.

Other RNT Courses

[eBook] Home Automation [Course] Build a Home [Course] Arduino Step-by-


using ESP8266 » Automation System » Step Projects »

Build IoT projects and home Build a home automation Build 25 cool Arduino projects
automation gadgets with the system using open-source with our course even with no
ESP8266 Wi-Fi module. hardware and software. prior experience!
Share this:

11 of15  Twitter  Email


Facebook
1/12/21, 7:08 PM
ESP8266 ESP-01 USB Serial Programmer with C... https://makeradvisor.com/esp8266-esp-01-usb-seri...

HOME DEALS ABOUT RNT COURSES CONTACT TOOLS

» FREE GUIDE «

Filed Under: Product Review, Reviews

Comments

Robert Côté says


June 1, 2020 at 7:13 pm

This was a great Idea. I added this switch (GPIO 0 to GND but I also added another one from the
Reset pin to Ground.
Now, I can leave the circuit plugged in the USB port and when I want to put the 8266 into
programming mode I just press FIRST the reset button – keep it presses and then press the GPIO
0 to ground button while releasing the reset button.
The module goes into programming mode without having to unplug the usb port. I �nd it easier
than unplugging and plugging the usb port while trying to hold the button down…!

Thanks for the original tip.

Reply

wh7qq says
June 1, 2020 at 10:30 pm

Thanks, been needing this!

Reply

12 of 15 1/12/21, 7:08 PM
ESP8266 ESP-01 USB Serial Programmer with C... https://makeradvisor.com/esp8266-esp-01-usb-seri...

HOME DEALS ABOUT RNT COURSES CONTACT TOOLS

» FREE GUIDE «

Thanks for all your work in making things accessible


One comment on the addition of a programming button, I got this one
(https://smile.amazon.co.uk/gp/product/B07G6ZPY9D) which has a slide switch, rather than a
momentary switch, and I �nd it works �awlessly.
I didn’t realise the bene�t of the switch at the time – I chose this one, as it doesn’t have the large
capacitor (?) which looks like it would hit the underside of the ESP-01 board.

Keep up the good work – I am making my way through your ESP-CAM book now, and have the
rest if the IOT bundle to do after!

Reply

Leave a Reply
Your email address will not be published. Required �elds are marked *

Comment

Name *

Email *

Website

13 of 15 1/12/21, 7:08 PM
ESP8266 ESP-01 USB Serial Programmer with C... https://makeradvisor.com/esp8266-esp-01-usb-seri...

HOME DEALS ABOUT RNT COURSES CONTACT TOOLS

» FREE GUIDE «

GET THE BEST TOOLS


Sign up to receive curated lists and
reviews with the best tools and gear
for Makers in your inbox.

Your Name

Your Email Address

SIGN UP

AFFILIATE DISCLOSURE

We are a participant in the Amazon Services LLC


Associates Program, an a�liate advertising
program designed to provide a means for us to
earn fees by linking to Amazon.com and a�liated
sites. We also participate in programs from
14 of 15 1/12/21, 7:08 PM
ESP8266 ESP-01 USB Serial Programmer with C... https://makeradvisor.com/esp8266-esp-01-usb-seri...

HOME DEALS ABOUT RNT COURSES CONTACT TOOLS

» FREE GUIDE «

Maker Advisor is part of the Random Nerd Tutorials website. We �nd and select the best tools and gear that makers, hobbyists and DIYers
like. We share deals, write unbiased reviews and compare tools. We are a participant in the Amazon Services LLC Associates Program, an
a�liate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and a�liated sites.

A�liate Disclaimer - Privacy Policy - Terms


Copyright © 2021 - Maker Advisor - A Random Nerd Tutorials website

Exclusive Member of Mediavine Home

15 of 15 1/12/21, 7:08 PM

You might also like