logo elektroda
logo elektroda
X
logo elektroda
Dostępna jest polska wersja

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam

Convenient dual USB to UART converter - CH342 - USB-2TTL

p.kaczmarek2 1596 14

TL;DR

  • A CH342-based USB-2TTL adapter provides one USB connector, two UART outputs, and broken-out DTR/RTS lines for reset and bootloader control.
  • It uses the CH342 in tiny QFN24 (CH342F) or ESSOP-10 (CH342K) packages with minimal external components and selectable 3.3 V or 5 V logic levels.
  • The module sells for about a dozen zloty and uses a modern USB-C connector.
  • Windows immediately detected COM4 and COM7, but the board’s 3.3 V output could not power BK7231 without an external LDO.
Generated by the language model.
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • USB-C to dual UART converter board with CH342 chip on a purple PCB
    Here's something I've needed for a long time - a dual USB to UART converter, i.e. one USB connector and two serial ports on the output, and this together with the DTR/RTS flow control signals brought out, which can be used, for example, to reset and control the bootloader mode of external devices. The whole thing can be bought for about a dozen zloty, the price depends on the quantity imported and the online shop chosen.
    CH342 USB-C to dual UART modules with DTR/RTS pins and 3.3 V/5 V support
    Like the well-known CH340, this chip gives us a choice between 3.3 V and 5 V logic levels. Also in an analogous way, it has one rather serious shortcoming, namely that it cannot provide a sufficiently large current from its 3.3 V pins for many applications, so if we want to run some Wi-Fi modules with it such as the ESP8266, ESP32 or there BK7231, we need to arm ourselves with an external chip with a 3.3 V LDO, such as the AMS1117-3.3 for example.
    The CH342 itself is available in tiny housings such as QFN24 (CH342F) and ESSOP-10 (CH342K). The CH342 requires minimal external components to operate.
    Block diagram of the CH342 chip showing USB to dual UART conversion Pin diagrams of CH342F and CH342K chips with detailed pin definition table Block diagram of CH342F with USB interface, dual UART, and filtering capacitors

    The main motivation and 'battle test' for this module was to use it to work with BK7231 , as this chip has two UART ports that are both actively used during firmware development - one is used to display the device activity log and the other for programming. Here are the pictures from colleague @DeDaMrAz :
    Electronic module with 3V3, RX1, TX1, RX2 pins and soldered colored wires
    Unfortunately, however, it was not possible to make the absolute minimum connection, as the Beken would not start without an external 3.3 V supply:
    CH342 USB-C module with wires connected to a peripheral device on a blue mat
    USB-2TTL CH342 module connected to device using multicolored wires
    Looks like we're in for an additional 3.3 V LDO hand-soldering to the underside of the board shown. How about finding a module with CH342 and AMS1117-3.3? That would be the best option.
    In any case, the UART works fine - the computer immediately sees the COM ports, here for example COM4 and COM7 and we can operate them via Realterm:
    Two PuTTY windows showing active communication on COM4 and COM7 ports

    In summary , I liked the CH342-based USB-2TTL module very much. Its only downside is the lack of a good LDO on board, which complicates things in some tasks and, for example, makes it difficult to connect the whole thing to a programmable Wi-Fi module. On the other hand, I consider the presence of DTR and RTS lines to be a plus - many cheaper adapters lack this.
    Finally, it is worth mentioning that the module is equipped with a modern USB C-type connector, so there is no problem with the orientation of the plug.
    Have you used the CH342? What applications do you see for this chip?
    Attachments:
    • CH342 Datasheet.pdf (196.93 KB) You must be logged in to download this attachment.

    Cool? Ranking DIY
    Helpful post? Buy me a coffee.
    About Author
    p.kaczmarek2
    Moderator Smart Home
    Offline 
    p.kaczmarek2 wrote 14233 posts with rating 12133, helped 647 times. Been with us since 2014 year.
  • ADVERTISEMENT
  • #2 21747900
    irekhq
    Level 14  
    Do you have the possibility to check the operation on some Linux ?
    My CH341 often had problems working when connected to faster usb ports.
    Connecting via a hub at a lower speed helped.
  • #3 21747932
    TechEkspert
    Editor
    I like it! Seemingly a trivial idea but in many cases using 2 UART two converters are less convenient than a single one.
    @gulson maybe there is a chance for such dual converters with CH342 to appear in the electroda.pl shop?

    I generally trust cp210x more than UART<->USB converters with CH34x however in this case they showed something new, clever and useful.
  • ADVERTISEMENT
  • #4 21748354
    gulson
    System Administrator
    TechEkspert wrote:
    @gulson maybe there is a chance for such dual converters with CH342 to appear in the elektroda.pl shop?

    Unfortunately I do not have access to them.
  • #5 21748364
    ElektroMuzyk
    Level 18  
    I have a question. Do we see 2 com ports in the system? E.g. com5 and com6?
  • #6 21748404
    piotr_go
    DIY electronics designer
    There are still modules on the CP2105.
  • ADVERTISEMENT
  • #8 21748800
    Jogesh
    Level 28  
    Of the dual ones, there's also the XR21V1412IL32TR-F. I used the single version and it worked well with a wide baudrate range.
  • #9 21749113
    Karol966
    Level 31  
    IS wrote:
    There is also the FTDI4232

    About this toto. I was just about to write about it - majfriends also have a ready-made one, e.g:
    https://pl.aliexpress.com/item/1005003624740507.html

    The chip itself is sitting on my desk, the FE1.1S expander is still waiting for it - the idea was rather interesting - to make a compatible PCB under Atmel ICE + just FT4232 (I have one of the devices that requires as many as 3 UART ports for full operation).

    At a quick glance I see quite a few ready-made, multi-UART (4-8 channels) devices on Ali:
    https://pl.aliexpress.com/item/1005005750870625.html
    https://pl.aliexpress.com/item/1005007928356683.html
  • ADVERTISEMENT
  • #10 21749553
    ostrytomasz
    Level 25  
    Question: does it not stretch the stop bit for speeds above 500 kbaud like CH340 and CH341 (https://github.com/nospam2000/ch341-baudrate-calculation)?
  • #11 21750330
    p.kaczmarek2
    Moderator Smart Home
    I will try to check what you have written about.

    @ElektroMusician - then there are two COM ports visible, as in the subject content and in the screenshots.
    I think this LDO from the board is an XC6206.
    Extract of Torex XC6206 voltage regulator datasheet
    Loaded with 250 mA (just over specifications) after about 15 seconds:
    Thermal image of a PCB showing 76.0°C in the lower area under load
    Helpful post? Buy me a coffee.
  • #13 21752643
    MarekS6
    Level 17  
    As others have mentioned here there are also 4 channel adapters for the FT4232.

    I was recently building a reader for my own use and was looking for some usb <-> 4x serial port adapter and bought one like the one in the picture from a Chinese guy. It has as many signals out for each port 😊

    USB to 4x UART module with FT4232 chip and micro USB connector
  • #14 21752685
    E8600
    Level 41  
    Somewhere I flashed some programmer on a CH347 that read/programmed SPI even expressly relative to the well-known CH341.
  • #15 21752781
    ElektroMuzyk
    Level 18  
    p.kaczmarek2
    Thank you very much for your reply.

    Overall a very cool topic. I have found a lot of helpful posts here regarding what has been bogging down my mind. Although the project has bogged down, sometimes you need patience in reaching your own goal.
    Greetings to all :)
