Constant Voltage or Current Supply with ARDUINO

Поделиться
HTML-код
  • Опубликовано: 21 янв 2025

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

  • @ELECTRONOOBS
    @ELECTRONOOBS  4 года назад +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 4 года назад

      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  4 года назад

      @@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 4 года назад

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

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

      @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.

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

    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.

  • @raagamparmar179
    @raagamparmar179 4 года назад +18

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

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

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

  • @TechBuilder
    @TechBuilder 4 года назад +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

  • @ericcmcgraw
    @ericcmcgraw 4 года назад +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 4 года назад +4

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

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

    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.

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

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

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

    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.

  • @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 4 года назад +1

    Your videos helped me alot for my engineering project

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

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

  • @Dad-ij2qy
    @Dad-ij2qy Год назад

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

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

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

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

    Good. Thanks for fresh content Everytime

  • @MiniLuv-1984
    @MiniLuv-1984 4 года назад

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

  • @mabigasolar
    @mabigasolar 4 года назад

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

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

    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.

  • @stefano.a
    @stefano.a 4 года назад +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

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

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

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

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

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

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

  • @azyfloof
    @azyfloof 4 года назад +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 Год назад

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

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

    I've been wanting to do this for a while

  • @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.

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

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

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

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

  • @RinksRides
    @RinksRides 4 года назад +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.

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

    Always Great Tutorials 🔥🔥

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

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

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

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

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

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

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

    Thanks for making MPPT CONTROLLER 😍

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

    Helpful video. I liked it

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

    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  4 года назад

      Thank you!

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

      @@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 :)

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

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

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

    beautiful tutorial

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

    Thank You So much for Great Tutorial 🔥🔥

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

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

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

      Thank you very much! Happy holidays to you too!

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

    Great video! This helped me out soo much!

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

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

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

    Great vídeo man 👍👍👍

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

    Very nice video!! Good job!

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

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

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

    u always explan clearly

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

    Thank you, great explanation!

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

    Very nice project

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

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

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

    Well explained 👌 Good 👍

  • @SudhirKumar-bq4xz
    @SudhirKumar-bq4xz 4 года назад +1

    For me this is one of best explanation on CV or CC source.
    Sir, can you make a video on MOSFET gate drive circuit. Most of us confused when to use driver IC, when to use isolated transformer, also many schematics offers discrete bootstrap circuits, so can you explain which option is efficient for specific circuits.
    Also can you recommend a good textbook to study electronics....
    Thank you in advance..... :-)

    • @eindeend
      @eindeend 4 года назад +1

      FYI, greatscott made a video a week ago about driving mosfets. That video helped me understand it very well

    • @SudhirKumar-bq4xz
      @SudhirKumar-bq4xz 4 года назад +1

      @@eindeend Thank you, and I'm also his old subscriber, still we may get new suggestion or even detailed explanation or different opinions from Electronoobs, 2 is always greater than 1 right....? :-)

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

    Wait for it bro. love you

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

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

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

    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  4 года назад

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

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

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

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

    That's my stuff 🐱. Keep it up

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

    Absolutely fantastic

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

    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.

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

    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.

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

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

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

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

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

    Great video
    Thanks for sharing :-) 🎄

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

    Great tutorial. Excellent...

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

    Awesome content 👏

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

    Great video bro.

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

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

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

    Excellent content 👍

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

    Great vid, Thank you for sharing

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

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

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

    thanks brother you are the best god protect you

  • @eletronicaparaohooby
    @eletronicaparaohooby 4 года назад

    If you use pid for control?

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

    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

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

    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 😊

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

    nice concept

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

    fantastic project

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

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

  • @shantotorofder3916
    @shantotorofder3916 4 года назад +1

    I want to make a micro analog linear servo motor........but there is no link or code......plz make something like servo.....with photoreflector and motor driver.......... that can I control with transmitter Roll pitch or yaw....

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

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

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

    Keep going!

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

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

  • @TheRainHarvester
    @TheRainHarvester 4 года назад

    It seems like the voltage could be too high for a few loops before the pwm is decremented to the correct value.

  • @SonicWawes
    @SonicWawes 4 года назад

    Hi. Great video for beginers. Please correct you video for errors in schematic. Your P-MOS transistor has swapped Source and Drain (in for example 5:52). Always connect Source of P-MOS to power supply and Dran to your load in this configuration. Otherwise you tranzistor will be still open thanks to body diode.

  • @amnesie6615
    @amnesie6615 4 года назад

    Arduino = Like! I love the Arduino content!

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

    great video!

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

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

  • @ionelvranceanu6413
    @ionelvranceanu6413 4 года назад +1

    Great video as always. How's the nixie watch project going?

    • @ELECTRONOOBS
      @ELECTRONOOBS  4 года назад +1

      I've made the PCB but haven't received it yet...

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

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

  • @mohamedsayed-id7wd
    @mohamedsayed-id7wd 2 года назад

    Why are you used a transistor ?
    and Do we need used a transistor with a mosfet in boost converter ,if yes why ?

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

    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...

  • @jensschroder8214
    @jensschroder8214 4 года назад

    If you open the switch, the coil will try to keep current flowing. This can be done through the diode in the capacitor. With the switch open, the coil becomes a battery for a short time.
    The diode should be a fast Shottky diode, not a slow 1N400x. A quick UF4004 work.

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

    Isn't the high side pmos backwards in your illustration?

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

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

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

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

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

    Nice but ...
    With a 555 timer you have a voltage divider on the inputs feeding two comparators that are driving flip flop.
    Wouldn't it be simpler to substitute the arduino with a 555?
    I haven't drawn it out but I'm guessing less cost and components without the risk of burning out your microcontroller.
    Update.
    I just watched your video on the Buck converter and read your post on using the 555.
    Nice to know I was right about it being possible.
    Thanks for posting these, very educational 👍

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

    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 4 года назад +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 4 года назад

      @@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 4 года назад

      @Electronoob?

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

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

  • @tonyrebeiro
    @tonyrebeiro 4 года назад

    You must use a 5V zener diode across the voltage divider output, to protect the Arduino input from getting damaged.

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

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

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

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

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

    Please add simple mosfet driver

  • @Deepakkumar-pk9nz
    @Deepakkumar-pk9nz 4 года назад +2

    Add a rotary encoder to control the current and voltage.

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

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

  • @michaelfeeley4351
    @michaelfeeley4351 4 года назад +1

    Aren’t there custom ICs that can do the job of the arduino in this project? To my knowledge they’re considerably faster too. Good job though!

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

      Yes, but in this case its just a part of unfinished project.

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

    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.

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

    Hello. Can it be used for AC current too?

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

    10:48 Is it correct ? Wouldn't it be if voltage > output
    Pwn =pwn +1 ???

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

      Ok is it different because of the second transistor?

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

    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 ?