Constant Voltage or Current Supply with ARDUINO

Поделиться
HTML-код
  • Опубликовано: 23 июл 2024
  • Join my Arduino Course -70% Sale (Spanish): bit.ly/3ldW6kO
    🔥In this video I show you how to get constant voltage or cosntant current using the Arduino and a voltage/current feedback. Hope you learn something new and prepare for the MPPT project...
    🔗LINKS
    ------------------------------------------------------------
    Buck Converter Tutorial: electronoobs.io/tutorial/210
    ACS712 Tutorial: electronoobs.com/eng_arduino_...
    Buck Converter Video: • DIY Buck converter - T...
    Boost Converter Tutorial: • Boost converter with F...
    AFILIATE LINKS🔗
    ------------------------------------------------------------
    Digital Microscope AD407: www.banggood.com/custlink/mKD...
    PCB magnetic support: www.banggood.com/custlink/3DG...
    Soldering station: www.banggood.com/custlink/3KK...
    900M-T Tip Kit: www.banggood.com/custlink/KvD...
    TS80 soldering iron: gbe.st/302klVF
    TS100 soldering iron: www.banggood.com/custlink/33D...
    KSGER T12 soldering iron: www.banggood.com/custlink/KmG...
    Solder 0.5mm: ebay.us/QvMPcA
    Flux syringe: ebay.us/A7cdbP
    Dispenser: ebay.us/c2w232
    Solder Paste: www.banggood.com/custlink/GG3...
    Tweezers ceramic: www.banggood.com/custlink/K3K...
    Tweezers KIT: www.banggood.com/custlink/KG3...
    Titanium tweezers: www.banggood.com/custlink/GKK...
    Download PCB Gerbers for practice: electronoobs.io/shop/index.ph...
    SUPPORT🤝
    ------------------------------------------------------------
    Patreon : / electronoobs
    Shirts & Merch: teespring.com/es/stores/elect...
    Join ELECTRONOOBS.io: electronoobs.io
    00:00 Intro
    00:46 Buck converter
    05:08 Constant Voltage Not Feedback
    08:16 With Feedback
    11:47 Constant current
    #Buck
    #Arduino
    #supply
  • НаукаНаука

