The CP210x USB chip turns a USB connection into a regular serial port which allows your computer to establish a serial communication with microcontrollers like the ESP32 or ESP8266. To program or exchange information between your computer and an ESP32/ESP8266 chip, you need to install the CP210x USB to UART Bridge Virtual COM Port drivers. This guide shows to install the drivers in a Windows PC.
We have a similar guide for Mac OS X: Install ESP32/ESP8266 USB Drivers – CP210x USB to UART Bridge
ESP32/ESP8266 USB Chip – CP2102/CP2104
If it’s your first time using an ESP32/ESP8266, it’s probably that if you plug the ESP board into your computer, you don’t see your ESP’s COM port available. This means you don’t have the drivers installed. Take a closer look at the chip next to the voltage regulator on the board and check its name. For this board, it comes with the Silabs CP2102 chip.
For example, the ESP32 DEVKIT V1 DOIT board and many other ESP32 and ESP8266 modules use the CP2102 or the CP2104 chips.
If you install the CP210x drivers as explained in this blog post, you’ll ensure that the USB connection and communication will work for any ESP board that uses those USB chips (starting with ‘CP210’).
Note: another popular USB chip used by many ESP32 and ESP8266 modules is the CH340. Always check the datasheet of your board to make sure you identify the right USB to UART communication chip that’s being used in your board.
Installing CP210x USB to UART Bridge VCP Drivers (Windows PC)
Start by downloading the CP210x USB Drivers from the official website. If you are on a Windows PC, you need to download the CP210x Windows Drivers folder highlighted in the image below.
After downloading the CP210x Windows Drivers, right-click the folder and unzip the installation files.
Open the unzipped folder and double-click the CP210xVCPInstaller_x64.exe file to start the installation process.
Follow the installation wizard, click the “Next” button, and agree with the terms of use to complete the installation process.
The CP210x USB drivers have been installed successfully.
Testing the CP210x USB Drivers
Click the search bar.
Search for “Device Manager” and open the control panel:
Having an ESP32/ESP8266 board connected to your Windows PC with a USB cable, under the “Ports” section you should see a device “Silicon Labs CP210x USB to UART Bridge (COM5)” (or with a different COM port number).
To program the ESP32/ESP8266 board with Arduino IDE, remember the COM port number, in our case it’s 5, COM5.
In the Arduino IDE, select your ESP32/ESP8266 board COMX Port, as shown earlier. Ours is COM5 Serial Port (USB).
That’s it! You should now be able to see the COMX Serial Port of the ESP32/ESP8266 in Arduino IDE. You can upload a new code to your ESP board to test it.
Wrapping Up
We hope you’ve found this quick guide useful. Want to learn more about the ESP32? We recommend the following ESP32 tutorials to get started:
- Getting Started with the ESP32 Development Board
- ESP32 Digital Inputs and Digital Outputs (Arduino IDE)
- ESP32 Web Server Tutorial
- ESP32 Pinout Reference: Which GPIO pins should you use?
If you’re serious about learning about the ESP32, we recommend taking a look at our best-selling eBook:
If you like ESP32 make sure you subscribe to our blog, so you don’t miss upcoming projects.
Thanks for reading.
Windows 11, Update may replace CP210x driver with Microsoft driver for the CP210x USB drivers. Keep the [url=https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers?tab=downloads] Silabs version of the CP210x drive in a folder you can find to re-install[\url].
If your ESP device quits connecting to Arduino IDE; re-install Silabs version of the CP210x driver; for the step in troubleshooting of the issue.
I have already studied the CHIP 2102 a lot, which I consider to be very versatile.
There is a tool from SĂlabs, which allows you to change some data associated with the Chip 2102. For example, you can change the serial number.
AN721: USBXpress™ Device
Configuration and Programming Guide
silabs.com/documents/public/application-notes/AN721.pdf
silabs.com/documents/public/example-code/AN721SW.zip
Thanks for sharing this info.
Regards,
Sara
To see the USP COM port in the Windows device manager, you have to connect the ESP dev board first, otherwise you won’t see the COM port for the CP 210x USB driver.
That’s it! You should now be able to see the COMX Serial Port of the ESP32/ESP8266 in Arduino IDE. You can upload a new code to your ESP board to test it.
which program do you advise?
You can upload a simple empty sketch to test.
Or you can go to File > Examples and test the basic blink example.
Regards,
Sara
thanks
i thought something in the region wifi
So, there is no need to install this cp210x driver in Linux ?
I can’t see the port in the device manager
Hi.
Make sure you’re using a USB cable that supports transfer of data.
Regards,
Sara
Have a look here: https://forum.arduino.cc/t/windows-11-device-manager-does-not-show-esp32-with-cp2102/1160075/6.
I loaded the RGB control code on Esp32-s3-tiny-kit. After successfully loading, I didn’t see anything happen. What is the cause?
it says “This device is not working properly because Windows cannot load the drivers required for this device. (Code 31)” how to fix this?
Check the USB chip on your ESP32 board. The boards are available with CH340, CP2102 or CH9102 USB chips. Code 31 means that you don’t have the correct driver installed. The RNT article refers only to the CP210x chip.