Power Transducer Control Module: Design and Assembly
3r33333. 3r3-31. It's no secret that complex modern converters, for example, online UPS, are running DSP /MK or ASIC. The main suppliers of DSP for power electronics are two companies - Texas Instruments and Infineon, but today we will focus on STMicroelectronics products - the STM32F334 series. This line MK is designed to control the drive and build power converters: PFC, inverters, switching power supplies, UPS and others. 3r33333. 3r33333. 3r33333. 3r33333. Of course, the F334 series cannot withstand the “power” of such popular solutions as the TMS320F28335 and others, but it has one important advantage — the cost. The older STM32F334R8T6 stone costs $ ? has the required set of peripherals (HRPWM, ADC, comparators) and performance for building powerful enough converters (tens of kilowatts) with good reliability and fault tolerance. 3r33333. 3r33333. 3r33333. 3r33333. For the electronics developer, the ecosystem around the DSP /MK that he works with is important: documentation, debugging tools, code samples, and hardware. TI has it all, yes - it's expensive, yes - it's hard to buy, but it is and that is why in most modern solutions in the field of electric drive and power engineering there are TMS320. For some reason, ST company overlooked the F334 series, although there is good quality documentation as any STM32 is available, but there are no examples of hardware with a full code and debug boards (the F3348-Disco toy does not count). Well, we will correct this deficiency. 3r33333. 3r33333. 3r33333. 3r33333. In its previous article 3r3323. I talked about my project “developer kit” and even demonstrated one of the components - the power module. Today I will talk about the 2nd (there will be 3 in total) module that allows you to implement any converter topology and at the same time is several times cheaper than competitors. The project is of course open and all the sources can be viewed at the end of this article. 3r33333. 3r33333. 3r33333. 3r33333. 3r33333. 3r33333.
3r33333. 3r33333.
The idea of
3r33333. 3r33333. I am far from being the first to think about using a kind of universal module on the basis of which you can build different converters with different topology options. This approach allows you to have one board for all occasions and the main thing is to reduce the amount of code, because the module is the same, once set up and forgotten. 3r33333. 3r33333. 3r33333. 3r33333. Let's now look at a couple of examples of how this idea has already been implemented by other people /companies. I will give just two examples:3r33333. 3r33333. 3r33333.
3r33333. 3r3304. TMS320F28379D Control card - cost 160 $. The ecosystem is excellent, there are debugging complexes for it, but the price is Is it small if you work in a well-to-do R & D center, and if you decide to build UPS for yourself or work for a company easier? Yes, and the $ 160 module to burn, it seems to me, everyone will feel sorry for; 3r3307. 3r33333. 3r3304. VectorCARD К1921ВК01Т - an excellent solution, and even on the domestic stone
3r33333. 3r33333. 3r33333.
3r33333. 3r3304. Availability of HRPWM and fast ADC 3r3307. 3r33333. 3r3304. RS-485 on board
3r33333. 3r3304. UART with output for a display connector (compatible with Nextion) 3r3307. 3r33333. 3r3304. The implementation of hardware protection on logic
3r33333. 3r3304. 12V power supply to use one AC /DC to 12V module for both the “brain” and the drivers for the power section 3r3307. 3r33333. 3r3304. The cost is at least 3 times lower than the cost of the TMS320F28379D Control card, that is, $ 50 maximum 3r3307. 3r33333. 3r3304. Temperature sensor input for the radiator
3r33333. 3r3304. A couple of GPIO, for example, relay pull 3r3307. 3r33333. 3r3304. Sync signal input and output so that you can parallel the operation of multiple devices 3r3307. 3r33333. 3r3309. 3r33333. 3r33333. The result was this structural scheme: 3r3333331. 3r33333. 3r33333. 3r33333. 3r3398. 3r33333. 3r33333. 3r33333. 3r33333. It should be noted right away that I managed to significantly reduce the cost of the module. I ordered components on 5 boards, where the components went around ~ $ 7? that is, $ 14 /module. Here the true trick is the cost of all the components, but without the PCB. The arithmetic is simple: ordering 5 boards in 4 layers costs $ 80-10? that is, another $ 14-20 for each module, don't you agree humanely? With the number of 100 pieces, the cost of the board is already $ 1.5 /piece, so in the foreseeable future I plan to order 100-200 boards (see how cheaper it will be) and those who want will have the opportunity to buy boards at times cheaper than $ 14. Those who need 20-30 boards or $ 100 do not bother you, they can already order them themselves, since there will be a gerbera prepared as well. 3r33333. 3r33333. 3r33333. 3r33333.
Development
3r33333. 3r33333. There is nothing complicated and incomprehensible in the circuitry of the module, for a start I suggest you open a schematic diagram so that you understand what it is about and I will tell you how the structural diagram above has turned into a ready-made solution. Download the scheme here - PDF . 3r33333. 3r33333. 3r33333. 3r33333.3r33333. 3r3304. The module has 1 “main connector”, where 12 pins carry 12V power, a couple of GPIO, an additional UART (suddenly you want to screw the ESP), RS-485 and input /output to synchronize devices; 3r3307. 3r33333. 3r3304. There are 5 channels, they are all exactly the same. Each channel has a complementary pair of High result PWM (HRPWM), which allows you to control the half-bridge. There are also 2 ADC channels for the implementation of current and voltage feedback and the cherry on the cake - fault input. For example, you have a short circuit in the power section, the comparator detected the excess current and issued a log. 1 as a sign of an accident, so filing “1” at this input interrupts the operation of the device; 3r3307. 3r33333. 3r3304. The error signal from the fault input goes to 2 places: to the BKIN input at the microcontroller and through the inverter to the input of the AND gate. The BKIN input is also a hardware protection and turns off the PWM generation even if the MK is frozen, but I wanted to play it safe and add more logic so that it would precisely cut off the signal; 3r3307. 3r33333. 3r3304. On the module, the SWD interface is brought into a separate CWF-4 connector for easy debugging, and the UART and power supply for connecting the display or communicating with other modules are brought to the second connector. Nextion displays are now popular, so the connector for them is designed and I also make my HMI panel with a similar communication method (UART, + 5D, GND); 3r3307. 3r33333. 3r3304. The board contains a PHY for the RS485 interface with a terminating resistor and ESD protection. The choice for this interface fell because it is anywhere, because it is an industry standard. For example, you will want to combine your voltage inverter with a diesel and it will be convenient to send /receive commands. Yes, and in any PLC there is also RS485; 3r3307. 3r33333. 3r3304. I also installed a small non-volatile memory for storing settings or something else useful. 3r3307. 3r33333. 3r3309. 3r33333. 3r33333. This circuit diagram eventually turned into a 4-layer PCB size 115x40 mm. In principle, you can dilute your version in 2 layers, but the dimensions will grow. It was important for me to get a width of no more than 40 mm, so that after installation in PBD connectors, the total height was 47-50 mm - in terms of electrolytic capacitors 35x50 mm. The board looks like this:
3r33333. 3r33333. 3r33333. 3r3144. 3r33333. 3r33333. 3r33333. 3r33333. Unfortunately, when I ordered the boards, instead of a black mask I indicated a green one - the main fiasco of this revision)) Whoever didn’t understand how the module is inserted, I suggest to look here: 3r33331. 3r33333. 3r33333. 3r33333.

