logo elektroda
logo elektroda
X
logo elektroda

CH341 from Aliexpress and Allegro - what modifications are needed after purchase?

Beata223lala 2529 16
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • Hello to all the skinny roosters :)

    I bought on AliExpress and on Allegro CH341 programmers for my rooster so that it would lather well :) and it turned out that they required modifications.
    I will therefore describe what I reworked and how.

    The first one from AliExpress did not feed 5V to the chip to be programmed, only 3.3V, which did not allow chips such as the M95160 to be programmed. A path was cut and a jumper added that feeds either 3.3V or 5V to the power supply of the programmable chip. The CH341 chip is powered by 5V. In my opinion, no modification is needed to power the CH341 to 3.3V, as everyone is writing about, a specialist in the A-film denounces these lies. But a modification is needed so that either 3.3V or 5V can be applied to the power supply of the programmable bone, he discusses this in movie B.
    video A https://www.youtube.com/watch?v=J8-Sh7DjiXw
    video B https://www.youtube.com/watch?v=hPKckby54uA

    I reworked it as shown in the picture, different from film B, where it permanently gave 5V to the power supply of the programmable chip without switching.
    Everything is soldermasked and UV cured. When curing, don't forget to layer and heat, I heated it at 130C.
    The lower parts of the pins can be bent and undercut so that they can be soldered directly to 5V, 3.3V and the cut path.
    Modified CH341 programmer with voltage jumper 3.3V/5V and power trace cut

    There was a bigger problem with reworking the other programmer from Allegro, which had a 3.3V switch, but it didn't switch anything - it didn't work :) . The TTL <-> 编程 switch did not work on this circuit either. In addition there were incorrectly soldered capacitors and resistors. After reworking, everything works correctly. The CH341 chip has a 5V supply, and either 3.3V or 5V can be supplied to the programmable chip supply. The TTL option <-> 编程 also works. The 3.3V, 5V power switch works on the principle that when switched to 5V it short-circuits the output to the input of the 3.3V stabiliser. I've checked: some stabilisers draw current when shorted like this, others don't; the one on this board doesn't draw current when shorted like this, so that's why it can be done, unless I'm mistaken?

    The conversion of the Chinese junk from Allegro is described in picture 2
    Modified CH341 programmer with highlighted PCB trace cuts, jumper wires, and component changes.
    Perhaps it will be of use to someone? I will put a decent negative to this Chinese Allegro :) 3.3V to 5V switch - such a mockery????
    In addition, the ZIF connector is oriented the other way and it is not possible to plug in the adapter for 1.8V because it interferes with the handle, which I finally bent to the side :) The ZIF connector also cannot be soldered the other way because on the other side there is a switch where the handle would come out. Such a Chinese bubble I made a complaint and he is supposed to refund me for it.

    Or do any of the roosters have a different opinion on the CH341 power supply and the spec in the A-film is banging the crap out of it?

    I'll still add the turnout of the different dice as in video B. Further failed to write this Microchip 24LC21-1 bone which has an extra Vclg pin on leg 7, supposedly they write that Vpp as in PIC processors???? Unfortunately the PicProm programmer I used to program the PICs for me doesn't work on my laptop's COM port and the desktop one did. Programmers on COM such as the JDM mini, or JDM had resistors on the lines or they didn't have them and didn't fire the EEPROM and the RS232 on the computer had +12V to -12V on the outputs.
    EEPROM and microcontroller pinout diagram with handwritten annotations

    Anyway, apart from the Chinese, the Poles are also offering us crap.
    On an Allegro auction the seller msalamon_en offers a junk with an adapter for 93xx/95xx, which does not allow programming of the 93C48X, 93LC46BX and M93S66-125 chips.
    Above picture. The first two have pins brought out differently, and the third has an additional analogue control signal. Instead of doing 93xx/95xx on the adapter, there should be two 93xx types there.
    The 95xx chip itself can be programmed on a 25xx with the supply voltage increased to 5V. These are the kind of bobbles we are offered by our compatriots on Allegro :)

    In a few days I will add here a design for an adapter to the CH341 for the two types of 93xx chips with two jumpers to select 8-bit, 16-bit memory organisation and a second jumper to switch W Write Enable as in the M93S66-125 chip, where there are two digital signals W and PRE. In general there should be two jumpers for setting 0-1 on the NC pins: in one version of the 93xx chips these are pins 6, 7, in the other version pins 1, 8. And the adapter itself should provide programming for both versions of the 93xx, why the 95xx there.

    Greetings to all yappy and skinny roosters :) A good rooster is a skinny rooster :)

    In a bubble from an allegro from the seller "salomon", I still soldered the socket by 180 so that the 1.8V adapter would go in, and a switch to the other side of the board so that the cock from the socket would close. Now the circuit is fully functional.
    CH341 from Aliexpress and Allegro - what modifications are needed after purchase?

    Cool? Ranking DIY
    About Author
    Beata223lala
    Level 9  
    Offline 
    Beata223lala wrote 18 posts with rating 29. Live in city Warszawa. Been with us since 2017 year.
  • ADVERTISEMENT
  • #2 21807271
    _ACeK_
    Level 14  
    Beata223lala wrote:
    TTTL <-> 编程


    :smile: Lean tummy cock with advice for blondes :lol: Not everyone knows Chinese like they know English :idea: That's why when you write something in Chinese you write it in Polish in parentheses :wink:

    Screenshot from Google Translate: Chinese 编程 translated as programowanie
  • #3 21807286
    ...KUBA...
    Level 25  
    And isn't it better to buy the 1.7 version at the same price? Besides, there are already alternative programmers on a different chip for the same price and I haven't found that they require rework....
  • ADVERTISEMENT
  • #4 21807420
    DJ MHz
    Level 26  
    _ACeK_ wrote:
    Beata223lala wrote:
    TTTL <-> 编程


    :smile: Lean tummy cock with advice for blondes :lol: :lol: Not everyone knows Chinese the way English is known :idea: This is why when you write something in Chinese you write it in Polish in brackets :wink:

    Screenshot from Google Translate: Chinese 编程 translated as programowanie


    Advice to the electrode user. This is how it is described on the programmer, there is no word in Polish for programming. So as correctly and clearly as possible the user wrote
  • #5 21807431
    chemik_16
    Level 26  
    ...KUBA... wrote:
    There are already alternative programmers

    Which ones, for example ?
  • #6 21807514
    Beata223lala
    Level 9  
    Then maybe write ...KUBA.... which one do you recommend or use ? After password 1.7 I can't find anything only Willem 7.1 but I doubt it supports both types of 93xx dice. There is only one 93xx link unless something on the jumpers needs to be switched ??? So many switches there that your head is full ???

    I'll also attach a diagram of the CH341 board and two batches ripped from the EEPROM of the Renault Clio comfort module, I don't know from which Clio model. Maybe someone can point out where in the batch the key for coding the key is stored ????

    CH341A MiniProgrammer circuit diagram with labeled signal and power connections
    The manual for the CH341 I will not include because it can be downloaded from the manufacturer's website https://www.wch-ic.com/downloads/CH341DS1_PDF.html and found by typing CH341 datashet into Google. It says what is to be disconnected to leg 9 of the circuit.

    Which is this code for coding the key ?

    Screenshot of a hex editor displaying EEPROM memory dump contents.
  • #7 21807515
    p.kaczmarek2
    Moderator Smart Home
    1.7 CH341? I seem to be finding something but have not tested it. Has anyone tested it?
    CH341A V1.7 USB programmers with blue ZIF sockets shown in three variants


    Quote:
    Now supports 64M spi, such as MX25L51245GZ, and will continue to add it later (if you have unsupported 25 chips, you can send it to test) Do other 341 programmers support the programming of 93, 95, and 45 chips?
    USB adapter with ZIF socket labeled for EEPROM chips 24XX and 25XX series
    It is more convenient to use a toggle switch to switch the voltage, just dial it
    CH341A USB programmer with ZIF socket V1.7, top view
    Using a high-current adjustable voltage regulator chip, it can output 5v, 3.3v, 2.5v, 1.8v and other voltages, just flip the switch.
    CH341A USB programmer v1.7 with labeled pins and USB connector
    It is realised by a special level conversion chip, which is stable and reliable, and converts all the functions of 24 and 25.
    CH341A programmer board with USB connector, pin header, and Chinese labels
    Directly equipped with a full set of adapter boards: universal sop adapter board, 93, 45, bga24, wson8, etc.
    Set of SOP to DIP adapter PCBs with pin headers and DIP socket
    Helpful post? Buy me a coffee.
  • #8 21807644
    ...KUBA...
    Level 25  
    Interestingly when reworking my CH341A (BLACK version like the author's) I also wanted to do it identically on the jumper here... but as for me you need to use two jumpers to switch from 3.3V to 5V....

    p.kaczmarek2 wrote:
    1.7 CH341? I seem to be finding something but have not tested. Has anyone tested it?

    Yes I have one and this is exactly the one I had in mind, you have to be careful because the markings in the auction names are misleading.... 1.8, 2.5 are not consecutive versions! just the supply voltage values! It seems to me that sellers in some auctions describe other devices as 1.8 (but they will probably explain that they meant the voltage value and not the newer version) as far as I know the latest version is the 1.7....

    alternatives:
    - CH341B
    - CH347
    - XTW-3
    - XTW...

    I think a comparison of these modules would be worthwhile ;)
  • ADVERTISEMENT
  • #9 21807933
    RomanWorkshop
    Level 14  
    As for modifying various programmers (e.g. USBasp, CH341) and modules (e.g. Arduino Nano) to give 3.3V operation in addition to 5V signals, I have personally stopped doing so. Instead, I started using a simple adapter that reduces the 5V (VBUS) supply voltage of the USB port to 3.3V (e.g. with a linear LM1117-3.3V LDO type stabiliser). Below you can see such an adapter, which I built using: PCB modules with male and female USB-A connectors (connected with wire jumpers), LM1117-3.3V stabiliser (SOT-223 housing) and attached tantalum capacitors: 10uF/10V input and 22uF/6.3V output.

    USB adapter converting 5V to 3.3V using LM1117 and two tantalum capacitors USB adapter with male and female connectors and voltage regulator circuit

    It will ensure that the device being powered gets 3.3V instead of 5V, so it will generate signals of that level. No time wasted on modifications and works with any new device. However, you need to check that the device will work properly at 3.3V (e.g. for the Arduino Nano such a voltage is theoretically too low, due to the ATmega328 microcontroller clocked at 16 MHz, which at this frequency should be supplied with a minimum of 3.8V).
    Helpful post? Buy me a coffee.
  • #10 21808095
    Beata223lala
    Level 9  
    The problem is that when you lower the voltage on the USB to 3.3, the CH341 circuit requires a different supply for leg 9 on which the voltage is supposed to be 3.3V. With a 5V supply this is produced by an internal stabiliser. In the case of a 3.3V supply, you have to supply 3.3V to leg 9 because the internal one is not able to produce this voltage. Not to mention the other voltages of 2.5 1.8. The conversion is needed to handle the 93xx/95xx dice, which require a 5V supply. The first black module is OK for I2c, 24xx, SPI 25xx chips that can operate with a 3.3V supply.

    The second one I described is a clumsy bubble. I suspect it was designed by a Chinese layman or some Chinese k.. It looks like AI has already designed it for them for business such is the debilitation there made from a decent CH341 chip. Chinaman sits down in front of AI writes goy according to the net they want such a thing AI with a 3.3V, 5V switch, design it for them :) :) )))).

    In order to realistically switch all the power supply points in the CH341 circuit it is not possible to do this on one jumper you need to use three jumpers or a double helical switch as shown below. There are three EEPROM supply points in the circuit, leg 28 VCC of the CH341 and leg 9 of the CH341 and they must be supplied asymmetrically depending on the voltage.
    Power switching diagram for CH341 using a 3.3V / 5V switch

    To realistically change the levels to the desired voltage of 3.3V, 2.5V 1.8V you need to use YF08EQ1 Bi-directional, Level-Shifting. this is in the circuit in the CH341 kit and as below. How they would use a switch there and two or three stablizers 3.3V 2.5V and 1.8V maybe adjustable then you could switch to all voltages.
    1.8V adapter with ZIF socket and voltage level shifting components on PCB
    I should add that this adapter can be fitted to both 24xx and 25xx sockets, whether it makes sense to fit it to 24xx I don't know, but it will convert all signals to 1.8V.

    There is also such a circuit written about by p.kaczmarek2 with infra-red sensor and voltage switch I think this is the best option, except that there is no clip and adapter 25xx to 93xx type I and II.
    CH341A Programmer V1.7 kit with adapters and 1.8V level shifting support.



    In the circuits from Aliexpress named CH347 in some there are two stabilisers and YF08EQ1 Bi-directional, Level-Shifting in others not as below.

    Two CH347 modules, one with additional voltage regulators and YF08EQ1 chip
  • ADVERTISEMENT
  • #12 21808111
    Paul_T
    Level 1  
    There is a newer version of this CH347 programmer:



    Much faster reading.


  • #13 21808956
    Beata223lala
    Level 9  
    I would also add a 25xx, 95xx to 93xx type I and II transition. how it should be done not the crap that sells a poor shed el "msalamon_en" with bubbles for 32zł and it's not salomon but rather a pandora's box :)

    Schematic and PCB layout of adapter for 25xx/95xx to 93xx type I and II EEPROMs

    And for printing and Eagle files attached. Maybe someone will correct or make corrections.
    And type
    93C06,
    93C46A/B/C,
    93C56
    93Sx6-125,
    II type seems to be the ones with X endings only two I found but they have SMD versions, bga
    93C46X
    93LC46BX

    I will also add how it came out after soldering. Unfortunately the tracks only on one side and the pin comb had to be soldered on the tracks side.

    CH341 from Aliexpress and Allegro - what modifications are needed after purchase?

    Tests on the 93c86WP memory found that AsPeogrammer 2.1.0.13 and NeoProgrammer 2.1.0.19 reads and writes the EEPROM correctly it is possible to change the memory organisation from 8bit to 16bit and back when supplying 3.3V as well as 5V to the dice. The CH341A V2.2.1.1 program did not read the written dice correctly.
    CH341 from Aliexpress and Allegro - what modifications are needed after purchase?

    The programs after selecting "Detect chip" correctly give 93c86WP and give the memory organisation according to the jumper setting and not the one in which the EEPROM was written.
  • #14 21809075
    gulson
    System Administrator
    Thanks for sharing your opinion. How many Ch341's have I already sent to the Bin....

    Allow me to translate into English?
    Very interesting conclusions, although a bit overly humorous.
    Write to me Parcelmate on Private Message and I'll send a small gift

    --
    Rooster on weight loss gulson
  • #15 21809927
    Beata223lala
    Level 9  
    Why are these CH341s going in the bin like this ? Something is happening to them ? I burned one 24C02 memory by putting it the other way round but the CH341 still works ? I ordered this 1.7 CH341 on aliexpress for 42£ when it arrives I will measure it I will test it and write what and how is with it ?

    The 1.7 chip allows you to set all voltages 1.8V 2.5V 3.3V and 5V changes both the EEPROM supply voltage and signal levels. In my opinion, this is not needed and 3.3V and 5V and a 1.8V adapter are sufficient, e.g: (m95160WP 2.5V-5.5V), others wide range (M95160-DF 1.7 V to 5.5 V ), (MX25L12873F 2.7V-3.6V), others low range (24C02C Microchip 4.5V-5.5V). From my searches, everything is manageable at 1.8V, 3.3V and 5V. So when first buying the 1.7 CH341 would this be the best choice maybe yes? Nice if it came with a clip and SOP8 150mil, SOP8 200mil bases.
  • #17 21827871
    kb2

    Level 2  
    Well, I'll also link to the topic: I also bought a CH341 programmer on Aliexpress and it's like this:
    Chip - CH341B
    chip power supply - 3.3 V; pin 9 - 3.3 V
    power supply on the socket - 3.3 V
    Black board, description "CH341 Pro". As you can see, it probably randomly depends on which manufacturer you end up with....
    On the packaging the manufacturer: Shenzen Esida Electronic etc.... ;)
    PS.
    I don't agree that the chip can be powered by 5 V, and it is enough to lower the power supply to the memory bones.
    In the image below is a test of the board with a 5 V supply to the chip. The second probe is connected to 3.3 V.
    You can see pulses exceeding 4.5 V, if the memory has protection in the form of a diode connected cathode to 3.3 V,
    it is obvious what will happen.
    Close-up of Hantek oscilloscope with signal waves and connected CH341 programmer
    image taken from: https://www.onetransistor.eu/2017/08/ch341a-mini-programmer-schematic.html
    Company Account:
    AUTOMATYKB Krzysztof Brudzisz
    Klęczany 229, Kleczany, 38-333 | Company Website: https://automatykb.pl
📢 Listen (AI):
ADVERTISEMENT