MPPT solar battery charger


Results 1 to 40 of 41

Threaded View

  1. #10
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: MPPT solar battery charger

    Quote Originally Posted by iw2fvo View Post
    Robert,
    i think it ias a problem related to panel power wp, panel voltage vp and duty cycle when switching among the various status...
    It needs to find out the proper values that controls the switching...
    tnks,
    Ambrogio
    Yup. I can't see bad GOSUB structure, nothing that stands out anyways.

    The STATE can evolve from 0 to 3 in a single pass of that SELECT CASE. I can only assume the readings from your hardware makes it jump unexpectedly.

    Are you able to debug in real time and step thru your code?

    It's about the only way I can think of the visualize what is going on. I see you dump a lot of information but I'm unable to follow that manually through your logic.

    I prefer to dump like this:

    MAIN --------------------------------------------------
    STEP 1, list of variables.
    SUBROUTINE XYZ ----------------------------------------
    STEP 1, list of variables.
    STEP 2, list of variables.
    SUBROUTINE ABC ----------------------------------------
    STEP 1, list of variables.
    ...etc...


    I find it easier to follow in the code this way. I place the STEPS in relevant places, like before & after IFs, etc.

    Robert
    Last edited by Demon; - 2nd May 2014 at 19:42.

Similar Threads

  1. DC/DC with MPPT for solar panels
    By iw2fvo in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 14th May 2013, 03:26
  2. Replies: 14
    Last Post: - 6th March 2011, 06:08
  3. Charger battery with pic12f675
    By Leonardo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 24th July 2009, 20:15
  4. Li-Ion battery charger
    By Nicmus in forum Off Topic
    Replies: 6
    Last Post: - 21st May 2008, 01:28
  5. 12v Lead acid solar charger
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th May 2006, 23:01

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