CH340 USB to TTL Serial Adaptor (HCMODU0076)
CH340 USB to TTL Serial Adaptor (HCMODU0076)
The CH340 USB to serial adaptor (HCMODU0076) makes use of the CH340 USB to serial IC to provide a low cost alternative to our popular FTDI based module. Although much cheaper this module doesn't lack in features or usability. Once you have installed the drivers the module will appear as a normal serial COM port on your computer making it compatible with most terminal programs and development environments such as the Arduino IDE.
The module includes a small switch which allows the voltage available at the VC (Supply output) pin to be switched between 3.3 and 5V. Data pins include TX, RX, CTS and DTR (needed for automatic reset when programming Arduino boards). These digital pins are at 5V TTL levels allowing them to be directly interfaced most 5V microcontrollers.
Please note: Driver support is currently for Microsoft Windows 32/64 bit only.
DTR....Data Terminal Ready
RXD....Serial in
TXD....Serial out
VC......3.3V or 5V Supply out selected via switch
CTS.....Clear To Send
GND....0V
Windows drivers:
MAC installation instructions
New code signed version confirmed to work with 10.12 Sierra
Older code signed version confirmed to work with El Capitan
Instructions:
Download the driver (you must be logged in to download)
Once downloaded, double-click the zip file to unzip it.
Run installer found in that folder.
If asked to restart, do not restart just yet.
Now restart your Mac.
You do not have the required permissions to view the files attached to this post.
Re: CH340 USB to TTL Serial Adaptor (HCMODU0076)
I bought 2 of these adapter recently and I discovered that I could not upload code to a breadboard Atmega 328P with one of them. (I only have one at the moment as the other was for a friend).
I had a useful phone discussion with Andrew yesterday at which time I thought the problem was that the adapter was failing to cause the Atmega 328 to reset when trying to upload code. On my adapter the DTR line is LOW by default and goes HIGH briefly when a program is to be uploaded. This seems to be the reverse of normal behaviour.
Later I came to the conclusion that the adapter was actually causing the 328 to reset and the problem was that it would not work properly at 57600 baud which is the upload rate used by the bootloader. The adapter works fine at 115200 baud and at 19200 baud.
After a lot of fiddling around I managed to compile a version of the Optiboot bootloader that uploads at 19200 baud and now I can upload with the CH340 as well as with an older USB-TTL cable that i have had for a few years and which works at 57600 baud.
...R
I had a useful phone discussion with Andrew yesterday at which time I thought the problem was that the adapter was failing to cause the Atmega 328 to reset when trying to upload code. On my adapter the DTR line is LOW by default and goes HIGH briefly when a program is to be uploaded. This seems to be the reverse of normal behaviour.
Later I came to the conclusion that the adapter was actually causing the 328 to reset and the problem was that it would not work properly at 57600 baud which is the upload rate used by the bootloader. The adapter works fine at 115200 baud and at 19200 baud.
After a lot of fiddling around I managed to compile a version of the Optiboot bootloader that uploads at 19200 baud and now I can upload with the CH340 as well as with an older USB-TTL cable that i have had for a few years and which works at 57600 baud.
...R
Re: CH340 USB to TTL Serial Adaptor (HCMODU0076)
Just thought I would like to add some thoughts re latency.
I am at the moment trying to control a PC scope card designed for use with an ISA 8 bit data bus. So far I am able to activate the DTR line for use as an external signal. This operates for me as a read/write signal but has a 3 mSec latency so when reading or writing the port a software delay of 5 m Sec is needed before the port write can be sent. If the DTR is tested in a closed loop this functions ok.
Problem now is sending a data byte then the address byte. The Tx line also has a significant latency delay, so even though the two port writes have a register test to prevent overwriting before the out port command, the data and address writes also need an inter delay. Writing a single byte produces the correct data (@115baud). Putting the writes in a software loop causes all kinds of mis-firing so scoping the signals is near impossible. Introducing a 100uSec delay does not separate the writes so the latency must be greater. I wonder if the latency is similar to the DTR at 3 mSecs ?
I shall persevere until I can tie down the Tx latency delay I need between data & address bytes. Unless this work has been done already ???
I am at the moment trying to control a PC scope card designed for use with an ISA 8 bit data bus. So far I am able to activate the DTR line for use as an external signal. This operates for me as a read/write signal but has a 3 mSec latency so when reading or writing the port a software delay of 5 m Sec is needed before the port write can be sent. If the DTR is tested in a closed loop this functions ok.
Problem now is sending a data byte then the address byte. The Tx line also has a significant latency delay, so even though the two port writes have a register test to prevent overwriting before the out port command, the data and address writes also need an inter delay. Writing a single byte produces the correct data (@115baud). Putting the writes in a software loop causes all kinds of mis-firing so scoping the signals is near impossible. Introducing a 100uSec delay does not separate the writes so the latency must be greater. I wonder if the latency is similar to the DTR at 3 mSecs ?
I shall persevere until I can tie down the Tx latency delay I need between data & address bytes. Unless this work has been done already ???
Re: CH340 USB to TTL Serial Adaptor (HCMODU0076)
Same old issues with this adapter, when you select 3V3 mode, you
still get 5V on the TTL UART pins and recently bought two hoping this
issue had been resolved, but goodness no! typical of these far-Eastern
manufactures.
My ESP12 stopped working with this particular adapter connected, that's when it dawned
on me same old issue.
I would have thought Hobbycomponents to post a disclaimer indicating this behavior and
a possible workaround here on this forum.
HPB.
still get 5V on the TTL UART pins and recently bought two hoping this
issue had been resolved, but goodness no! typical of these far-Eastern
manufactures.
My ESP12 stopped working with this particular adapter connected, that's when it dawned
on me same old issue.
I would have thought Hobbycomponents to post a disclaimer indicating this behavior and
a possible workaround here on this forum.
HPB.
Re: CH340 USB to TTL Serial Adaptor (HCMODU0076)
Sorry to hear that you are having issues. I would like to confirm however that although the supply output is switchable between 3.3 and 5V the TTL outputs are 5V TTL only. Here is a quote from our product page (and first post of this thread):
If you require an adaptor suitable for interfacing to 3.3V devices you may want to take a look at item HCMODU0051.
The module includes a small switch which allows the voltage available at the VC (Supply output) pin to be switched between 3.3 and 5V. Data pins include TX, RX, CTS and DTR (needed for automatic reset when programming Arduino boards). These digital pins are at 5V TTL levels allowing them to be directly interfaced most 5V microcontrollers.
If you require an adaptor suitable for interfacing to 3.3V devices you may want to take a look at item HCMODU0051.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.
Re: CH340 USB to TTL Serial Adaptor (HCMODU0076)
I would have thought Hobbycomponents to post a disclaimer indicating this behavior and
a possible workaround here on this forum.
The behaviour of the voltage switch and digital pins is actually mentioned in the items description:
The module includes a small switch which allows the voltage available at the VC (Supply output) pin to be switched between 3.3 and 5V. Data pins include TX, RX, CTS and DTR (needed for automatic reset when programming Arduino boards). These digital pins are at 5V TTL levels allowing them to be directly interfaced most 5V microcontrollers.
If you need to interface to serial devices with 3.3V logic levels please see this adapter instead:
https://hobbycomponents.com/usb-interfa ... le-adaptor
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.
Re: CH340 USB to TTL Serial Adaptor (HCMODU0076)
Computer win10 64 with present updates. Downloaded win drivers and unzipped them. Install started as Admin.
It fails almost instantly "Driver install failure"
Is there requirements for installing dir?
--jo
It fails almost instantly "Driver install failure"
Is there requirements for installing dir?
--jo
Re: CH340 USB to TTL Serial Adaptor (HCMODU0076)
Assuming you haven't already tried this method follow these steps...
1) Download and unzip the HCMODU0076_CH340SER_Windows_Drivers.zip file from the first post of this forum.
2) Once downloaded unzip it to somewhere on your computer.
3) Open up device manager by right-clicking the Windows icon in the bottom left hand corner of your screen and in the menu that opens up select 'Device Manager'
4) In the device manager window that opens up, and with the USB adapter plugged in to your computer, locate the adapter in the list then right-click it then select 'Update driver'.
5) In the window that opens up select 'Browse my computer for drivers'.
6) In the file requestor window that opens up navigate to where you unzipped the driver and select the 'CH341SER' folder.
7) Click the 'Next' button and the driver should install correctly.
1) Download and unzip the HCMODU0076_CH340SER_Windows_Drivers.zip file from the first post of this forum.
2) Once downloaded unzip it to somewhere on your computer.
3) Open up device manager by right-clicking the Windows icon in the bottom left hand corner of your screen and in the menu that opens up select 'Device Manager'
4) In the device manager window that opens up, and with the USB adapter plugged in to your computer, locate the adapter in the list then right-click it then select 'Update driver'.
5) In the window that opens up select 'Browse my computer for drivers'.
6) In the file requestor window that opens up navigate to where you unzipped the driver and select the 'CH341SER' folder.
7) Click the 'Next' button and the driver should install correctly.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.
Re: CH340 USB to TTL Serial Adaptor (HCMODU0076)
Thank you for your extremely fast reply. The device is now functional!
--jo
--jo
-
- Posts: 11
- Joined: Tue Nov 08, 2016 2:39 pm
Re: CH340 USB to TTL Serial Adaptor (HCMODU0076)
What does the pushbutton do?