• Guest
HabraHabr
  • Main
  • Users

  • Development
    • Programming
    • Information Security
    • Website development
    • JavaScript
    • Game development
    • Open source
    • Developed for Android
    • Machine learning
    • Abnormal programming
    • Java
    • Python
    • Development of mobile applications
    • Analysis and design of systems
    • .NET
    • Mathematics
    • Algorithms
    • C#
    • System Programming
    • C++
    • C
    • Go
    • PHP
    • Reverse engineering
    • Assembler
    • Development under Linux
    • Big Data
    • Rust
    • Cryptography
    • Entertaining problems
    • Testing of IT systems
    • Testing Web Services
    • HTML
    • Programming microcontrollers
    • API
    • High performance
    • Developed for iOS
    • CSS
    • Industrial Programming
    • Development under Windows
    • Image processing
    • Compilers
    • FPGA
    • Professional literature
    • OpenStreetMap
    • Google Chrome
    • Data Mining
    • PostgreSQL
    • Development of robotics
    • Visualization of data
    • Angular
    • ReactJS
    • Search technologies
    • Debugging
    • Test mobile applications
    • Browsers
    • Designing and refactoring
    • IT Standards
    • Solidity
    • Node.JS
    • Git
    • LaTeX
    • SQL
    • Haskell
    • Unreal Engine
    • Unity3D
    • Development for the Internet of things
    • Functional Programming
    • Amazon Web Services
    • Google Cloud Platform
    • Development under AR and VR
    • Assembly systems
    • Version control systems
    • Kotlin
    • R
    • CAD/CAM
    • Customer Optimization
    • Development of communication systems
    • Microsoft Azure
    • Perfect code
    • Atlassian
    • Visual Studio
    • NoSQL
    • Yii
    • Mono и Moonlight
    • Parallel Programming
    • Asterisk
    • Yandex API
    • WordPress
    • Sports programming
    • Lua
    • Microsoft SQL Server
    • Payment systems
    • TypeScript
    • Scala
    • Google API
    • Development of data transmission systems
    • XML
    • Regular expressions
    • Development under Tizen
    • Swift
    • MySQL
    • Geoinformation services
    • Global Positioning Systems
    • Qt
    • Dart
    • Django
    • Development for Office 365
    • Erlang/OTP
    • GPGPU
    • Eclipse
    • Maps API
    • Testing games
    • Browser Extensions
    • 1C-Bitrix
    • Development under e-commerce
    • Xamarin
    • Xcode
    • Development under Windows Phone
    • Semantics
    • CMS
    • VueJS
    • GitHub
    • Open data
    • Sphinx
    • Ruby on Rails
    • Ruby
    • Symfony
    • Drupal
    • Messaging Systems
    • CTF
    • SaaS / S+S
    • SharePoint
    • jQuery
    • Puppet
    • Firefox
    • Elm
    • MODX
    • Billing systems
    • Graphical shells
    • Kodobred
    • MongoDB
    • SCADA
    • Hadoop
    • Gradle
    • Clojure
    • F#
    • CoffeeScript
    • Matlab
    • Phalcon
    • Development under Sailfish OS
    • Magento
    • Elixir/Phoenix
    • Microsoft Edge
    • Layout of letters
    • Development for OS X
    • Forth
    • Smalltalk
    • Julia
    • Laravel
    • WebGL
    • Meteor.JS
    • Firebird/Interbase
    • SQLite
    • D
    • Mesh-networks
    • I2P
    • Derby.js
    • Emacs
    • Development under Bada
    • Mercurial
    • UML Design
    • Objective C
    • Fortran
    • Cocoa
    • Cobol
    • Apache Flex
    • Action Script
    • Joomla
    • IIS
    • Twitter API
    • Vkontakte API
    • Facebook API
    • Microsoft Access
    • PDF
    • Prolog
    • GTK+
    • LabVIEW
    • Brainfuck
    • Cubrid
    • Canvas
    • Doctrine ORM
    • Google App Engine
    • Twisted
    • XSLT
    • TDD
    • Small Basic
    • Kohana
    • Development for Java ME
    • LiveStreet
    • MooTools
    • Adobe Flash
    • GreaseMonkey
    • INFOLUST
    • Groovy & Grails
    • Lisp
    • Delphi
    • Zend Framework
    • ExtJS / Sencha Library
    • Internet Explorer
    • CodeIgniter
    • Silverlight
    • Google Web Toolkit
    • CakePHP
    • Safari
    • Opera
    • Microformats
    • Ajax
    • VIM
  • Administration
    • System administration
    • IT Infrastructure
    • *nix
    • Network technologies
    • DevOps
    • Server Administration
    • Cloud computing
    • Configuring Linux
    • Wireless technologies
    • Virtualization
    • Hosting
    • Data storage
    • Decentralized networks
    • Database Administration
    • Data Warehousing
    • Communication standards
    • PowerShell
    • Backup
    • Cisco
    • Nginx
    • Antivirus protection
    • DNS
    • Server Optimization
    • Data recovery
    • Apache
    • Spam and antispam
    • Data Compression
    • SAN
    • IPv6
    • Fidonet
    • IPTV
    • Shells
    • Administering domain names
  • Design
    • Interfaces
    • Web design
    • Working with sound
    • Usability
    • Graphic design
    • Design Games
    • Mobile App Design
    • Working with 3D-graphics
    • Typography
    • Working with video
    • Work with vector graphics
    • Accessibility
    • Prototyping
    • CGI (graphics)
    • Computer Animation
    • Working with icons
  • Control
    • Careers in the IT industry
    • Project management
    • Development Management
    • Personnel Management
    • Product Management
    • Start-up development
    • Managing the community
    • Service Desk
    • GTD
    • IT Terminology
    • Agile
    • Business Models
    • Legislation and IT-business
    • Sales management
    • CRM-systems
    • Product localization
    • ECM / EDS
    • Freelance
    • Venture investments
    • ERP-systems
    • Help Desk Software
    • Media management
    • Patenting
    • E-commerce management
    • Creative Commons
  • Marketing
    • Conferences
    • Promotion of games
    • Internet Marketing
    • Search Engine Optimization
    • Web Analytics
    • Monetize Web services
    • Content marketing
    • Monetization of IT systems
    • Monetize mobile apps
    • Mobile App Analytics
    • Growth Hacking
    • Branding
    • Monetize Games
    • Display ads
    • Contextual advertising
    • Increase Conversion Rate
  • Sundry
    • Reading room
    • Educational process in IT
    • Research and forecasts in IT
    • Finance in IT
    • Hakatonas
    • IT emigration
    • Education abroad
    • Lumber room
    • I'm on my way

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.
Power Transducer Control Module: Design and Assembly 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 The people in scientific research institutes and VPKshniki rejoice 3r3188. There is a debugging complex in the form of a chastotnik, an analogue (pin-to-pin) with a module from ti, but the price is 1?000 rubles. For the harsh domestic industrial and military industrial complex is cheap, and the rest is not very. 3r3307.  3r33333. 3r3309. 3r33333.  3r33333. And so, what I wanted to do in the end A module that can be used both as a debugging tool and as a component in a small series. From here are a number of requirements that I have got:
 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. 3r33333.  3r33333. 3r33333.  3r33333. In the first picture you can also notice a certain board with a bunch of connectors and especially without components. This is something like a “motherboard” for more convenient prototyping. The BH-10 (IDC-10) connectors distribute the same 5 control channels + to the terminal blocks, the communication interfaces are output and the power connector is installed. All this allows not to collective farm a bunch of wires. "Motherboards" were ordered separately, so they will come later and after verification there will be available source codes. 3r33333.  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
