Boost converter (sepic)


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2006
    Posts
    747

    Default Boost converter (sepic)

    Hello,

    Anyone has an algorithm for a sepic boost converter in picbasic ?
    I have written a function that increments by one the duty cycle, but after further testing it is not a fats way to reach the necessary output. I have a voltage check on the output only (12v) and the duty cycle varies according to the output .
    here is the code I have:
    Code:
    VoltageCheck:
         ADCON0.2 = 1			'Start Conversion
         
         adcin 4,VoltageInput
         
        If voltageInput < voltageREF then        ' voltageREF is 75 for 12v dc
            VoltageDiff = VoltageREF - VoltageInput     '=150+(150-115)=185
            DutyCycle = voltageREF + ( voltageREF - VoltageDiff)
            DutyCycle = DutyCycle/255 *100
            HPWM 1,DutyCycle,Frequency         'channel, dutycycle, frequency
            pause 20
        ENDIF
        
        If voltageInput = voltageREF then
            HPWM 1,DutyCycle,Frequency          'channel, dutycycle, frequency    
            pause 20
        else
            VoltageDiff =  VoltageInput - VoltageREF      '=127-(182-127)
            DutyCycle = voltageREF - ( VoltageDiff - voltageREF )
            DutyCycle = DutyCycle/255 *100
            HPWM 1,DutyCycle,Frequency 'channel, dutycycle, frequency
            pause 20
        endif
    
    return
    there must be better ways to accomplish this
    regards,
    K

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,129


    Did you find this post helpful? Yes | No

    Default Re: Boost converter (sepic)

    I suppose what you did produces a small oscillation at the output.

    I had a similar implementation with that result.

    So I thought that PID routine made by Henrik could help me but had never managed to properly adjust the P-I-D settings:

    http://www.picbasic.co.uk/forum/showthread.php?t=5874

    Maybe you are in luck making it work for you.

    Ioannis

Similar Threads

  1. PIC18F26K80 A/D Converter
    By RayL113 in forum Code Examples
    Replies: 2
    Last Post: - 17th November 2012, 03:35
  2. MikroBasic to PBP Pro: Boost mode SMPS
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 25th November 2011, 02:27
  3. A/D converter sample
    By allan josephus in forum mel PIC BASIC
    Replies: 5
    Last Post: - 23rd February 2008, 19:44
  4. A/D converter
    By rocky79 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 1st October 2005, 06:40
  5. help D/A converter
    By matelda in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 8th September 2004, 17:25

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts