What is CH340?
CH340 is a TTL (serial) to USB converter and vice versa. This chip has been used in some boards such as Arduino Uno CH340G, ESP8266, etc. The boards using the CH340 chip, don’t need a programmer in order to access the processor or to program them.
But there is a downside. An extra driver must be installed before starting to work with boards having this IC. In this tutorial, you will learn how to install CH340 driver.
You can apply this guide to all Windows versions, including Windows 11, 10, 8, and Vista. The process of installing the CH340 driver on Windows 11 closely resembles that of Windows 10 (or other earlier versions).
Installing CH340 Driver on Windows
If you connect your board to the computer before installing the driver, your computer will not recognize the board correctly and you will see following image in Device Manager.
To open Device Manager, search for it in the Windows Start menu.
Follow the steps below to install the CH340 driver:
Step 1: Download CH340 driver
First, download the CH340 driver from the this link.
You can also download the latest version of the driver directly from the manufacturer’s site.
Step 2: Install CH340 Driver
After downloading the CH340 driver, open it and click Install.
After successful installation you should see this message.
In some cases, you may need to restart Windows after the driver installation is complete.
Step 3: Checking Correct Driver Installation in Device Manager
If your CH340 driver has been installed correctly, and if you connect your board to a computer, then you can see its name and port number in the Port section. For example, my Arduino board is connected to COM7.
Step 4: Checking Correct Driver Installation in Arduino IDE
Open the Arduino IDE software. Go to the Tools menu and from the Port section, select the port number appropriate port that your board is connected to. Note that this port number must be the same as the number you saw in the previous step.
To make sure, you can upload a code that you have already written to your board. For example, I use the Blink example, which is a Built-in example of the Arduino IDE.
If your code is uploaded correctly to the Arduino, you should see a Done uploading message.
At this point, you have successfully installed the CH340 driver correctly and from now on you can easily upload the code you have written to your board.