covered with immersion gold so as not to be sad. For my task this is not critical, but due to the excellent planarity of the contacts, the solder paste is applied evenly and the components do not lead to the sides, even if the thermal profile for the furnace is not very optimal. 3r33333.  3r33333. 3r33333.  3r33333. The stencil was ordered with a frame made of aluminum, because I have a stencil printer, and without a frame I can’t fix it there. If you don’t have a printer, order without a frame: you will be able to apply paste (you spend a few minutes longer) and still save money, because stencil without frame weighs about 400 grams, and with a frame of 1.8 kg. Because of this weight, you immediately get on delivery by courier, because mail does not carry more than 2 kg, only EMS and you have to pay $ 30-40 more, so be aware. The stencil itself looks like this:
 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. At this stage, I’m going to be safe: I’ll remove the paste for the LQFP-64 package under the STM32F334R8T6 microcontroller. The fact is that I could nakosyachit somewhere the power system and there is a chance that + 12V will fall on the MC and burn it, but I would not want to destroy the stones at $ 5. Therefore, I solder everything at this stage except the microcontroller, the connectors and the buzzer. I will install them already manually after checking the voltages of + 3.3V and + 5V. Now the most boring stage is to install the components, but I’m planning to buy a pick place machine for myself soon, I’ll only drink coffee))
 3r33333. 3r33333.  3r33333.
