JLCPCB Prototype for $2(Any Color): https://jlcpcb.com
How to Get PCB Cash Coupon: https://bit.ly/2GMCH9w
I've started developing the PIC code to implement a calibration mechanism into my PWM5 solar charge controller.

By Julian

Youtuber, shed dweller, solar charge controller aficionado

10 thoughts on “Pic microcontroller brownouts watchdog resets – pwm5”
  1. Avataaar/Circle Created with python_avatars dilshan kasthuri arachchi says:

    Dear what is the compiler has been used here?

  2. Avataaar/Circle Created with python_avatars Janet Alphonse says:

    hi j,,i have microchip pic16c74b .its program for an inverter ,is there away to MCLR it to power up or need to write code.

  3. Avataaar/Circle Created with python_avatars urugulu says:

    instead of a button you can use the microcontroller to set these values. even dynamically. with some trickery the uC can sense its own vcc… a would recommend to not write the value to eeprom instantly and rather use the ram or some register to store the value and only write on power off and read on system boot. if you add a big enough cap across the supply rail you should have enough time to write to eeprom safely in tgese occasions.

  4. Avataaar/Circle Created with python_avatars theR6969 says:

    I wish there was something like an electronic component that can do that job. can someone try to invent a "voltage reference" or something of that nature?? ๐Ÿค”

  5. Avataaar/Circle Created with python_avatars Futz Whith says:

    Maybe add a button lockout switch, to stop accidental pushes.

  6. Avataaar/Circle Created with python_avatars Roman Charak says:

    Fascinating stuff, Julian ! Thank you so much. I've used the 12F683 in some of my projects – it's quite a nice microcontroller. Really looking forward to your solution. AND, I always learn something new from your videos.

  7. Avataaar/Circle Created with python_avatars Azy says:

    That's some interesting software gymnastics! ๐Ÿ™‚
    I have to wonder though what the point of this type of calibration is (for this particular use-case) given that the end user won't have access to the 5v supply anyway?
    You'd be better off hard-coding in a value, seeing as only you will be able to calibrate them, and that's even putting the natural drift of the regulator over time as it ages.

  8. Avataaar/Circle Created with python_avatars lez briddon says:

    i used to use pic all the time, cant believe how they fell behind arduino and esp in the hobby world.

  9. Avataaar/Circle Created with python_avatars steadyfield says:

    You can use an external precise voltage reference for self-calibration after powered on.

  10. Avataaar/Circle Created with python_avatars Steven Ruscoe says:

    Julian, what about a ATmega328. didn't you do a video about measuring it's own supply voltage, it could calibrate itself. you could also do temperate compensation with the on die sensor, I'm sure you did a video on that also.

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.