Go Down

Topic: USB2.0 6Pin CH340G Converter for STC Arduino PRO Instead of CP2102 PL2303 To TTL (Read 1 time) previous topic - next topic

xsini

Help.
My code didn't upload because I think my converter is not recognized by my pc.
Help please.
thank you

codlink

//LiNK

septillion

Did you install a driver?
=> http://www.wch.cn/download/CH341SER_EXE.html
Use fricking code tags!!!!
I want x => I would like x, I need help => I would like help, Need fast => Go and pay someone to do the job...

NEW Library to make fading leds a piece of cake
https://github.com/septillion-git/FadeLed

DrAzzy

Also, check the pinout of your adapter - some of the 6-pin CH340G adapters don't have the normal FTDI pinout (Gnd,CTS or NC,Vcc, Tx, Rx, DTR) - they have Gnd Tx Rx 5v Vcc 3.3v, and a jumper must be between Vcc and 5v or 3.3v, and they don't break out DTR at all. Those can't be used for programming Arduino without soldering a flying lead to the DTR pin (physical pin 13 on the IC, iirc), and wiring them all up to a compatible connection (eg, a 6-pin dupont connector).

Note - in above pinouts I mentioned, I may have swapped TX and RX - so don't treat my post as authoritative on that front. The other pins are right though.
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

septillion

Those can't be used for programming Arduino without soldering a flying lead to the DTR pin (physical pin 13 on the IC, iirc), and wiring them all up to a compatible connection (eg, a 6-pin dupont connector).
Or by holding down the reset yourself. But you'll get annoyed by that pretty quick :D
Use fricking code tags!!!!
I want x => I would like x, I need help => I would like help, Need fast => Go and pay someone to do the job...

NEW Library to make fading leds a piece of cake
https://github.com/septillion-git/FadeLed

Chris_77

I bought this exact device and am not having luck getting it working.

I think I have flashed an Arduino bootloader to a 328P-PU with an oscillator.

I have the pinouts connected as in a YouTube video I saw where this worked.

I have installed the driver linked from above. I have also rolled back to IDE v1.0.6.

The blue LED lights up momentarily, then nothing. It looks again like a "not hitting the RESET pin" issue (as in my other thread), but the YouTube video (link available if it'd help) pinout is identical to my own.

Code: [Select]

         Using Port                    : \\.\COM4
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x00

avrdude done.  Thank you.

DrAzzy

Don't use 1.0.6 of the IDE, the current versions are working great - and it never fixed problems with sync errors.

If you've flashed it with optiboot (uno bootloader), does it do the 3 blinks when you press reset? If not, it's not bootloadrd.

Please link to the exact board you bought - there are several CH340G designs sold under almost identical listing titles, some of which don't break out DTR and use a different pinout. Also, make extra sure your connections are right (particularly, that TX and RX aren't swapped - this is really easy to do). If working on breadboard test continuity

I can personally vouch for the black ones with the 3.3v / 5v switch on them as being excellent. They are my go-to USB serial adapters now - they're the ones I bundle with my assembled ATTiny841/1634 boards as an extra cost option
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

Chris_77

Don't use 1.0.6 of the IDE, the current versions are working great - and it never fixed problems with sync errors.

If you've flashed it with optiboot (uno bootloader), does it do the 3 blinks when you press reset? If not, it's not bootloadrd.

Please link to the exact board you bought - there are several CH340G designs sold under almost identical listing titles, some of which don't break out DTR and use a different pinout. Also, make extra sure your connections are right (particularly, that TX and RX aren't swapped - this is really easy to do). If working on breadboard test continuity

I can personally vouch for the black ones with the 3.3v / 5v switch on them as being excellent. They are my go-to USB serial adapters now - they're the ones I bundle with my assembled ATTiny841/1634 boards as an extra cost option
Hmm.

http://www.ebay.com/itm/USB2-0-6Pin-CH340G-Converter-for-STC-Arduino-PRO-Instead-of-CP2102-PL2303-To-TTL/191146797242?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649#rwid

(More coming; I am thoroughly frustrated at this point and heading to bed.)
I think these are two different issues. I _suspect_ that this CH340G device can only be used to flash code onto a 328P with a bootloader installed already. Issue one.
Issue two: I'll return to this and wire an LED to the 328. I wasn't aware of the 3-blink LED on reset with an Arduino bootloader installed. Handy!

ieee488

Hmm.

http://www.ebay.com/itm/USB2-0-6Pin-CH340G-Converter-for-STC-Arduino-PRO-Instead-of-CP2102-PL2303-To-TTL/191146797242?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649#rwid
I have one that looks like that except it has 3.3V instead of CTS.

No problem programming my ESP-01 with it.

Chris_77

Don't use 1.0.6 of the IDE, the current versions are working great - and it never fixed problems with sync errors.

If you've flashed it with optiboot (uno bootloader), does it do the 3 blinks when you press reset? If not, it's not bootloadrd.

Please link to the exact board you bought - there are several CH340G designs sold under almost identical listing titles, some of which don't break out DTR and use a different pinout. Also, make extra sure your connections are right (particularly, that TX and RX aren't swapped - this is really easy to do). If working on breadboard test continuity

I can personally vouch for the black ones with the 3.3v / 5v switch on them as being excellent. They are my go-to USB serial adapters now - they're the ones I bundle with my assembled ATTiny841/1634 boards as an extra cost option
I have one that looks like that except it has 3.3V instead of CTS.

No problem programming my ESP-01 with it.
Right.

I can confirm that this unit DOES work, and DOES work rather well. I've since been able to flash the bootloader onto my 328P-PU DIP IC (via a Nano 2.0 and ICSP headers), and am using this device to flash code over to the IC. Works quite well.

I'll probably put up at least a Fritzing diagram in my thread with an ACTUAL, VERIFIED WAY that one may accomplish flashing a bootloader and code to a naked 328 chip.

https://forum.arduino.cc/index.php?topic=485675.msg3315158

Go Up