Supplier photo of an assembled infinity mirror light cube illuminated on a dark background.
Supplier photo
Temu affiliate offer · Project idea

Build an infinity light cube

Listing specifies 5-volt direct current. Soldering required; battery and glue not included.

View kit on Temu

Tricky Circuit may earn a commission through these links. Product ideas have not been bench-tested by Tricky Circuit and are not verified lesson parts lists.

CH340G: A Complete Guide

The CH340G is a USB-to-Serial (UART) converter IC developed by WCH (Nanjing QinHeng Electronics). It is commonly used to enable serial communication between microcontrollers (Arduino, ESP8266, STM32, etc.) and computers via a USB connection.


🔹 1. What is CH340G?

  • The CH340G is a low-cost alternative to FTDI and CP2102 USB-to-serial converters.
  • It is used in many Arduino clones and ESP8266/ESP32 boards to provide USB-to-UART functionality.
  • Works with Windows, macOS, and Linux (may require drivers on some systems).

🔹 2. CH340G Features

FeatureDescription
USB VersionUSB 2.0 (Full-Speed 12Mbps)
Baud RateSupports 50bps to 2Mbps
Voltage Support3.3V / 5V Logic (via external circuits)
Flow ControlSupports RTS/CTS, DTR/DSR
Driver SupportWindows, macOS, Linux, Android
Package TypeSOP-16 (Surface Mount)
Power ConsumptionLow power (ideal for embedded systems)

📌 Note: Some systems (like Windows 10/11) may require CH340G drivers to be installed manually.


🔹 3. CH340G Pinout & Connections

The CH340G has 16 pins, but only a few are commonly used in most applications.

PinFunctionConnection
VCCPower (3.3V or 5V)Connect to 3.3V or 5V
GNDGroundCommon ground
TXDTransmit Data (UART)Connect to RX of microcontroller
RXDReceive Data (UART)Connect to TX of microcontroller
DTRData Terminal ReadyUsed for auto-reset on Arduino
RTSRequest to SendUsed for handshake
CTSClear to SendUsed for handshake
USB+ / USB-USB Data LinesConnect to USB port
XTIN / XTOUT12MHz Crystal OscillatorNeeded for stable USB communication

📌 Most CH340G modules include a built-in 12MHz crystal and necessary passive components.


🔹 4. How to Connect CH340G to Arduino (Standalone MCU)

If you are using a bare ATmega328P (not an Arduino board), you can use CH340G to program it.

🛠 Required Components

  • CH340G USB-to-Serial Module
  • ATmega328P Microcontroller
  • 100nF Capacitor (for Auto-Reset)
  • Jumper Wires
  • Breadboard

🛠 Wiring Diagram

CH340G PinATmega328P Pin
VCC → 5VVCC
GND → GNDGND
TXD → RX (Pin 2)Receive Data
RXD → TX (Pin 3)Transmit Data
DTR → RESET (via 100nF capacitor)For Auto-Reset

📌 Use Arduino IDE to upload code via CH340G by selecting “Arduino Uno” as the board.


🔹 5. Installing CH340G Drivers

✅ Windows (Manual Driver Installation)

  1. Download CH340G driver from the official WCH website.
  2. Run CH341SER.EXE and install.
  3. Plug in the CH340G module and check Device Manager (Win + X → Device Manager → Ports).
  4. If installed correctly, it will show as USB-SERIAL CH340.

✅ macOS (Fixing CH340G Not Recognized)

  1. Download the macOS driver from WCH’s official website.
  2. Unzip and install.
  3. Run:bashCopyEditsudo kextload /Library/Extensions/usbserial.kext
  4. Restart your Mac and check:bashCopyEditls /dev/tty.*

✅ Linux

  1. CH340G is natively supported in most Linux distributions.
  2. Check with:bashCopyEditlsusb | grep CH340
  3. If needed, install drivers:bashCopyEditsudo apt update sudo apt install build-essential dkms sudo modprobe ch341

🔹 6. Common Issues & Fixes

IssuePossible CauseSolution
Device not detectedMissing driverInstall correct CH340G driver
Wrong COM portMultiple USB devices connectedCheck COM port in Device Manager
Upload failsDTR pin not connectedEnsure DTR → RESET via 100nF capacitor
Garbled Serial OutputWrong baud rateSet correct baud rate (e.g., 9600, 115200)
MacOS M1/M2 issuesSecurity restrictionsInstall driver & disable SIP if necessary

🔹 7. CH340G vs. Other USB-to-Serial Converters

FeatureCH340GFT232RL (FTDI)CP2102
CostVery Low (~$1-2)High (~$10)Medium (~$5)
Speed2 Mbps3 Mbps3 Mbps
Voltage Levels3.3V / 5V3.3V / 5V3.3V / 5V
Driver IssuesNeeds manual install (Windows/macOS)Native in most OSNative in most OS
Ease of UseModerate (Manual Driver)EasyEasy

📌 Verdict: CH340G is a cost-effective alternative to FTDI but may require manual driver installation.


🎯 Conclusion

  • CH340G is a USB-to-serial UART chip used in Arduino clones, ESP8266 modules, and embedded systems.
  • It is a low-cost alternative to FTDI and CP2102.
  • Works with Windows, macOS, and Linux (but may need drivers).
  • Supports baud rates up to 2Mbps and works with 3.3V & 5V logic.
  • Ideal for serial communication, microcontroller programming, and debugging.
📡Broadcast the signal — amplify the connection.

Leave a Reply

Temu affiliate offers

Find your next electronics project

Explore these do-it-yourself project kits. Check the selected option, included parts and instructions on each offer.

Tricky Circuit may earn a commission if you buy through these Temu affiliate links. These are product ideas; they have not been bench-tested by Tricky Circuit and are not verified lesson parts lists.

Supplier photo of a breadboard, jumper wires and assorted electronic components in a plastic storage case.

Supplier product photo

Try breadboard experiments

Breadboard, wires and assorted parts. Arduino controller board not included.

View kit on Temu

Supplier photo of an assembled blue surface-mount soldering practice board with a circular ring of small lights.

Supplier product photo

Solder a chasing-light board

Surface-mount soldering practice. Battery and battery holder not included.

View kit on Temu

Supplier photo of an assembled two-wheeled line-following car with a blue circuit board, two motors and an empty battery holder.

Supplier product photo

Build a line-following car

Soldering and assembly required. Check battery and track requirements before buying.

View kit on Temu