The code now has a proportionality element which relates the battery voltage error to the PWM change step size.

By Julian

Youtuber, shed dweller, solar charge controller aficionado

14 thoughts on “Arduino pwm solar charge controller #6 – proportionality”
  1. Avataaar/Circle Created with python_avatars SolventTrap dot com says:

    You could reduce the jitter in code by simply taking the average of 5 samples. Crude, but it helps.

  2. Avataaar/Circle Created with python_avatars Wynand Wolmarans says:

    Plz tell me hw I can make a complete controller with the arduino only

  3. Avataaar/Circle Created with python_avatars Orides says:

    Can someone tell me how can I trigger the ADC reading during the off time of the PWM signal in a PIC16F1824? Thank you!

  4. Avataaar/Circle Created with python_avatars Orides says:

    Can you write a code in XC8 for the PIC12F683?

  5. Avataaar/Circle Created with python_avatars Jeferson Lucio says:

    So, your circuit is just a voltage regulador across the load(battery), using PWM to achieve so. It is not design to deal with Bulk, Absorption and Float phases like a high end PWM solar power controller. Am I right?

  6. Avataaar/Circle Created with python_avatars akkudakkupl says:

    From what I see here all that needs to be done is Kelvin connection to the battery so that the wire resistance doesn't throw off the voltage measurement.

  7. Avataaar/Circle Created with python_avatars coreyh55 says:

    where did you upload the code and diagrams?

  8. Avataaar/Circle Created with python_avatars Emil Almberg says:

    I work with hardware, not code.
    Do not use zener diodes for voltage measurements.
    Lead batteries are damaged by ripple.
    Encourage all users to mount fuses all batteries individually, as close to the plus pole as possible …

  9. Avataaar/Circle Created with python_avatars Link Smith says:

    I'd gladly become a patron if you'd do more work on this project.

  10. Avataaar/Circle Created with python_avatars Link Smith says:

    I'm hoping to see more work on this as its warming up this year. I'm looking to work something like this into my solar system.

  11. Avataaar/Circle Created with python_avatars Robert H Sandwith says:

    How about SolArduino as a name for this.

  12. Avataaar/Circle Created with python_avatars Donovan Lym says:

    @Julian ilett Your explanation of the jittering of the pulses seems very plausible.  I recon that other charge controllers, in measuring the battery voltage, does the same thing in when the pulse is off.  Then again how does it measure it when you are at 100% duty cycle?

  13. Avataaar/Circle Created with python_avatars hoplahey says:

    Can pwm-chargers always be connected and charge at 13.5V without damaging the batteries?

  14. Avataaar/Circle Created with python_avatars jedinite0 says:

    Any plans for 24v build?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.