3r33333.  3r33333. 3r33333.  3r33333. The components are installed and now send them to the oven:
 3r33333. 3r33333.  3r33333. 3r33333.  3r33333. 3r33333.  3r33333. We connect the programmer, for example, the Chinese whistle st-link, but I strongly advise you to purchase a firm st-link v.2-ISOL with a galvanic isolation. It's all like admins with backups: “Some have already burned a laptop and started using insulators, others have not yet started using insulators” . If the price tag on the native st-link frightens you, then there is an option to purchase an insulator module on Ali along with a Chinese whistle, they are usually implemented on ADuM-ah. In order not to suffer with a pinout when connecting a debugger, I made a cord for connecting these modules, now it’s not possible to prevent a connection error exactly: 3r33333.  3r33333. 3r33333.  3r33333. STM32CubeProgrammer
. Open it, you should determine your debugger, if you saw its id in the upper right corner, then press Connect and if everything is mounted correctly, then we will see the microcontroller id, the kernel, the MK series itself (I have F334):
 3r33333. 3r33333.  3r33333. Sources
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. 3r33333.  3r33333. 3r33333.  3r33333. I hope the article was interesting to you, if you have some questions about the topology of the buck in advance, then you can voice them in the comments or the LAN, and I will try to answer them when writing the next article and thus make the material more useful. 3r33333. 3r33333. 3r33333. 3r33333. 3r33337. ! function (e) {function t (t, n) {if (! (n in e)) {for (var r, a = e.document, i = a. scripts, o = i.length; o -;) if (-1! == i[o].src.indexOf (t)) {r = i[o]; break} if (! r) {r = a.createElement ("script"), r.type = "text /jаvascript", r.async =! ? r.defer =! ? r.src = t, r.charset = "UTF-8"; var d = function () {var e = a.getElementsByTagName ("script")[0]; e.parentNode.insertBefore (r, e)}; "[object Opera]" == e.opera? a.addEventListener? a.addEventListener ("DOMContentLoaded", d,! 1): e.attachEvent ("onload", d ): d ()}}} t ("//mediator.mail.ru/script/2820404/"""_mediator") () (); 3r33338. 3r33333. 3r33333. 3r33333. 3r33333. 3r33333. 3r33333.

It may be interesting

  • Comments
  • About article
  • Similar news
This publication has no comments.

weber

Author

24-11-2018, 12:38

Publication Date

Development / Programming

Category
  • Comments: 0
  • Views: 289
SHOCK! New software for phishing does
We study nitrogen lasers - part 1.
Let's talk about metrics as a way to
“How to turn a simple project into a
Egocentric daffodils are inferior in
Notes IoT provider. Case: we make a
Write a comment
Name:*
E-Mail:


Comments
The GW1NRF Bluetooth FPGA is the first uSoC FPGA to offer a built in Bluetooth transceiver to wirelessly communicate data with 32-Bit Microprocessor. Check Out: Gowin Semiconductor


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
Yesterday, 21:22

noorseo

LIMITED EDITION Experience Virtual Reality Now! Version 2.0 Discount40% OFF See More15% OFFFASHION & ACCESSORIESApparel Fashion Price starting from$5.99 See More20% OFFLIVEBYCARE Combo 5x Pillows Color Discount20% OFF Shop Now Bluetooth Latest Speakers Price starting from$22.99 XBOX CONTROLLER WHITE COLOR Discount 10% SMART APPLE PRODUCTS 15% OFF12% LISTEN TO REAL MUSIC WITH BEATSHealth & Fitness

Yesterday, 17:42

raymond weber

PERFECT size dumpster rentals for your residential needs, they are the ideal fit for your driveway. EASY simple pricing so you have everything upfront. FAST dumpster delivery. Check out: Austin Dumpster Rental
Yesterday, 17:03

saifwordpress

This article was written by a real thinking writer. I agree many of the with the solid points made by the writer. I'll be back. official 123movies websites
Yesterday, 17:00

Legend SEO

LIMITED EDITION Experience Virtual Reality Now! Version 2.0 Discount40% OFF See More15% OFFFASHION & ACCESSORIESApparel Fashion Price starting from $ 5.99 See More20% OFFLIVEBYCARE Combo 5x Pillows Color Discount20% OFF Shop Now Bluetooth Latest Speakers Price starting from $ 22.99 XBOX CONTROLLER WHITE COLOR Discount 10% SMART APPLE PRODUCTS 15% OFF12% LISTEN TO REAL MUSIC WITH BEATS [url = https: //topofferscart.online/] Health & Fitness [/ url]

Yesterday, 15:57

nushra45

Adv
Website for web developers. New scripts, best ideas, programming tips. How to write a script for you here, we have a lot of information about various programming languages. You are a webmaster or a beginner programmer, it does not matter, useful articles will help to make your favorite business faster.

Login

Registration Forgot password