Комментарии • 239

  • @ELECTRONOOBS
    @ELECTRONOOBS  3 года назад +7

    You all have good questions, I'll try to answer them soon. Thank you so much!
    Join my Spanish Arduino Course: bit.ly/3ldW6kO

    • @09iban09
      @09iban09 3 года назад

      Una pregunta, si nos apuntamos al curso ahora podremos seguir con el segundo curso avanzado o ese curso ira aparte? A mi me interesa mas el avanzado, pero si va todo junto me apunto ya y asi ya lo tengo. Un saludo

    • @ELECTRONOOBS
      @ELECTRONOOBS  3 года назад

      @@09iban09 hola. Los cursos van relacionados pero serán dos cursos por separado. Quiero decir tendrías que pillar el segundo también. Si quieres espérate al más avanzado. Saludos :)))

    • @09iban09
      @09iban09 3 года назад

      @@ELECTRONOOBS vale perfecto gracias. Esperando al segundo curso con ansia =D

    • @pashko90
      @pashko90 3 года назад

      @HalfSpeedMastering hi bro. Im looking for some budget 300-350v (working voltage on the system 210-260v) mppt, but they all priced around 1000$. Where is something cheaper on the market? I love vectron, but does not have that much cash right now... I appesiate your advice.

  • @raagamparmar179
    @raagamparmar179 3 года назад +17

    I ALWAYS WANTED A VIDEO BASED ON THAT!!! Good Job!

    • @robotechzone
      @robotechzone 2 года назад

      best arduino project ruclips.net/video/zxlb22cTwHo/видео.html and you can also get code from this video

  • @TechBuilder
    @TechBuilder 3 года назад +18

    Great vid! Was working in a synchronous version lately, very timely :)

    • @ericdenny4515
      @ericdenny4515 3 года назад +1

      My three favourites are electronoobs,Techbuilder and great scott

    • @protonspeed
      @protonspeed Год назад

      @@ericdenny4515 same here

  • @marshdilruk
    @marshdilruk 3 года назад +4

    As Albert Einstein once said, you made everything about buck converter as simple as possible but not simpler than what it should be. Great video man! It's really an interesting time to be live in because video tutorials of this quilty are freely available on RUclips.

  • @ericcmcgraw
    @ericcmcgraw 3 года назад +4

    Very well explained. A little more detail on the role of the inductor and diode: When the switch is closed, the supply is charging up the inductor, which stores its energy as current. When the switch opens, the inductor discharges its energy while pulling additional current through the diode. This is what allows the converter to output more current than the supply (unlike a linear regulator) and thus be more efficient.

  • @Delali
    @Delali 3 года назад +4

    I love how you explain stuff into details. Glad to learn from your channel as always. Great video

  • @ecospider5
    @ecospider5 3 года назад +6

    Fantastic overview. I’m looking forward to understanding the code that makes this work.

  • @circuitium310
    @circuitium310 3 года назад

    Nice video! Love them not just the way you present them but because they teach and clarify some vague concepts. Thank you!

  • @iuhere
    @iuhere 3 года назад +1

    Absolutely worth my watchtime.🙏 Thank you for sharing. Good luck 👍 for the next one

  • @fatigmakers
    @fatigmakers Год назад

    I've watched your videos for serveral months. Great explaination in simple words, although I'm not a native, but still can understand easily. Thank you a lot.

  • @RMquickbit
    @RMquickbit 3 года назад

    Great video man, awesome breakdown from the very beginning and showing the fundamentals behind the circuits! Too many channels skip over the educational information, 👍🏻. Definitely looking forward to the future MPPT controller. Well done, sir.

  • @akara8793
    @akara8793 Год назад

    One of the best explanation i have seen for a long time. You need really know your craft to explain it in such simple terms. Its never easy explaining complex thing very simply. Well done look forward to watching more

  • @malharkhairnar485
    @malharkhairnar485 3 года назад +1

    Your videos helped me alot for my engineering project

  • @BenMitro
    @BenMitro 3 года назад

    Excellent absolutely excellent coverage of a buck inverter based on Arduino. Looking forward to the full MPPT project.

  • @Dad-ij2qy
    @Dad-ij2qy 8 месяцев назад

    Two seriously COOL ways to use an Arduino! Thank you for explaining it all in such detail. Super!

  • @mrfrozen97-despicable
    @mrfrozen97-despicable 3 года назад +2

    Good. Thanks for fresh content Everytime

  • @r.d.machinery3749
    @r.d.machinery3749 3 года назад

    This guy is one of the best of the electronic enthusiast RUclipsrs. I have watched the channel grow quite successfully. Shame about the constant ads - I pay for RUclips and expect an ad free experience.

  • @bahadrsivasl6615
    @bahadrsivasl6615 3 года назад

    Realy great job!!! You won a subscriber, thanks for your efforts

  • @jimbooth2010
    @jimbooth2010 3 года назад

    Very nice video!! Good job!

  • @stefano.a
    @stefano.a 3 года назад +1

    Excellent work! This will be taught in the school where I work (referring also to your video and video channel) adding PID control. Thank you!

    • @stephaniesadie832
      @stephaniesadie832 Год назад +1

      "taught" not "teached", dreadful grammar for a Teacher.

    • @stefano.a
      @stefano.a Год назад

      @@stephaniesadie832 thank you. I teach electronics in Italy

  • @educationaltechnology8363
    @educationaltechnology8363 2 года назад

    ohhh your channel is definitely under-rated crystal clear explination.

  • @vipinchoudhary2787
    @vipinchoudhary2787 3 года назад

    Thank you very much, I was waiting from a long time for such video..

    • @robotechzone
      @robotechzone 2 года назад

      best arduino project ruclips.net/video/zxlb22cTwHo/видео.html and you can also get code from this video

  • @jeroenjager
    @jeroenjager 3 года назад

    Great video! This helped me out soo much!

  • @Gyaan_anant
    @Gyaan_anant 3 года назад

    Your channel has lot of good stuff, so i'll subscribed it..,, keep growing good content.

  • @rjhornsby
    @rjhornsby 3 года назад

    Thanks for this video. I have a closet full of low power gear, most 5, 12, maybe 18VDC - many of us do - and it’s long frustrated me that every single device needs its own 120VAC power input. It’s messy wiring, requires multiple 120V power strips, and I have to guess can’t be power efficient doing AC to DC for each thing. Your explanation helped me understand what it might take to fix my rat’s nest.

  • @ivanrocha9808
    @ivanrocha9808 2 года назад

    Thank you, great explanation!

  • @SaliyaRuchiranga
    @SaliyaRuchiranga 3 года назад +1

    great video, and clear explanation ! 💖💖💖💖💖

  • @Metroid1890
    @Metroid1890 3 года назад +1

    I've been wanting to do this for a while

  • @caslor2002
    @caslor2002 3 года назад

    Thanks one more time again for the detailed but simple in explanation video for electronics . i have learned a lot and helped me build my own projects.

    • @ELECTRONOOBS
      @ELECTRONOOBS  3 года назад

      Thank you!

    • @lennard7123
      @lennard7123 3 года назад

      @@ELECTRONOOBS Hey, I also think this video explains very good how the converter and module are working, but you could please post the code for using buck converter and current limiter at the same time? I don't know how to program it... Thank you very much :)

  • @electronic7979
    @electronic7979 3 года назад +1

    Helpful video. I liked it

  • @PhG1961
    @PhG1961 3 года назад

    Waw, really usefull and a great video. Very well explained !
    Happy holidays and keep it safe !

    • @ELECTRONOOBS
      @ELECTRONOOBS  3 года назад

      Thank you very much! Happy holidays to you too!

  • @ignition_electronics2520
    @ignition_electronics2520 3 года назад +1

    Thank You So much for Great Tutorial 🔥🔥

  • @sermadreda399
    @sermadreda399 3 года назад

    Great vid, Thank you for sharing

  • @guilhermedias9404
    @guilhermedias9404 3 года назад

    Great vídeo man 👍👍👍

  • @mancio92M
    @mancio92M 3 года назад +1

    beautiful tutorial

  • @sammflynn6751
    @sammflynn6751 3 года назад

    damn waiting eagerly for the MPPT video, This channel keeps getting better every video.

    • @robotechzone
      @robotechzone 2 года назад

      best arduino project ruclips.net/video/zxlb22cTwHo/видео.html and you can also get code from this video

  • @abdullahalrazi3491
    @abdullahalrazi3491 3 года назад

    Wait for it bro. love you

  • @ashok_ign5623
    @ashok_ign5623 3 года назад +1

    Always Great Tutorials 🔥🔥

    • @robotechzone
      @robotechzone 2 года назад

      best arduino project ruclips.net/video/zxlb22cTwHo/видео.html and you can also get code from this video

  • @avejst
    @avejst 3 года назад

    Great video
    Thanks for sharing :-) 🎄

  • @slametriswandi7322
    @slametriswandi7322 3 года назад

    Great tutorial. Excellent...

  • @abdulrouflone_5555
    @abdulrouflone_5555 3 года назад +1

    Thanks for making MPPT CONTROLLER 😍

  • @AD34534
    @AD34534 3 года назад

    Great video bro.

  • @usmanumer9871
    @usmanumer9871 3 года назад

    u always explan clearly

  • @EEGworld
    @EEGworld 3 года назад

    Awesome content 👏

  • @technicaljourneywithpuneet
    @technicaljourneywithpuneet 3 года назад

    Well explained 👌 Good 👍

  • @backdemoletor4654
    @backdemoletor4654 3 года назад

    Absolutely fantastic

  • @sivaprakash6068
    @sivaprakash6068 3 года назад

    i am waiting for next week updation of this project. keep doing

  • @Drxxx
    @Drxxx 3 года назад

    great video!

  • @usmanumer9871
    @usmanumer9871 3 года назад

    fantastic project

  • @nithikasandinu9034
    @nithikasandinu9034 3 года назад

    great video. suscribed

  • @Dennis-mq6or
    @Dennis-mq6or 3 года назад

    Good video!

  • @raghavsrivastava2910
    @raghavsrivastava2910 3 года назад +1

    Great video. Please make a video on how to add PID control to this converter.

  • @azyfloof
    @azyfloof 3 года назад +3

    There's a highly linear relationship between the pwm frequency and the voltage output, so you could probably calculate an accurate offset to add to or subtract from the pwm frequency in a single loop, instead of adding or subtracting by 1 with each loop 😊

    • @LeonardoMeireles05
      @LeonardoMeireles05 10 месяцев назад

      No, depende de muchas cosas incluida la temperatura, no es una cuenta Lineal

  • @OtavioRodrigues_
    @OtavioRodrigues_ 3 года назад

    Great video!!
    Could you please explain how to calculate the inductor value in the buck converter?

  • @prathambumb5593
    @prathambumb5593 3 года назад

    Excellent content 👍

  • @jamest.5001
    @jamest.5001 3 года назад

    Happy holidays, this Buck's for you, buck converter!

  • @martinchristiansson658
    @martinchristiansson658 3 года назад

    Thanks alot, Will need to build a buck converter in my upcoming project. How do you calculate what exact inductance/capacitor values necessary?

  • @lennard7123
    @lennard7123 3 года назад +2

    Hey, great video! Could you give us a schematic and code for using the buck converter and current limiter simoutanlisuly?

  • @nasermasri3816
    @nasermasri3816 3 года назад +1

    Keep going!

  • @shehryarshaheen7115
    @shehryarshaheen7115 3 года назад +1

    That's my stuff 🐱. Keep it up

  • @srul76
    @srul76 3 года назад

    Great vid

  • @yahyamustapha7275
    @yahyamustapha7275 3 года назад

    thanks brother you are the best god protect you

  • @RinksRides
    @RinksRides 3 года назад +1

    Suggested to add inline capacitor with gate and appropriate resistor to Source to limit pulse-length to the Gate. This is common practice to block DC. That way, it would not matter if your MCU or driver circuit failed to a DC state. The MOSFET Gate would only respond to pulses. the RC forms a high pass filter. The inline Capacitor to Gate introduces ~90 deg phase shift, but not a problem if you only have one channel or drive all Gates the same way.

  • @CraigHollabaugh
    @CraigHollabaugh 3 года назад

    Nice work, great explanation, well presented. I also liked that you have melted your solderless board in spots. Shows you like to experiment (and maybe failed, ha). Thanks from Colorado.

    • @ELECTRONOOBS
      @ELECTRONOOBS  3 года назад

      Yes I fail a few times till I get it right :)

    • @CraigHollabaugh
      @CraigHollabaugh 3 года назад

      @@ELECTRONOOBS All the great engineers fear not their failures but embrace them.

  • @harikamalakarreddydarapu7410
    @harikamalakarreddydarapu7410 3 года назад +2

    Very nice project

  • @mmoci81
    @mmoci81 3 года назад

    Very good video. Would be nice to understand how to calculate values for inductor and capacitor.

  • @neail5466
    @neail5466 3 года назад

    You are excellent in explaining ❤️,
    This is a great video for understanding the theory but a cc cv module from china would be pocket friendly.

  • @ajpran
    @ajpran 3 года назад

    very great, thanks

  • @NBspark
    @NBspark 3 года назад +1

    nice concept

  • @engineerjoules7163
    @engineerjoules7163 3 года назад +3

    Great explanation of how the feedback loop can maintain a constant voltage output. Awesome video sir!

  • @AlbiinoBlacksheep
    @AlbiinoBlacksheep 3 года назад

    Is there any risk of self-oscillation in the constant voltage circuit? At what load frequency would that be?

  • @asitsantra3491
    @asitsantra3491 3 года назад +3

    Great.... mppt 3 stage charging...

  • @chrisgallagher85
    @chrisgallagher85 Год назад

    thanks for sharing

  • @ranganatennakoon
    @ranganatennakoon 3 года назад

    awesome !!!

  • @edwinr4378
    @edwinr4378 3 года назад

    Thank you 🙏

  • @uvrjj
    @uvrjj 2 года назад

    This is gold

  • @leehewitt9559
    @leehewitt9559 3 года назад

    Brilliant !!

  • @thomassorensen7907
    @thomassorensen7907 3 года назад

    Hi
    Just a question. The p-channel FET at 6:01, does it turn right? You also have the parasitic diode in the FET that will conduct. As I see it, it will conduct when the FET is OFF. Also tuning the FET would leqd to a more defined ON/OFF voltage.

  • @jaishankarm5920
    @jaishankarm5920 3 года назад

    Good job

  • @Kyrazlan
    @Kyrazlan 2 года назад

    How would you go about getting more stable control? For example +/- .001V and .001A

  • @mr.satishfy
    @mr.satishfy 3 года назад

    As am working on attiny85 project pwm based
    is it possible to read inpt pwm &
    Output pwm from ic.
    both run at same time
    please replay...

  • @hans-dieterjung4026
    @hans-dieterjung4026 3 года назад

    Thanks, I like it and I'm learning, my question is, how works a constant Voltage with Current limiter

  • @BFC24
    @BFC24 3 года назад

    can i use volt and current control (both codes) in same circuit ? like mppt?

  • @Dc_tech386
    @Dc_tech386 10 месяцев назад

    Hello I need a constant voltage in a buck converter no matter the load but I use lm393 to regulate the current but i can’t get the voltage to stay at 24 voltage the voltage drop to 20 volt I use feedback to the comparator but I don’t know how to use op amp to get constant voltage or I have to use programming ic to do this because op amp cont do it

  • @sefalibhakat143
    @sefalibhakat143 3 года назад

    Great 👍

  • @chanusatelier1331
    @chanusatelier1331 3 года назад +1

    Great Job!, Please Make a video for PID controller large heaters(like 1.5kW) using SSR, Thank you.

  • @enpegee
    @enpegee 3 года назад

    can you make multiple phase voltage regulator? like vrm in motherboard or graphic card

  • @danielakintola8000
    @danielakintola8000 2 года назад

    Hello. Can it be used for AC current too?

  • @nisstw
    @nisstw 3 года назад

    Sir, would you please add short protection function into this power supply. Thank you.

  • @vsapre80
    @vsapre80 3 года назад

    Very nice 👍 video.

    • @vsapre80
      @vsapre80 3 года назад

      You show high side switching in the schematic. What is the device used in the setup shown.

  • @andreiciora2765
    @andreiciora2765 3 года назад

    Foarte fain

  • @kubilaytan9507
    @kubilaytan9507 3 года назад

    i want to 10 uA constant current circuit. Is it possible with this circuit . Thanks

  • @simengfu7352
    @simengfu7352 Год назад

    Is the diode placed at the best place? Because once the switch is off, the energy stored in the inductor would push towards the same direction as when the switch is on which results a voltage spike (inductor engergy + capacitor energy). That voltage spike would result a current firstly pass through the LED and then the diode. By the time the current reaches the diode (if it does), the LED is already burnt. This indeed saves the MOSFET but destroyed the load which I think is much more expensive than the MOSFET. I suggest to put that diode together with the inductor parallely just after the switch and befor the capacitor. In this way the the diode is freewheeling immediately after the switch is off.

  • @IncroyablesExperiences
    @IncroyablesExperiences 3 года назад

    Hi!
    I made an equivalent project years ago in order to charge CC a SuperCapacitor (efficient charge) and get its energy back at CV. I didn't managed to implement a full PID regulation and I see you don't tried (I was expecting as you've done many PIDs before ^^). Your regulation is a kind of integral only (and not proportional to the error).
    Do you think it's possible to implement a full PID this way? It's easy when input/output are not quickly related (heat control, drone axis, etc.) but here a proportional or derivative reaction would instantly fail. Have you tried?
    Thanks to be the only guy on the net that could understand this issue 😌

    • @piiumlkj6497
      @piiumlkj6497 3 года назад +1

      I think he kept it simple so the majority of viewers can understand, maybe you can do pid on your channel , défi ?

    • @IncroyablesExperiences
      @IncroyablesExperiences 3 года назад

      @@piiumlkj6497 He often is exhaustive, I'm pretty sure he tried and conclude it's not possible, I think the loop frequency of the Arduino isn't fast enough to really be able to manage a functional proportional (and worst derivative) effect (it's an assumption).

    • @IncroyablesExperiences
      @IncroyablesExperiences 3 года назад

      @Electronoob?

  • @samimsk8377
    @samimsk8377 2 года назад

    Dear Sir, Can we convert LED Flood Street Light's non-dimmable driver to dimmable driver 60 voltage and 1 Amp DC to DC buck converter concept? When I'm trying, but the LED Flood Panel is flicking. Please give me any solution and thanks 😊

  • @guilhermedias9404
    @guilhermedias9404 3 года назад

    How mutch can a arduino be power externaly in the Vin pin ??

  • @rowanballinger3690
    @rowanballinger3690 3 года назад +1

    How do you combine the two circuits and code to get it doing constant current and voltage at same time please?

    • @robotechzone
      @robotechzone 2 года назад

      best arduino project ruclips.net/video/zxlb22cTwHo/видео.html and you can also get code from this video

  • @usmanriaz8396
    @usmanriaz8396 2 года назад

    when we pressed the button ,output is less then pot_value so pwm should be increased . but in the code it is decreasing. is it wrong or am i missing some thhing ?

  • @phuocnguyenhuu3589
    @phuocnguyenhuu3589 3 года назад

    Hi, I do this circuit but face with the problem: Drop voltage when connect the load. Can you fix it?

  • @RehanKhan-nc6bf
    @RehanKhan-nc6bf 2 года назад

    i want to design constant AC voltage (12V or 24V) power supply from 220/240 V, please help me