Arduino Digital Power Supply - part 2 | first attempt

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ธ.ค. 2018
  • $2 for 10 PCBs & $6 for stencil: jlcpcb.com
    I've tried to make my own digital power supply. The voltage control kind of works but there is still a lot to do. So stay tuned for future updates. You have everything below if you wan tto see more about this project.
    Help my projects on Patreon : / electronoobs
    my Q&A page: electronoobs.com/eng_preguntas...
    Like my Facebook page: / electronoobs
    Canal en Español: / electronoobs en español
    PRINTERS
    -------------------------------------
    3d-printer-kits/pp_1841228.html?wid=1433363&lkid=18226125
    Alfawise U30 (150€): www.gearbest.com/3d-printers-...
    Coupon: "GB3DU30"
    Ender 3(155€ AMAZING): www.gearbest.com/3d-printers-...
    Creality CR20: www.gearbest.com/3d-printers-...
    Coupon: "72HCR20"
    Crealitu CR10 (328€): www.gearbest.com/3d-printers-...
    Coupon: "GB3D1201"
    Crealitu CR10S (372€): www.gearbest.com/3d-printers-...
    Coupon: "GBCR10STY" or "GBCR10STY"
    Creality CR10-mini (287€): www.gearbest.com/3d-printers-...
    Tevo Tornado (289€): www.gearbest.com/3d-printers-...
    Anycubic i3 MEGA (287€): www.gearbest.com/3d-printers-...
    Tronxy X5SA (313€): www.gearbest.com/3d-printers-...
    Geetech E180 (235€): www.gearbest.com/3d-printers-...
    Anet A8 (180€): www.gearbest.com/3d-printers-...
    Tevo Tarantula (180€): www.gearbest.com/3d-printers-...
    FLsun-S (461€): www.gearbest.com/3d-printers-...
    SaprkMaker (217€): www.gearbest.com/3d-printers-...
    -----------------LINKS-------------------
    NEXTION Display video tutorial: • Nextion touch TFT disp...
    Tutorial website: www.electronoobs.com/eng_ardu...
    Part list: www.electronoobs.com/eng_ardu...
    Schematic: www.electronoobs.com/eng_ardu...
    Arduino code: www.electronoobs.com/eng_ardu...
    TFT file for the screen: www.electronoobs.com/images/A...
    Nextion display: rover.ebay.com/rover/1/711-53...
    Download nextion editor: www.electronoobs.com/eng_ardu...
    Like share and subscribe to motivate me. Thank you
    #Arduino #digital #supply
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 96

  • @ELECTRONOOBS
    @ELECTRONOOBS  5 ปีที่แล้ว +4

    Want to help my workshop: www.patreon.com/ELECTRONOOBS
    Thank you so much!

    • @raghavsrivastava2910
      @raghavsrivastava2910 5 ปีที่แล้ว +2

      Great

    • @confusedengineer7424
      @confusedengineer7424 5 ปีที่แล้ว +1

      you really need a shunt resistor for precision current control and a frequency about 60-100k good for the buck converter and Arduino lacks its. So try changing PWM frequency little higher with a Shunt Resistor and a improve output filter it will be a lot better.

  • @barrymayson2492
    @barrymayson2492 5 ปีที่แล้ว +1

    Always learn something new here. It is sometimes almost a blessing when things don't work first time it makes you think and work out the problems and is some of the fun in finding a solution. Many thanks for great video.

  • @jddr.jkindle9708
    @jddr.jkindle9708 5 ปีที่แล้ว

    We appreciate your efforts!

  • @paultakoy7091
    @paultakoy7091 3 ปีที่แล้ว

    Great video series, thanks for making this series. Keep up the great work.

  • @nooruddinpanjwani8573
    @nooruddinpanjwani8573 3 ปีที่แล้ว

    You need not say sorry. You did a great job my dear. Please add some more feature 1. Use display at least double the size because when digital display will be mounted on a cabinet it be convinient to view and use it. 2. Add memory for current and voltage settings. Add a sound buzzer for short circuit condition. 3. Add all features as in DPS5005. I'm interested in making your this project with above suggested modification. Please let me know as and when you finish.👌👌👍👍

  • @stephanedenis5394
    @stephanedenis5394 5 ปีที่แล้ว

    Nice project and very informative. I can not wait to follow you in the different evolutions. I have a nextion and it is really very slow ...

  • @electronic7979
    @electronic7979 5 ปีที่แล้ว

    Excellent project 👍

  • @hannnnn310
    @hannnnn310 5 ปีที่แล้ว +5

    5:05 FULL BRIDGE RECTIFIER

  • @md.abdulhai1967
    @md.abdulhai1967 5 ปีที่แล้ว +1

    Nice your project

  • @horstschlammer8196
    @horstschlammer8196 5 ปีที่แล้ว

    Cool Project for understanding 👍

  • @stealthBae
    @stealthBae 5 ปีที่แล้ว +2

    What do you think of the INA219B for your current senso?. It seems to me as a quite accurate sensor

  • @jesuscardona5184
    @jesuscardona5184 5 ปีที่แล้ว

    I love your videos. Thanks.

  • @tomgeorge3726
    @tomgeorge3726 5 ปีที่แล้ว +2

    Have you looked at the DC OUTPUT with the scope, rather than the DMM, to see how much ripple you have?

  • @webslinger2011
    @webslinger2011 5 ปีที่แล้ว +1

    Nice project. Can make one using am ordinary 16x2 lcd?

  • @debasishmanna5604
    @debasishmanna5604 5 ปีที่แล้ว +1

    Great Video sir...
    sir Would you make a digital power supply with cimputer smps.
    And with the nexon display touch system digital system..

  • @MCsCreations
    @MCsCreations 5 ปีที่แล้ว

    That's really nice!!!!

  • @snbhmmz
    @snbhmmz 5 ปีที่แล้ว +2

    For reading current it may be better to use small value of resistance and amplify it's reading voltage

  • @dimitriosvlamis8696
    @dimitriosvlamis8696 5 ปีที่แล้ว +10

    I think you should use a different method to put the current value in the arduino. AnalogRead is very slow, try utilising a lower resolution, but higher sample rate setting from the atmega328 registers. Or even better, use the STM32 dev boards that cost same money and you get better adc resolution, faster sampling rate (200K preset instead of 16K) aka use the blue pill. Also get rid of the hall effect current sensor, which has internally limited response time, and put a current shunt resistor with a AD8215 chip to level shift the voltage drop to readable values for the microcontroller.

    • @isprithul
      @isprithul 5 ปีที่แล้ว

      Is there any through hole IC like the AD8215 that can do the same job? A completely through hole power supply would be really nice. I want to make one.

    • @matthewcooke4477
      @matthewcooke4477 2 ปีที่แล้ว

      Seeing this done using a teensy 4.0-4.1 would be awesome

  • @emilioemilio1710
    @emilioemilio1710 5 ปีที่แล้ว

    Hola, harás este mismo video en español?
    Para tu canal en español que estoy también.

  • @XtianTechno
    @XtianTechno 5 ปีที่แล้ว +1

    Perfect!

  • @engrjolo1631
    @engrjolo1631 5 ปีที่แล้ว +1

    What capacitor did you use in the input?

  • @melnedgars7273
    @melnedgars7273 5 ปีที่แล้ว

    Hi! Great work! It would be interesting to see output voltage ripple at full load and transient response of Your PSU ;) Also have you considered to add BT module and control it with smartphone?

  • @juhopeltola3993
    @juhopeltola3993 5 ปีที่แล้ว

    Cool. I made my power suply with atx power and boost converter to get 5.5v - 35v and buck converter to low voltage. Thru boost converter I get maximum of 150w which is good power for the size. I will ad touchscreen adjustments to it.

  • @mac_uk5464
    @mac_uk5464 4 ปีที่แล้ว

    Is this how the DP3003 power modules (As adds on eBay shops) work, only using an STM32F board. I would try putting the current limiting circuit in the neutral side of the circuit, so the voltage to the load is not reduced (If this is possible) & use an STM32F board. I've just bought a DP5005 module & they are great, but the screen is so blooming tiny, with your version you 'd have a larger screen, as you did.

  • @FreeCircuitLab
    @FreeCircuitLab 3 ปีที่แล้ว

    Why didn't you use an SMPS? If we drive The optocoupler by microcontroller, we don't need the buck converter. And also SMPS is more efficient and powerful than linear transformer supply.

  • @shivamkurzekar1732
    @shivamkurzekar1732 5 ปีที่แล้ว +2

    Awesome..♥️

  • @engrjolo1631
    @engrjolo1631 5 ปีที่แล้ว +3

    The arduino adc is not precise enough. I think it would be better to use 16 bit adc.

  • @Danixu86
    @Danixu86 4 ปีที่แล้ว

    I was thinking in a project like this, and now i'm in love of the TFT screen. On my project for now I'll not use the TFT screen, but I've thought to use an ATMega328 as a brain and an ATTiny85 to manage the PWM of every chanel (I also want to make it multichannel). With this configuration the PWM signal is managed separately from separated ATTiny85 and then if ATMega328 have any slowdown, the output is not affected.
    Also I think that the UART communication is the bad thing of this screen.

  • @ishwakrahman5570
    @ishwakrahman5570 3 หลายเดือนก่อน

    If we buy a buck converter online, can we control its voltage with the arduino so I can control it digitally?

  • @saheenpalayi
    @saheenpalayi 5 ปีที่แล้ว

    why u didnt use a SMPS instead the transformer ?

  • @Shubham-jr8nc
    @Shubham-jr8nc 5 ปีที่แล้ว

    Hey, my HC05 Bluetooth module got burn. My mini resistor got burn which is next to the reset switch. What can I do to repair the Bluetooth module

  • @GRBtutorials
    @GRBtutorials 5 ปีที่แล้ว +1

    You should use a shunt resistor & op-amp as amplifier instead of the MAX471. Measuring the current at the input of the buck converter is a big no-no because of inefficiencies. And the current being off by more than 1 % is a big deal in a lab PSU.

  • @thinukadanthila4305
    @thinukadanthila4305 4 ปีที่แล้ว +1

    u are a electro-pro not a noob

  • @DarrynJones
    @DarrynJones 5 ปีที่แล้ว

    Could you please link to Part 1 in the description?

  • @dhruvchikhaliya3464
    @dhruvchikhaliya3464 5 ปีที่แล้ว +1

    You are my favorite.

  • @jussapitka6041
    @jussapitka6041 5 ปีที่แล้ว

    With rating the capacitor, you have to remember that the output from the diode bridge is the transformer RMS voltage x square root of 2.

  • @vestkok5194
    @vestkok5194 3 ปีที่แล้ว

    Hi Electronoobs, is there an update on this project? =)

  • @prashantajabe2693
    @prashantajabe2693 5 ปีที่แล้ว +1

    Make a video on eagle PCB Designing tutorial which include the how to select the components, how place components for avoiding interference etc.

  • @vivekchauhan7468
    @vivekchauhan7468 5 ปีที่แล้ว +2

    Hay bro, great video,
    But you also can use 7805 voltage regulator ic instend of smaller one buck converter to power lcd and microcontroller......

    • @ivolol
      @ivolol 5 ปีที่แล้ว

      7805 will be very inefficient from 30v. Some 7805 models might only be rated to 25v input even. Switching down to 12 or 7v and regulating from there is much safer.

  • @MrArif009
    @MrArif009 5 ปีที่แล้ว

    for more current precision you may be use INA 219 current sensor.

  • @NNNILabs
    @NNNILabs 5 ปีที่แล้ว

    There's a saying somewhere that says 'never do something in software that can be done in hardware'. I guess this is apt for the power supply section. You could use a dedicated PWM controller chip that the Arduino could talk to.

  • @nickd2084
    @nickd2084 5 ปีที่แล้ว +10

    Micro is too slow to be part of the closed loop.

    • @vaguedirector_7342
      @vaguedirector_7342 5 ปีที่แล้ว +2

      Yeah it would be better to use a DAC feeding into some sort of opamp circuit doing analog reference tracking, similar to the common electronic load circuits.

    • @pfeerick
      @pfeerick 5 ปีที่แล้ว

      Yeah, much better to use op amps to do any regulation.

    • @int2str
      @int2str 5 ปีที่แล้ว +1

      Define "too slow"? I would argue it's perfectly fine.
      He already said, there's better circuits out there (op-amp etc.). But you can do it like this. The problem I see is that the *CODE* is way too slow. It's reading and writing serial bytes to/from the display in a blocking fashion, which keeps it from regulating while that's going on.
      An easy, probably 100x (yes) speed improvement could probably be achieved with these techniques:
      - Move serial read/write to asynchronous or interrupt driven (ex. read 1 byte per loop only)
      - Move ADC reading to be interrupt driven
      - Check datasheet if there is a different way to use display that sends binary commands, not long text strings
      - Check if I2C is available to talk to the display rather than Serial.
      - Move serial to be interrupt driven, if not
      - Use direct PORT access, not analogRead, digitalWrite etc.
      With these changes, you can easily do near-realtime monitoring and control.
      For example, I have an ATMega328P powered electric vehicle (high voltage) charging station that samples an ADC at over 1kHz, updates a display checks buttons and more at 30Hz etc.
      And some of these items listed are not very advanced and can easily be done, even within the Arduino IDE. So looking forward to the "second attempt" video, hopefully with some of the optimizations

    • @vinayladwal3096
      @vinayladwal3096 5 ปีที่แล้ว

      Every thing depends on how do you do a timing analysis of code i made a 5kW boost converter that was running on switching freq of 10k using arduino mega and that too was a closed loop algorithm PI controller.
      Only difference was using a arduino mega but code written in AVR studio

  • @akshaykolekar5903
    @akshaykolekar5903 5 ปีที่แล้ว

    You can use lm7805 instead of buck converter for 5 volts. (6:36)

  • @pupplecoffee
    @pupplecoffee 5 ปีที่แล้ว

    I also failed with micro-controlled regulator. I think triangle wave comparator regulation is more good.

  • @ivolol
    @ivolol 5 ปีที่แล้ว

    Generally you want to create a analogue stage which does all the output control & feedback, and simply reads values to use from a DAC circuit(s) that come from your digital stage. In the above case you're mixing them by including the digital in the control of current, and the digital will slow it down too much.

  • @rafaelcabelo6616
    @rafaelcabelo6616 5 ปีที่แล้ว

    Nice project but I think you are getting a hard way. You can simplify just creating a ref voltage with the Arduino to an RC filter and opamp and connecting to feedback pin of buck converter you are using for.

  • @petzi8695
    @petzi8695 5 ปีที่แล้ว

    Verry interesting

  • @ShridattDudhat
    @ShridattDudhat 5 ปีที่แล้ว

    Anyway this is great attempt appreciate 👏
    If possible please make video about how we can eliminate bulky transformer to step down ac ?

  • @krishnawa_
    @krishnawa_ 5 ปีที่แล้ว

    I'm also working on same project

  • @RecehDIY
    @RecehDIY ปีที่แล้ว

    this kind of PSU is good
    it would be nice if using i2c lcd and rotary encoder.

  • @stewartrv
    @stewartrv 5 ปีที่แล้ว

    I think you should use a Bluepill instead of the Arduino so you get 12bit ADC and then why don't you use a standard Buck (PWM) chip like a LM2576HV-Adj and then use digital Pots or R2R ADC to set the voltage. The arduino speed is then no longer an issue and the feedback loop is handled by the chip! You can still read the voltage and current with ADC's. Maybe also don't need a current sensor if you get a shunt and op amp to measure the voltage across it. This is how Ii've been looking at building one like this. For speed or simplicity you can get an off the shelf regulator and replace the pots as above.

  • @batcircuit4742
    @batcircuit4742 5 ปีที่แล้ว

    please make another video on THE FPGA Verilog...........plzz

  • @FixDaily
    @FixDaily 5 ปีที่แล้ว

    You can not use an arduino to control the PWM of a PSU, that takes forever to stabilize the output and you'll end up burning your load. Also your code compares and increase \ decrease the PWM until you reach the correct value if the needed value is on the otherside of the scale, it will take longer.
    You need to use opamps and set a reference voltage with the arduino, and the opamp will follow it, this way you can control the Voltage and Current.
    Also arduino ADC is only 10bits, you'll not have enough precision.

  • @isprithul
    @isprithul 5 ปีที่แล้ว

    Use a separate buck converter chip. Feed dac value from Arduino. This is the way DPS5005 works.

  • @vinayladwal3096
    @vinayladwal3096 5 ปีที่แล้ว

    If you are so concern about refresh rate use two arduino one that is responsible for recieving commands from screen and simply sends a command to main arduino if needed for example seperate the code for serial communication from the code that is responsible for control and protection of buck converter. Like if you understand and find this useful. You can utilize I2C to make communication between arduinos.

  • @jussapitka6041
    @jussapitka6041 5 ปีที่แล้ว

    A rotary encoder and a 16x2 or 20x4 lcd would allow more intuitive control and better refresh rate.

  • @SantaDragon
    @SantaDragon 2 ปีที่แล้ว

    Very sad ... I cant find a complete fow how to build this power supply or the rest of the build.

  • @raghavsrivastava2910
    @raghavsrivastava2910 5 ปีที่แล้ว +3

    Why not use a digital potentiometer and a commercial buck converter, remove its potentiometer and replace with a digital potentiometer...

    • @dhruvchikhaliya3464
      @dhruvchikhaliya3464 5 ปีที่แล้ว

      But that overkill the project.

    • @GRBtutorials
      @GRBtutorials 5 ปีที่แล้ว +1

      Digital potentiometers are incredibly crappy. They have at most 10 bits of precision, which means that the least significant digit in this PSU would be about 30 mV or 0.03 V. And most of them have only 8 bits, which is 4 times less precise! Fortunately, we don't need a digipot, we can simply apply an analog signal to the feedback pin of the buck converter using a DAC.

    • @raghavsrivastava2910
      @raghavsrivastava2910 5 ปีที่แล้ว

      @@GRBtutorials 8 bit is also available

  • @teamahabhouna5464
    @teamahabhouna5464 3 ปีที่แล้ว

    0:09 banana...... 0:11 gone !

  • @UpcycleElectronics
    @UpcycleElectronics 5 ปีที่แล้ว

    Hey dude, go watch the upload from Rodger on Kainka Labs YT channel about the old transistor tester he tore down recently. He shows a schematic that is super easy to follow. It is well divided into different analogue circuit blocks. These blocks include a simple adjustable current source and separate adjustable high voltage source. These two circuit blocks are done using a single TL082 dual op amp for the current source and a single TL081 for the voltage source. The voltage side is designed for 0-120V at 2mA. The current source circuit IIRC adjusts from 2uA to 2A using switched resistors.
    ...anyways... I asked Rodger about a zener reference configuration that is used between the two circuit blocks. Basically, the setting for the 0-120V voltage source is a 10k potentiometer in parallel with a 5V6 zener diode. So, this circuit would be perfect for using a voltage output DAC. If the series pass transistor is replaced with a better version this circuit could be handy for adjusting higher currents as well. The best part of the example is it's clear demonstration of how to setup the op amp and pass transistor with voltages higher than the maximum rated voltage of the op amp.
    Regardless, that upload, and schematic are a great reference to save. I saved it to my power supply playlist and a few others.
    If you are going to use a MCU to build a power supply though, I think PICs are the way to go. You can get an op amp, DAC, ADC, comparator, voltage reference, independently configured logic, and flexible peripheral pin reconfiguration on board.... but it is a whole lot more of a pain than an Arduino...or so I'm learning....while I keep getting and using more Arduino's for projects. It's funny that learning another MCU is a project. While playing with Arduino's is a way to do projects now.
    -Jake
    Edited: if you are going to build a setup like this with the ability to program the MCU with USB, think about using an Arduino Pro Mini. Then grab the English translated datasheet for the CH340G USB to Serial converter chip. There is a simple schematic on that datasheet for adding optical isolation using a few cheap PC817's. It doesn't add much circuitry, and you'll need to add one extra channel for the DTR to Arduino Reset pin for programming. This will probably save someone's computer from getting fried if a bad connection is made or a failure happens ;)

  • @thecuriousone9342
    @thecuriousone9342 5 ปีที่แล้ว

    You see electronoobs you click on the video

  • @geekyfreak7920
    @geekyfreak7920 5 ปีที่แล้ว +1

    please make Despacito Cover Song!!!!!!!!!! i love your content please your voice is very beautiful i wanna hear Despacito in your beautiful voice ~

  • @razvaizman5626
    @razvaizman5626 5 ปีที่แล้ว

    full bridge rectifier!!!!!!!!!!!

  • @GRBtutorials
    @GRBtutorials 5 ปีที่แล้ว +1

    6:03 Are you applying 15 W of power to that poor 5 W resistor? You monster! ;)

  • @GRBtutorials
    @GRBtutorials 5 ปีที่แล้ว +1

    Why do you use a transformer if you're going to use a DC-DC converter afterwards? It'd make more sense to use an SMPS for 230 V to 30 V, which is more efficient, lighter, and usually cheaper.

  • @theBartek74
    @theBartek74 5 ปีที่แล้ว

    FULL BRIDGE RECTIFIER!!!

    • @krishnawa_
      @krishnawa_ 5 ปีที่แล้ว

      Electro booms

  • @Evgen-Evgen-Evgen
    @Evgen-Evgen-Evgen 3 ปีที่แล้ว

    8:04 probably because first time it wasn't and capacitor is blew up))

  • @SIKHGT650
    @SIKHGT650 5 ปีที่แล้ว

    First liked , than watched later , again and again

  • @addiction-69
    @addiction-69 5 ปีที่แล้ว

    Noob; From which country are you belong to???

  • @skyem5250
    @skyem5250 5 ปีที่แล้ว +1

    What's with the banana?

    • @1337PANDA
      @1337PANDA 5 ปีที่แล้ว +5

      that's a reference according which the viewers can get the real size of the components or parts

    • @skyem5250
      @skyem5250 5 ปีที่แล้ว +1

      @@1337PANDA if that's the case, it's not a very good one because bananas vary greatly in size

  • @TheMrRedBeard
    @TheMrRedBeard 5 ปีที่แล้ว

    There's your problem, you didn't connect the banana

  • @pinkysharma8884
    @pinkysharma8884 5 ปีที่แล้ว

    Hey bother I will like watching you make a transistor tester using arduino I know you make a number of videos on voltage and current measurement but I will like watching it

  • @drankenkorps
    @drankenkorps 4 ปีที่แล้ว

    Rotary encoder for voltage control... Trust me.. You will get anoyed if you don't have one

  • @addiction-69
    @addiction-69 5 ปีที่แล้ว

    Noob make a Arduino base balance charger......as New year 1st project

  • @webslinger2011
    @webslinger2011 5 ปีที่แล้ว +3

    Nice project. Can make one using am ordinary 16x2 lcd?

    • @webslinger2011
      @webslinger2011 5 ปีที่แล้ว +2

      Oh, also knob or button control if possible.