Embedded Controlled High Efficiency Improved Boost Converter for Solar Installation System

Photo of author

By Jackson Taylor

Home » Hardware » Embedded Controlled High Efficiency Improved Boost Converter for Solar Installation System

As an Amazon Associate we earn from qualifying purchases.

YouTube video

Nowadays solar power generation is considered the best one compared to the conventional power generation system  because it is clean and does not emit hard gases to the environment. This paper proposes a new topology for photovoltaic DC to DC converter with high gain and efficiency under wide input voltage range. The topology study of open loop and closed loop systems with high gain step-up conversion and step increase in input voltage are proposed. An improved DC to DC boost converter is modelled and simulated using matlab and it is implemented using embedded controller. This converter provides the constant output voltage irrespective of the PV panel output and load. The simulation and experimental results of this system are presented and compared. The performance of the converter is also compared with the conventional boost converter. This comparison reveals that the proposed converter system has the advantages of high gain and high efficiency with the minimum number of components.

Circuit diagram of the improved high gain boost converter for a solar PV system

CIRCUIT

MATLAB Simulink model of the improved boost converter with PV input

MATLAB SIMULATION

Hardware Hack

Stop Buying New Batteries for Your Tech

Electronics are expensive, but their power sources don't have to be. Discover the simple engineering trick to recondition dead batteries and bring your gadgets back to 100% capacity.

Watch the Free Video
Boost converter circuit schematic with switch, inductors, diodes and capacitors MATLAB simulation block diagram of the embedded controlled boost converter Supporting diagram of the embedded controlled boost converter for solar installation

PROGRAM

//feed back by 100k and 4.7k
//adc value ---2.733 for 61.4
//adc=2733/4.88 ==560
//to get adc value =v/.11
//62----563
//61.4--558
//60----545
int p=155;
void setup()
{
    setPwmFrequency(9, 1);
    analogWrite(9,p);
    Serial.begin(9600);
    delay(5000);delay(5000);
}
void loop()
{
    int a=analogRead(2);
    Serial.println(a);
    //delay(100);
    if(a>564)
    {
        p=p-1;
        analogWrite(9,p);
    }
    if (a<545 && a>500)
    {
        p=p+1;
        if(p>220)p=p-1;
        analogWrite(9,p);  
    }
}
void setPwmFrequency(int pin, int divisor) {
    byte mode;
    if(pin == 5 || pin == 6 || pin == 9 || pin == 10) {
        switch(divisor) {
            case 1: mode = 0x01; break;
            case 8: mode = 0x02; break;
            case 64: mode = 0x03; break;
            case 256: mode = 0x04; break;
            case 1024: mode = 0x05; break;
            default: return;
        }
        if(pin == 5 || pin == 6) {
            TCCR0B = TCCR0B & 0b11111000 | mode;
        } else {
            TCCR1B = TCCR1B & 0b11111000 | mode;
        }
    } else if(pin == 3 || pin == 11) {
        switch(divisor) {
            case 1: mode = 0x01; break;
            case 8: mode = 0x02; break;
            case 32: mode = 0x03; break;
            case 64: mode = 0x04; break;
            case 128: mode = 0x05; break;
            case 256: mode = 0x06; break;
            case 1024: mode = 0x7; break;
            default: return;
        }
        TCCR2B = TCCR2B & 0b11111000 | mode;
    }
}

/**
 * Divides a given PWM pin frequency by a divisor.
 *  
 * The resulting frequency is equal to the base frequency divided by
 * the given divisor:
 *   - Base frequencies:
 *       o The base frequency for pins 3, 9, 10, and 11 is 31250 Hz.
 *       o The base frequency for pins 5 and 6 is 62500 Hz.
 *   - Divisors:
 *       o The divisors available on pins 5, 6, 9 and 10 are: 1, 8, 64,
 *         256, and 1024.
 *       o The divisors available on pins 3 and 11 are: 1, 8, 32, 64,
 *         128, 256, and 1024.
 *  
 * PWM frequencies are tied together in pairs of pins. If one in a
 * pair is changed, the other is also changed to match:
 *   - Pins 5 and 6 are paired on timer0
 *   - Pins 9 and 10 are paired on timer1
 *   - Pins 3 and 11 are paired on timer2
 *  
 * Note that this function will have side effects on anything else
 * that uses timers:
 *   - Changes on pins 3, 5, 6, or 11 may cause the delay() and
 *     millis() functions to stop working. Other timing-related
 *     functions may also be affected.
 *   - Changes on pins 9 or 10 will cause the Servo library to function
 *     incorrectly.
 *  
 * Thanks to macegr of the Arduino forums for his documentation of the
 * PWM frequency divisors. His post can be viewed at:
 *   http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1235060559/0#4
 *
 */

How the Embedded Code Regulates the Output Voltage

The program above is a simple closed loop controller. It does not calculate the duty cycle from a formula. It reads the output voltage through a resistor divider (100k and 4.7k in the code comments), converts it with the ADC, and nudges the PWM duty cycle up or down one step at a time. The ideal boost relation, Vout = Vin / (1 – D), explains why this works: a higher duty cycle D raises the output, and a lower one reduces it.

  1. Starting point: the duty value p starts at 155 out of 255, and the program waits about ten seconds before regulating so the circuit can settle.
  2. Too high: if the ADC reading is above 564, the duty value is reduced by one step to bring the output down.
  3. Too low: if the reading is below 545 (and above 500), the duty value is increased by one step. It is capped at 220 so the switch is never driven at an extreme duty cycle.
  4. Dead band: readings between 545 and 564 cause no change. This stops the duty cycle from hunting back and forth around the target.
See also
CUK CONVERTER

The comments show the target: an ADC reading of about 558 corresponds to roughly 61.4 V at the output. The setPwmFrequency function sets pin 9 to the fastest timer setting, which lets you use smaller magnetics than at the default Arduino PWM frequency.

If you rebuild this, the numbers depend on your own divider values, reference voltage and target output. Recalibrate the thresholds against a multimeter reading before connecting a load. Keep in mind that changing the timer 1 prescaler affects the Servo library, as the code comments note.

Revive Your Dead Electronics

Got a drawer full of dead gadgets or a failing car battery? Instead of paying a premium for replacements, use this simple trick to easily recondition them right from home.

See How It Works