Power supplies and Microcontrollers - do they really get along?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Th3_uN1Qu3
    Believe in
    • Jul 2010
    • 6031
    • Romania

    #1

    Power supplies and Microcontrollers - do they really get along?

    I'm seeing more and more power supply projects using micros. I don't think that's such a good idea - i'm quite apprehensive of letting a device that runs code control an offline SMPS for instance... But i see them even in higher power devices like spot welders and they seem to do fine.

    Have you had any first hand experience with microcontroller based power supplies? Is for instance a cheap PIC fast enough to run a 100kHz SMPS? I'd like to get started in micros and a custom SMPS controller sounds like a good idea. I have my own 555-based controller that i designed, but in some areas it leaves to be desired. A micro would allow for more expansion.
    Originally posted by PeteS in CA
    Remember that by the time consequences of a short-sighted decision are experienced, the idiot who made the bad decision may have already been promoted or moved on to a better job at another company.
    A working TV? How boring!
  • redwire
    Badcaps Legend
    • Dec 2010
    • 3900
    • Canada

    #2
    Re: Power supplies and Microcontrollers - do they really get along?

    A PIC is fast enough but sensitive to EMI/RFI generated by the power electronics, which makes it crash. Your timer code must be perfect.

    I rarely see all MCU type SMPS controllers. Any mistakes in your software, or an MCU crash can blow up the power-semi's. After the smoke clears the question comes up "what happened?" and you have no idea, it's too late. So testing and debug is very difficult.

    Instead, I prefer a dedicated SMPS IC that gets controlled by an MCU (turn on/off/standby/Vout fine adjust etc.) If the MCU crashes or does something silly, no parts get damaged as the PWM IC keeps running and looks after things.

    Comment

    • PCBONEZ
      Grumpy Old Fart
      • Aug 2005
      • 10661
      • USA

      #3
      Re: Power supplies and Microcontrollers - do they really get along?

      My computer needs a power supply but my power supply doesn't need a computer.
      .
      Mann-Made Global Warming.
      - We should be more concerned about the Intellectual Climate.

      -
      Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.

      - Dr Seuss
      -
      You can teach a man to fish and feed him for life, but if he can't handle sushi you must also teach him to cook.
      -

      Comment

      • ratdude747
        Black Sheep
        • Nov 2008
        • 17136
        • USA

        #4
        Re: Power supplies and Microcontrollers - do they really get along?

        sounds like a way to jack up the pricetag and reduce usable life...

        spot welders i can understand, as you want to get the amount of heat and therefore the amount of juice right on target... you don't want to overheat the metal, just fuse it. the reason you might want a microcontroller is so you ca select the metal to be welded and you can measure the resistance to calculate the correct power... the resistance is critical to making a spot weld work in the first place.
        sigpic

        (Insert witty quote here)

        Comment

        • japlytic
          Badcaps Legend
          • Oct 2005
          • 2086
          • Australia

          #5
          Re: Power supplies and Microcontrollers - do they really get along?

          If I remember correctly, I have read about Gigabyte power supplies of which the output rails can be programmed.
          My first choice in quality Japanese electrolytics is Nippon Chemi-Con, which has been in business since 1931... the quality of electronics is dependent on the quality of the electrolytics.

          Comment

          • PCBONEZ
            Grumpy Old Fart
            • Aug 2005
            • 10661
            • USA

            #6
            Re: Power supplies and Microcontrollers - do they really get along?

            I remember seeing some from someone? that called it 'programed' rails but in reality all it amounted to was adjustment pots to fine tune the OP voltage.
            Mann-Made Global Warming.
            - We should be more concerned about the Intellectual Climate.

            -
            Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.

            - Dr Seuss
            -
            You can teach a man to fish and feed him for life, but if he can't handle sushi you must also teach him to cook.
            -

            Comment

            • Toasty
              Badcaps Legend
              • Jul 2007
              • 4171

              #7
              Re: Power supplies and Microcontrollers - do they really get along?

              The Delta DPS-700FB uses a PIC chip on the daughterboard. All the sense lines run into that board.

              Which brings me to the question, can the PIC be reverse programmed? Is there a way to "get the code" and change the parameters?

              From Scenic's post thread: https://www.badcaps.net/forum/showthread.php?t=5998

              Pictures:
              http://bambooz.pytalhost.net/badcaps...0/image016.jpg
              http://bambooz.pytalhost.net/badcaps...0/image020.jpg
              http://bambooz.pytalhost.net/badcaps...0/image028.jpg
              http://bambooz.pytalhost.net/badcaps...0/image029.jpg

              Toast
              veritas odium parit

              Comment

              • Wizard
                Badcaps Legend
                • Mar 2008
                • 2296

                #8
                Re: Power supplies and Microcontrollers - do they really get along?

                Well, There are some plasma panel SMPSes that have microcontroller to show error by blinking a LED and some other functions.

                Cheers, Wizard

                Comment

                • PCBONEZ
                  Grumpy Old Fart
                  • Aug 2005
                  • 10661
                  • USA

                  #9
                  Re: Power supplies and Microcontrollers - do they really get along?

                  Originally posted by Toasty
                  The Delta DPS-700FB uses a PIC chip on the daughterboard. All the sense lines run into that board.

                  Which brings me to the question, can the PIC be reverse programmed? Is there a way to "get the code" and change the parameters?

                  From Scenic's post thread: https://www.badcaps.net/forum/showthread.php?t=5998

                  Toast
                  LOL, I actually have one of those but never needed to peek inside.
                  .
                  Mann-Made Global Warming.
                  - We should be more concerned about the Intellectual Climate.

                  -
                  Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.

                  - Dr Seuss
                  -
                  You can teach a man to fish and feed him for life, but if he can't handle sushi you must also teach him to cook.
                  -

                  Comment

                  Related Topics

                  Collapse

                  • dkneyle
                    Onkyo DX-V500 Laser Disc Player - weird SMPS fault
                    by dkneyle
                    This relic from a technology path that came to a dead end (but still has historical interest) was brought in with a dead SMPS, which is based around a MK1210 device. I got it going after a battle. It seems to have a strange design - if it's not getting feedback that the secondary is OK it cause the big FET to go into full conduction and overloads resulting in a blown fuse at best or something worse! I'm using a Dim Bulb Tester (70W/230V) which thankfully has saved the day a number of times whilst repairing.

                    Now, it loads a CD OK. The motor voltage output (which is built onto the SMPS...
                    02-01-2022, 02:08 AM
                  • iMic
                    Vintage AT Power Supplies - Selecting Capacitors
                    by iMic
                    Hi,

                    Back after a long hiatus with some old power supplies that need repairing. I've recently picked up a couple of 386SX systems, two 486DX systems, a SiliconGraphics Indy and an iMac G3 that either have verified leaking capacitors in their power supplies, or are likely to in the near future. For the sake of simplicity, instead of tackling all at once, I'm starting with the 386's and one of the 486's.


                    The 386's power supplies are Seasonic SS4040A's, with caps that are visibly leaking, and 9 replacement caps per unit are required. Most appear to be from the Rubycon...
                    02-19-2023, 06:45 PM
                  • abhishekkumar1902
                    Huntkey HK340-72FP SMPS shut on load above 2 amps
                    by abhishekkumar1902
                    I have this Huntkey HK340-72FP PC SMPS where I am facing a strange problem where the SMPS shuts down when the load on any of its 12v output rails goes above 2 amps while the rating of each 12v rail is above 10amps capable.

                    I have checked the following:
                    1. All output caps are OK, and all output rails read correct voltages at no load
                    2. All output diodes are OK
                    3. NTC is ok
                    4. Hi voltage cap on input correctly reads 150uF on LCR meter per the spec, also the bridge rectifier is OK
                    5. No short in main switching MOSFET
                    6. All other components...
                    12-18-2022, 09:52 AM
                  • madan1
                    Mackie Th15 SMPS low Vout
                    by madan1
                    Hello,
                    I'm troubleshooting a PA speaker Mackie Th15 (schematics attached).
                    It is basically a smps with amp and some dsp.
                    The issue is that on the secondary side I read +/- ~23V instead of the expected +/- 38V. Indeed all secondary side and feedback/aux rails are like 1/2-3/5 of the expected values.
                    Q2, Q3, C35, C40, C33, C36, C41 and C42 were tested out of circuit with a component tester and read fine. Most of the other components on the primary were tested in circuit and seem to be fine. +HV to -HV on primary is ~330V.
                    By the way, the ferrite core of L10 is broken,...
                    02-16-2025, 04:15 PM
                  • rewease
                    Replacement for the Siemens Bakelite caps in an early 1980s SMPS
                    by rewease
                    Hi everyone,

                    There actually was a time when early SMPS and late bakelite housed electrolytic caps coexisted in high end industrial gear. A friend of mine just got himself a CNC milling machine form that time with its first set of now 41 year old caps still installed in the PSU... and it's malfunctioning.

                    Two of the caps have already leaked slightly onto the board. I have not desoldered or measured any so far but they should qualify for replacement.

                    Now I'm wondering what to put in there as a replacement. First idea was state of the art low-ESR Nippon KY,...
                    09-17-2023, 12:53 AM
                  • Loading...
                  • No more items.
                  Working...