Attached |
---|
Part 1: TI Hercules RM46 Three-Phase Generator With Transformers Part 1 IGCM15F60GA: Microcontroller: LAUNCHXL2-RM46 Hercules RM46x LaunchPad Development Kit | TI.com Facebook: Electronaplica DSP Tutorial to use by friend Jan Cumps's Blog: HOW-TO Create a CMSIS DSP Library Project for Hercules in CCS: FTT |
1. INTRODUCTION |
---|
In this case, we present the identification of the problem, the description of the problem, the justification, the objectives, the contributions and the structure of the project; The elements used to analyze the problem are exposed, as well as the methods applied, the useful indicators of this project and the structure of the work. |
1.1. INDENTIFICATION OF THE PROBLEM
The main problem is that I present the not having a three-phase signal in the home, I feel that the first place where I work in the design of several projects. This means that many of them try to integrate three-phase signal generators with the elements on the market, among them we have the transformers arrangement, the use of bridges with which the solution is now closer to what I really wanted. |
1.2. DESCRIPTION OF THE PROBLEM
The main problem is that the costs for the design of a three-phase generator, due to the cost of the MOSFET and its potential characteristics. Then, the cost of a microcontroller that offers me the necessary features to centralize the generation of signals without having the processor occupied in the infinities, where you can only add a light and turn off the output to generate a tedious 120 ° discharge signal. Without going so deep into the subject, my solution is an easy investment model and a high performance microcontroller. |
1.3. JUSTIFICATION
It is not very common to have a three-phase red in the home and buy a two-phase converter equipment, a three-phase is in some cases very expensive, therefore, build a device that does not cost much and that is free of manipulation for the user. |
1.4. OBJECTIVES
The objective is to use this device as a starting point for the construction of a three-phase quality analyzer, last year it presented a version of the analyzer but monophasic, to achieve my goal I need a three-phase signal that can manipulate my freedom therefore this was born draft. |
1.5. CONTRIBUTIONS
For the development of this project, use a microcontroller. ARM Cortex R4F from Texas Instruments, as well as the use of the low cost, small size three phase bridge module. |
2. THEORETICAL FRAMEWORK |
---|
2.1. OPERATING PRINCIPLE
The single-phase to three-phase converter is based on the conversion of single-phase AC power to DC, then through a set of power transistors and a synchronized tripping system, converting the DC power to three-phase Alterna. The Hercules microcontroller, can generate six pwm signals offset by 120 °, without the need to occupy its main processor performing some calculation or delay routine. The main power card has a set of input resistors that allows the measurement of the input voltage to be obtained, as there is also a set of three resistors in the SHUNT configuration for line current sensing. This is part of the detection of overcurrent in the system and can trigger a protection system in order to prevent overcurrent damage in the set of power transistors. |
2.2. EQUIPMENT SPECIFICATIONS
DC MAX voltage : 0 - 600 VDC Voltage Input : 220 VAC - Single phase Input Frequency : 60Hz. Output Current : 15A Output Voltage : 220VAC Output Frequency : 0 - 100 Hz. Degree of Protection : IP20 Operating Temperature : -40 / 100 ° C Relative Humidity : 95% without condensation. |
3. HARDAWARE DESIGN |
---|
This chapter describes the process of designing the different circuits that make up each stage of the Voltage Inverter. A block diagram is shown design stages. |
3.1. GENERAL BLOCKS DIAGRAM
In the following diagram we specify each stage of the circuit and its relationship with others, you can differentiate three stages: 1. The rectification and energy storage stage. 2. The power inverter stage by isolated transistors 3. The stage of control, generation of pwm and sensing of voltage. All these stages can be seen in the following image.
|
3.2. INVERSOR BRIDGE BLOCKS DIAGRAM (IGCM15F60GA)
The circuit is made up of several sets of low-pass filters and arrays of capacitors in order to stabilize the signal to trigger the power IGBTs that are inside the module
3.2.1. ENTRY CIRCUITS (# 1)
• To reduce the noise in the input signal by a high switching speed, a circuit formed by Rin and Cin was placed. With a value of 100ohm and 1nF configuration of the low pass filter. • Cin should be placed as close to the VSS pin as possible.
3.2.2. ITRIP CIRCUITO (# 2)
• To avoid errors in the protection function, Citrip should be placed as close as possible to the Itrip and VSS pins.
3.2.3. VFO CIRCUITO (# 3)
• The VFO output is an open drain outlet. This signal line must be connected to the positive side of the 5V / 3.3V logic, with an adequate RPU resistance. • It is recommended to place the RC filter as close as possible to the Microcontroller.
3.2.4. CIRCUIT VB-VS (# 4)
• The capacitor for the high side floating supply voltage should be placed as close as possible to the VB and VS pins.
3.2.5. CAPACITOR SNUBBER (# 5)
• The wiring between the Inverter circuit and the Rectification capacitor, including the bypass resistor, should be as short as possible.
3.2.6. RESISTANCE SHUNT (# 6)
• The shunt resistance must be of the SMD type to reduce parasitic inductances.
3.2.7. LAND PATRON (# 7)
• The earth pattern must be separated at a single point by the shortest possible derivation resistance. |
4. Schematic and Board |
---|
5. Microcontroller Internal Modules (Extracted to Technical Reference Manual Texas Instruments) |
---|
An effective PWM peripheral must be able to generate complex pulse width waveforms with minimal CPU overhead or intervention. It needs to be highly programmable and very flexible while being easy to understand and use. The ePWM unit described here addresses these requirements by allocating all needed timing and control resources on a per PWM channel basis. Cross coupling or sharing of resources has been avoided; instead, the ePWM is built up from smaller single channel modules with separate resources that can operate together as required to form a system. This modular approach results in an orthogonal architecture and provides a more transparent view of the peripheral structure, helping users to understand its operation quickly. In this document the letter x within a signal or module name is used to indicate a generic ePWM instance on a device. For example, output signals EPWMxA and EPWMxB refer to the output signals from the ePWMx instance. Thus, EPWM1A and EPWM1B belong to ePWM1 and likewise EPWM4A and EPWM4B belong to ePWM4. 5.1 Overview of Multiple Modules
Previously in this chapter, all discussions have described the operation of a single module. To facilitate the understanding of multiple modules working together in a system, the ePWM module described in reference is represented by the more simplified block diagram shown in Figure 5-1. This simplified ePWM block shows only the key resources needed to explain how a multiswitch power topology is controlled with multiple ePWM modules working together.
Figure 5-1. Simplified ePWM Module
5.2 Key Configuration Capabilities
The key configuration choices available to each module are as follows: Options for SyncIn
Options for SyncOut
For each choice of SyncOut, a module may also choose to load its own counter with a new phase value on a SyncIn strobe input or choose to ignore it, that is, via the enable switch. Although various combinations are possible, the two most common—master module and slave module modes—are shown in Figure 5-2.
Figure 5-2. EPWM1 Configured as a Typical Master, EPWM2 Configured as a Slave Figure 5-2. EPWM1 Configured as a Typical Master, EPWM2 Configured as a Slave
5.3. PIN OUT ETPWM BOARD HERCULES LAUNCHPAD RM46 |
Microcontroller code (Note: for the correct functioning it is required to have installed the DSP libraries, review attached links at the beginning of the blog.) fragment of code that serves to configure the etpwm.
Link to Download the Program
|
void TreePhaseInit() { etpwmDeadBandConfig_t Set_DBand; // declaracion de variable /*Configuracion de la banda muerta*/ Set_DBand.halfCycleEnable = false; Set_DBand.inputmode = PWMA_RED_PWMB_FED; Set_DBand.outputmode = PWMB_FED_PWMA_RED; Set_DBand.polarity = Invert_PWMB;
/*Pagina 819 manual*/ etpwmChoppingConfig_t Set_config; Set_config.duty = ChoppingDutyCycle_Four_Eighths; Set_config.freq = ChoppingClkFreq_VCLK4_by_64; Set_config.oswdth = ChoppingPulseWidth_8_VCLK4;
etpwmInit(); /*Configuracion del angulo de desfase entre los PWM generados*/ etpwmSetSyncOut(etpwmREG1, SyncOut_CtrEqZero); etpwmSetSyncOut(etpwmREG2, SyncOut_EPWMxSYNCI); //SyncOut_CtrEqZero);
etpwmDisableCounterLoadOnSync(etpwmREG1); uint16 phase1 = 59980; // 60° uint16 phase2 = 54425; //120° etpwmEnableCounterLoadOnSync(etpwmREG2, phase1, COUNT_DOWN); // seting del angulo de etpwmEnableCounterLoadOnSync(etpwmREG3, phase2, COUNT_DOWN); // seting del angulo de
/* Set the time period as 1000 ns (Divider value = (1000ns * 2MHz) - 1 = 89)*/ etpwmSetTimebasePeriod(etpwmREG1, 33332U); etpwmSetTimebasePeriod(etpwmREG2, 33332U); etpwmSetTimebasePeriod(etpwmREG3, 33332U);
/* Configure Compare to register 1 */ etpwmSetCmpA(etpwmREG1, 33332 / 2); etpwmSetCmpB(etpwmREG1, 33332 / 2); /* Configure Compare to register 2 */ etpwmSetCmpA(etpwmREG2, 33332 / 2); etpwmSetCmpB(etpwmREG2, 33332 / 2); /* Configure Compare to register 3 */ etpwmSetCmpA(etpwmREG3, 33332 / 2); etpwmSetCmpB(etpwmREG3, 33332 / 2);
/*Iniciando el control del modulo chopping de pwm*/ /*Iniciando la carga de los valor de la banda muerta 1000---> 510 microsegundos*/ etpwmSetDeadBandDelay(etpwmREG1, 1000, 1000); etpwmEnableDeadBand(etpwmREG1, Set_DBand); etpwmSetDeadBandDelay(etpwmREG2, 1000, 1000); etpwmEnableDeadBand(etpwmREG2, Set_DBand); etpwmSetDeadBandDelay(etpwmREG3, 1000, 1000); etpwmEnableDeadBand(etpwmREG3, Set_DBand);
} |
6. Video of the Implementation |
---|
|
Saludos |
---|
Hola, vengo algún tiempo trabajando en Electrónica de potencia, espero este blog ayude a que ustedes mismos prueben utilizar estos diseños en sus aplicaciones, gracias. Best Regards Martin Valencia Alejo |
Top Comments