📢 Listen (AI):

FAQ

TL;DR: This CH342-based USB‑to‑UART board exposes 2 COM ports and hardware DTR/RTS; “I liked the CH342-based USB‑2TTL module.” It’s bus‑powered, switchable 3.3/5 V logic, but heavy 3.3 V loads need an external LDO. [Elektroda, p.kaczmarek2, post #21747764] Why it matters: It lets you debug/program two UARTs at once (e.g., log + flash) from a single USB‑C, saving ports and cables for embedded work.

Quick Facts

Does the CH342 dual adapter show up as two COM ports?

Yes. The host enumerates two separate serial ports, demonstrated as COM4 and COM7. You can open them concurrently in tools like RealTerm. This enables, for example, one port for logs and the other for flashing. “The computer immediately sees the COM ports.” [Elektroda, p.kaczmarek2, post #21747764]

Will it power Wi‑Fi modules directly from 3.3 V?

Not reliably. The board’s 3.3 V rail cannot supply the surge current many Wi‑Fi MCUs draw. Use an external LDO such as AMS1117‑3.3 for ESP8266, ESP32, or BK7231. Otherwise, brownouts or boot failures can occur during RF peaks. [Elektroda, p.kaczmarek2, post #21747764]

What happened when powering a BK7231 from the adapter alone?

The BK7231 did not start with the minimal connection using only the adapter’s 3.3 V. Providing an external, stable 3.3 V supply resolved the issue. This is a common edge case when the target draws more than the adapter’s regulator can deliver. [Elektroda, p.kaczmarek2, post #21747764]

Which regulator is on the board, and how much current was tested?

The board showed an XC6206 LDO. A stress test held 250 mA for about 15 seconds, which is just over typical XC6206 specs. Treat this as a bench observation, not a design guarantee. [Elektroda, p.kaczmarek2, post #21750330]

How do I wire it for dual‑UART firmware work (e.g., BK7231)?

  1. Connect UART0 (TX/RX) to target log pins; connect DTR/RTS if you need auto‑reset/boot.
  2. Connect UART1 to the programming interface pins.
  3. Power the target from a dedicated 3.3 V LDO if current draw exceeds the adapter’s 3.3 V capability. [Elektroda, p.kaczmarek2, post #21747764]

Does it use USB‑C and expose DTR/RTS for auto‑boot?

Yes. The module uses a USB‑C connector and brings out DTR and RTS. These signals can reset a target and select bootloader modes, which is useful for ESP‑class devices and similar workflows. [Elektroda, p.kaczmarek2, post #21747764]

Any Linux compatibility notes or USB 3.x quirks?

A user reported CH341 issues at higher‑speed ports and fixed them by inserting a USB 2.0 hub to force lower speed. If you hit instability, try a USB 2.0 hub or different port. Similar mitigation may apply here. [Elektroda, irekhq, post #21747900]

Does the CH342 stretch the stop bit above 500 kbaud like some CH34x parts?

This remains unverified in the thread. If you plan to use baud rates above 500 kbaud, test with your target first. Measure framing accuracy with a logic analyzer before deploying. [Elektroda, ostrytomasz, post #21749553]

What alternatives exist if I need more than two UARTs?

Consider the FTDI FT4232, which offers four UART channels on one adapter. Users referenced ready‑made FT4232 boards with full signal breakout per port. This suits multi‑port analyzers and complex programmers. [Elektroda, IS, post #21748779]

Is there a Silicon Labs dual‑channel option similar to this?

Yes. Modules based on the CP2105 provide dual USB‑to‑UART capability. Many engineers trust cp210x‑based solutions for stable drivers and tooling compatibility. Availability varies by region and vendor. [Elektroda, piotr_go, post #21748404]

Any experience with the XR21V1412 dual UART?

Yes. A user reported good results with the single‑channel version and a wide baud‑rate range, and noted the dual XR21V1412 exists. It’s a credible alternative for demanding timing. [Elektroda, Jogesh, post #21748800]

Can CH34x variants handle SPI flashing faster than CH341?

One user flashed a programmer on CH347 and observed notably faster SPI read/program performance compared to CH341. If SPI throughput matters, evaluate CH347‑based tools. [Elektroda, E8600, post #21752685]

What does it cost and who is it for?

Expect roughly a dozen PLN per unit, depending on the shop and quantity. It’s ideal for developers who need simultaneous logging and programming through two UARTs without juggling multiple dongles. Embedded hobbyists benefit from the USB‑C connector and DTR/RTS. [Elektroda, p.kaczmarek2, post #21747764]

Which apps work well with the CH342 dual adapter?

Any serial terminal that opens multiple ports works. Realterm was shown handling both COM ports in parallel. You can also script with Python pySerial or use flashing tools that accept selectable COM ports. [Elektroda, p.kaczmarek2, post #21747764]

Bottom line—what’s the main pro and con?

Pro: two UARTs with DTR/RTS from a single USB‑C is very convenient. Con: onboard 3.3 V current is limited, so add an external LDO for power‑hungry targets. “I liked the CH342‑based USB‑2TTL module.” [Elektroda, p.kaczmarek2, post #21747764]
Generated by the language model.
ADVERTISEMENT