Build
3r33333. 3r33333. As with the previous module, the printed circuit boards were ordered in 3r3322. PCBway, the guys provided free fees and another stencil. The latter made my life much easier and saved time, 5 boards with 200+ components each were assembled in 1 hour. 2 weeks after ordering, couriers brought me such beauty:
3r33333. 3r33333. 3r33333. 3r33175. 3r3176.
3r33333. 3r33333. 3r33180. 3r3181.
3r33333. 3r33333. 3r33333. 3r33333. Yes, I did not change the mask in the order form, but apparently feeling it to me 3r3187. Gilded handle
3r33333. 3r33333. 3r33333. 3r3197. 3r33333. 3r33333. 3r33333. 3r33333. Now you need to install the board in the printer and apply the paste. Here are a couple of tips. Firstly, if you take the paste for aliexpress, then only 500 g cans, it is of the best quality (apparently it is stored correctly). Second, store the pasta in the refrigerator. Thirdly, after using the stencil, be sure to wash the paste, a regular sponge and a droplet of detergent (the best is best) work wonders, then dry the stencil and, after drying, wrap in cling film if you will not use it for more than a week. Apply the paste to the board:
3r33333. 3r33333. 3r33333.


3r33333. 3r33333. 3r33333.

3r33333. 3r33333. 3r33333.



3r33333. 3r33333. 3r33333.

3r33333. 3r33333. 3r33333. 3r33333.
3r33333. 3r3304. The schematic diagram is PDF 3r3307. 3r33333. 3r3304. Component List (BOM) - Excel 3r3307. 3r33333. 3r3304. Gerber files for ordering printed circuit boards - RAR 3r3323. 3r3307. 3r33333. 3r3304. Project with pinout for STM32CubeMX -
Ioc 3r3323. 3r3307. 3r33333. 3r3309. 3r33333. 3r33333. 3r33333. 3r33333.
Conclusion
3r33333. 3r33333. Now there are 2 modules for development, this is enough to build a converter. Of course there will be a third module, but without HMI you can live, and those who are interested can purchase nextion in their own pocket. In the next article, it will be possible to assemble a full-fledged converter, to realize the P and PI regulators which we so zealously asked in the comments. For obvious results, the following articles will be on specific topologies: their analysis, calculations, prototyping, code, and most likely will begin with the buck and boost topologies, as the simplest and most common. 3r33333. 3r33333. 3r33333. 3r33333. I would also like to thank the guys from 3r3322. PCBway that help with boards of any complexity of excellent quality. Thanks to them, the project is moving quite actively and in a couple of months I managed to do something that was too lazy to implement the previous couple of years. 3r33333. 3r33333. 3r33333. 3r33333.
It may be interesting
weber
Author24-11-2018, 12:38
Publication DateDevelopment / Programming
Category- Comments: 0
- Views: 289
Miro Paris vous propose une large gamme d'accessoire de beauté, maquillage, skincare, kbeauty, crèmes en provenance de Corée du sud, Japon, et Hong Kong. Check Out: Cosmétiques Asiatiques