Battery Charging Using Constant Current Design and Simulation in MATLAB/Simulink!-(Part 1)

Sdílet
Vložit
  • čas přidán 30. 07. 2024
  • Hey guys!
    In this video, we show how to design and simulate battery charging using constant current,step by step from scratch.This is part one of a two part series.This video shows charging of battery using dc voltage source where the charging current is maintained constant.The next video will show you how to discharge the battery and how to maintain constant voltage.
    ---------------------------------------------------------------------------------------------------------------------------------------------------------
    If you liked this video please share it with your friends and drop a like and subscribe by clicking the bell icon to not miss out on our latest content ;)
    Comment down below what you think about this video,queries and requests are always welcome!
    Stay tuned for more quality tutorials! Until then thanks for watching :)
    Our website- howtoproject98.wixsite.com/th...
    Our Instagram handle- / theurbanscholar
    Our Linkedin page- / the-urban-scholar
    Music: www.bensound.com

Komentáře • 143

  • @BiteSizeTech
    @BiteSizeTech Před 4 lety +1

    The video was engaging and I enjoyed watching. The video quality and filming was great as well. I can't wait to see more content from you. keep it up!

  • @mohandelucshanth7108
    @mohandelucshanth7108 Před 3 lety +7

    Hi mate, How did you calculate the value for PI controller? pleases share the method that you have done for this simulation

  • @moniboopathy9088
    @moniboopathy9088 Před 3 lety +1

    Hi sir thank U so much for the useful video. I’m using matlab 2013 I can’t connect CMOS NOT gate to mosfet-2 in subsystem.wat may be the reason?

  • @fabioalmeida4700
    @fabioalmeida4700 Před 2 lety +1

    Finally a great video, and a simple circuit.

  • @masihaaijaz5840
    @masihaaijaz5840 Před 4 lety +1

    Thank you so much 🙏🏻 Learnt a lot!

    • @TheUrbanScholar
      @TheUrbanScholar  Před 4 lety

      Please share it with your friends as well, I'm sure they would like it🙂

  • @mohamedsaad-ve5rh
    @mohamedsaad-ve5rh Před 3 lety +3

    You're doing good job Sir God bless you. Actually the video that people are looking for is CCCV combined, first step begin charging the battery with bulk current until open circuit voltage of the battery is reached then switch to constant voltage and continue charging in this mode with less current. The current in the CV mode should continue to decrease until zero or to a certain preset value (a very small value) to indicate that charge is complete.
    My idea is to take CC part-1 of your video and combine it with CV-Part2 of your video. Then use switch to switch between the two modes. First we sense the soc of the battery, if soc=85% then battery should charge in CV mode and then switch will pass signal2 (which is the control loop of the cv mode in part2 of this video)...Instead of the soc..one can use the battery voltage to do the switching..if battery voltage is at xyz amount then do CC else do CV
    What do you think about this idea?
    You can also do a buck converter to charge the battery in CC-CV mode by applying the same logic here ch.mathworks.com/matlabcentral/fileexchange/35735-charger-for-battery-48v-from-dc-source-32v-with-two-mode-cc-and-cv but instead of boost, use BUCK CONVERTER...that's all. As you can see people are requesting for this video and i hope you can spare some time for us and help.
    God bless you and good luck and keep the good work!

    • @kevinjenugeorge8692
      @kevinjenugeorge8692 Před 2 lety

      Heey did you get the CC-CV model.. if soo please share your work

    • @kevinjenugeorge8692
      @kevinjenugeorge8692 Před 2 lety

      Also the shared model you gave it shows an error output of battery not connected

  • @waleedali238
    @waleedali238 Před 2 lety +1

    Dear Sir
    Please is it possible to apply the same control circuit to charge a 48-volt battery from a full rectifier circuit.

  • @naresaikiran8115
    @naresaikiran8115 Před 19 dny

    super explanation sir...thank you!!!!

  • @jiajingli9765
    @jiajingli9765 Před 3 lety

    Thank you Sir! This video is really helpful

  • @SUZAKU__007
    @SUZAKU__007 Před rokem +1

    how you are choosing the values for R,L, PID controllers and etc

  • @kadamaakanksha1899
    @kadamaakanksha1899 Před 3 lety +1

    Can you explain actual working of PID controller for Li-ion battery charging by CC- CV method?

  • @harshvardhanpatil1004
    @harshvardhanpatil1004 Před 3 lety

    Can you please tell the values of pid controller and inductor and resistance corresponding to battery nominal voltage 3.7v

  • @shubhamsonawadekar5772

    Nice video thanku one thing I want to tell u can use proper equations to tune PI Controller u will get more smooth DC output

  • @waleedali238
    @waleedali238 Před 2 lety

    Dear Sir . First of all, thanks for this great video. I have a question, is it possible to use a full wave rectifier circuit output 48 volts DC to charge and discharge this battery instead of using a constant voltage source. please answer

  • @salimkhelifa5750
    @salimkhelifa5750 Před 2 lety

    Hi,
    Why the current in the output of the battery is negative ?

  • @dhanaselvamj-djssmartlearn4237

    Thank you for the video. Nice explanation. I have a doubt like i am using MATLAB 2014. There, I am not able to connect Mosfet gate and goto block. What may be the reason?

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety

      Send us a screenshot to our mail- howtoproject98@gmail.com we'll be more than happy to clarify 🙂

  • @durragas4671
    @durragas4671 Před 2 lety

    I would love the calculations in how you came up with the values.

  • @mohamedsaad-ve5rh
    @mohamedsaad-ve5rh Před 3 lety +4

    Can you combine this part 1 and the part 2 to make one CC-CV charging? System should automatically switch from CC to the CV mode once the open circuit voltage of the battery is reached or when the SOC is between 80-100%.

    • @nithishvg8699
      @nithishvg8699 Před 2 lety +1

      yea bro i too need that concept and i am working on it coudn't find MATLAB code i tried to code by myself but ended up with error

    • @hiteshbansal4878
      @hiteshbansal4878 Před 2 lety +1

      @mohamed_saad if you have done the CCCV charging simulation can you please share circuit or image of it. I tried it but it isn't working

  • @muzammilsaiyyad9240
    @muzammilsaiyyad9240 Před 3 lety

    Why the two graphs are thick?...is there any specific reason for that?

  • @_Singh_amar_
    @_Singh_amar_ Před 2 lety +1

    Why SOC is not increasing here as we are charging the battery

  • @user-rk7pw3mw7g
    @user-rk7pw3mw7g Před rokem

    This is DC charging. We also need AC charging passing through an AC-DC converter. Any help?

  • @samuelameiza-djabli2350
    @samuelameiza-djabli2350 Před 3 lety +1

    Another great video, but I was wondering how you determined the values that you were placing into the model? Are you using a particular battery specification?🤔

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety

      Hey! Thank you for your comment! This is just a proof of concept! We haven't gone into the details of the design.

    • @etiennev242
      @etiennev242 Před 2 lety +1

      @@TheUrbanScholar Hey ! Thanks for the vidéo and your work on this subject !
      Have you done a video detailling the design ? Or are you planning to ?

  • @crendo-givingshoutouts1206

    Simple but spectacular ✪ ω ✪

  • @izzattyshahrom2625
    @izzattyshahrom2625 Před 3 lety +1

    sorry for asking, is there any response if we tune the pid controller into other value?

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety +1

      You never have to be sry for asking us remember that we're here to help each other 😄
      PI Controller tuning to another value around the specified values will not change the final result, what will change is the rise time, delay time and the maximum overshoot, hope this helps 😄

    • @izzattyshahrom2625
      @izzattyshahrom2625 Před 3 lety

      @@TheUrbanScholar alright, i got it! thank you for helping :) keep on sharing good content, all the best

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety +1

      Pls share our channel with your friends as well they'll find it helpful like you did 🤠

  • @fsociety
    @fsociety Před 2 lety +1

    Sir I'm getting an error that the MOSFET output is not connected.
    Can you help with this one

  • @fatimasabbar5775
    @fatimasabbar5775 Před 2 měsíci

    How can we implement it with an inverter and grid

  • @vinesh7840
    @vinesh7840 Před rokem

    Sir for the same model how to make battery discharge

  • @free_boy
    @free_boy Před rokem

    Hi where can i download this model?

  • @donajoy1737
    @donajoy1737 Před 3 lety +1

    Hi sir, your vedio is really helpful, can you tell how to obtain the values for resistors and indictors.

    • @muhammadumer8748
      @muhammadumer8748 Před rokem

      did you get any way of calculating the values of resistors and inductor?

  • @hocho7254
    @hocho7254 Před 3 lety

    Good bro.....nice job however if possible then give some hints how to calculate the parameters you are inserting in the simulation blocks it would be good for the beginners.

  • @farhanfauzi3209
    @farhanfauzi3209 Před 3 lety +1

    Sir, can you make a matlab simulink simulation on heat transfer modelling of lithium ion battery

    • @_Singh_amar_
      @_Singh_amar_ Před 2 lety

      Request him through mail..i send him mail also

  • @izzattyshahrom2625
    @izzattyshahrom2625 Před 3 lety

    Hello sir, this video really interesting! good job :) I hv a question.. Is it possible if we combine boost converter cct (boost the input voltage from source) with a charging cct (use the boost output voltage to charge a battery)?

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety

      It will work on simulink and it'll work practically, but this system can't be combined with other applicances for practical purposes as it doesn't have current control or voltage control, do let us know if it cleared your doubt 🙂

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety

      It will work on Simulink and it'll work practically, but this system can't be combined with other applicances for practical purposes as it doesn't have current control or voltage control, do let us know if this cleared your doubt 🙂

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety

      Nice thinking btw😉

    • @attriadarsh
      @attriadarsh Před 3 lety +1

      Sir Please tell me is SOC is increasing in this?. .with constant current ...as in the result we saw 83.89+++ and goes in increasing whilw we gave the 85% initial charge help me out i m confused

  • @mohi7781
    @mohi7781 Před 3 lety +1

    Thank you sir
    If you can help me
    i want to create a model for utilizing regenerative braking energy, for example, braking a train to charge a battery or something else

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety

      Apologies,even we don't have expertise on this so we can't answer your question🙁 But whatever we have expertise in rest assured, we'll put it across in the best way possible 🙂

    • @mohi7781
      @mohi7781 Před 3 lety +1

      @@TheUrbanScholar it's my pleasure thank you so much

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety +1

      Pls share our channel with your friends, I'm sure it would be very useful for them our tutorials 🙂
      Channel link-
      czcams.com/users/theurbanscholar

    • @mohi7781
      @mohi7781 Před 3 lety

      @@TheUrbanScholar yes okay sir 🙂 🙂 🙂

    • @attriadarsh
      @attriadarsh Před 3 lety

      Sir Please tell me is SOC is increasing in this?. .with constant current ...as in the result we saw 83.89+++ and goes in increasing whilw we gave the 85% initial charge help me out i m confused

  • @attriadarsh
    @attriadarsh Před 3 lety

    Sir Please tell me is SOC is increasing in this?. .with constant current ...as in the result we saw 83.89+++ and goes in increasing whilw we gave the 85% initial charge help me out i m confused

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety

      It is correct only soc is increasing and once it reaches a value it stops charging, hope this helps 😃

    • @attriadarsh
      @attriadarsh Před 3 lety

      @@TheUrbanScholar Sir will u help me to make a fis file....
      Actually i need it in my Minor project and i m not able to make it.
      Fis file for Fuzzy logic controller .
      I am using it in Fast charging with PID controller as in feedback loop with buck boost i need help sir.

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety

      This would be very useful to you lmk if it helps drive.google.com/file/d/1_6a1mVOI-Opzegr7a33p54bTd_aTv9Px/view?usp=drivesdk

    • @attriadarsh
      @attriadarsh Před 3 lety

      @@TheUrbanScholar sir i also go through.this...but to run it....it needs fis file...
      I m confused there as at this stage i don't know how to make...and they did'nt showed it in their paper...

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety

      So apart from fis file everything is good?

  • @jayalakshmima616
    @jayalakshmima616 Před rokem

    Why changing time to 5e-06 s

  • @manishadosapati5257
    @manishadosapati5257 Před 3 lety

    can you design a model for wireless battery

  • @mkhudari8390
    @mkhudari8390 Před 3 lety +2

    hello sir, can you make the video of constant current- pulsing current-constant voltage charging. so at 20% of battery capacity we use CC then 20-80% using pulse current, then 80-100% of bat capacity using CV. i happy to learn how to change the mode of CC-PC-CV Charging and Schematic circuit of this charging method
    btw, great video, nice explanation.

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety +1

      Glad it helped !🙂 We'll make a video on this in 2 weeks,make sure to subscribe to our channel to not miss out 😉

    • @mkhudari8390
      @mkhudari8390 Před 3 lety

      @@TheUrbanScholar thank you sir, cant wait to see this vid

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety +1

      Share my channel with your friends as well our video tutorials would be very useful for them😄

    • @mkhudari8390
      @mkhudari8390 Před 3 lety

      @@TheUrbanScholar sureee 🔥🔥

    • @mkhudari8390
      @mkhudari8390 Před 3 lety

      Heiii, the video what i asked before was update or not?

  • @yaswanthmadina67
    @yaswanthmadina67 Před 2 lety

    Hi bro , iam facing a problem in making the Simulation can u help me out

  • @qazimansoor8009
    @qazimansoor8009 Před 2 lety +1

    what is the role of the two MOSFETS?

  • @GauravKumar-pc9dv
    @GauravKumar-pc9dv Před 3 lety

    if initial state of charge is 40% and i want to charge only upto 60%..then for this how should I apply the condition ?
    please anyone

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety

      Do you see the one constant block? put your logic with a and ( i.e multiply ) block there. use the state diagram as shown in the soc control' along. This way you'll have both SOC control and cc and cv control. Hope it help :). If it doesn't, do mail to us.

    • @GauravKumar-pc9dv
      @GauravKumar-pc9dv Před 3 lety

      @@TheUrbanScholar sir i didnt get what u said....state diagram soc control along.
      can you please draw in a paper what should i add more for soc control..and mail me on gk752670@gmail.com.
      i shall be highly thankful to you...

  • @talhaimran585
    @talhaimran585 Před 3 lety

    Can i connect with it standalone 3phase inverter?

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety

      Hey Talha! why would you do that? This is a battery charger and it requires DC

    • @talhaimran585
      @talhaimran585 Před 3 lety

      @@TheUrbanScholar i mean before inverter where i connected my pv system

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety

      It's not so easy to cascade like that, you need to design another converter for cascading

    • @talhaimran585
      @talhaimran585 Před 3 lety

      @@TheUrbanScholar well tbh i want to design a solar system and need to generate power if i connect rlc load with your system and measure my power will that power would be correct one\?

  • @jiajingli9765
    @jiajingli9765 Před 3 lety

    Sir, could you make a video to combine the PV and battery ?

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety

      We are going to make a lot of videos and we'll include these in future😁,stay tuned🙂

    • @heyuehon4206
      @heyuehon4206 Před 3 lety

      @@TheUrbanScholar Sir, hope to see this combination soo :) I am currently doing a project about this topic, This battery charging video really helped me a lot in doing my research project. Thank You !!! :)

  • @MojilShah
    @MojilShah Před 3 lety

    what does the integrator value do?

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety

      Can you timestamp from the video so that it's easier for us to solve your doubt😄,sry for late reply 😅

    • @MojilShah
      @MojilShah Před 3 lety

      Inside PID -> Initialization at time 8:00 min.

    • @MojilShah
      @MojilShah Před 3 lety

      @@TheUrbanScholar 8:00 min.

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety

      @Mojil Shah Hey! So as you can see in the dialogue box of the PID controller there is something called as P as well and I as you mentioned is integrator. These are constants. Commonly referred to as Kp and Ki. You can use the PID tuning which is a relatively new feature on matlab to get the constant values

    • @Lorenzo6880
      @Lorenzo6880 Před 3 lety +1

      @Mojil The integral term in the PID reduces the steady state error. Basically you get closer to the desired value with the proportional term (P) and then you achieve the exact value using the Integral term (I). For further informations you can google videos about empirical PID tuning.

  • @mahmudabdelwanis2272
    @mahmudabdelwanis2272 Před 2 lety +1

    hello
    how can i contact with you please ?

    • @TheUrbanScholar
      @TheUrbanScholar  Před rokem

      You can write to us on mihirmahajan@theurbanscholar.com

  • @subrahmanyamgokavarapu7970

    hello.... Can I discuss with you I do have one project

    • @TheUrbanScholar
      @TheUrbanScholar  Před rokem

      Sure, contact our associate - mihirmahajan@theurbanscholar.com

  • @aishwaryakumari5213
    @aishwaryakumari5213 Před 2 lety

    Eska report mil skta hai kya ?

  • @ahmadzidanfalih7783
    @ahmadzidanfalih7783 Před 3 lety

    why use 2 mosfet, how if use 1 mosfet?

  • @SURESHBABU-gk4zr
    @SURESHBABU-gk4zr Před 3 lety

    bro please share circuit diagram file.

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety +1

      Kindly download and drop a satisfactory rating 😁
      www.mathworks.com/matlabcentral/profile/authors/15068306?s_tid=LandingPageTabfx

    • @SURESHBABU-gk4zr
      @SURESHBABU-gk4zr Před 3 lety

      Bro I'm using MATLAB R2017,Can you share file related to that version.

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety

      drive.google.com/file/d/1SW4u-USvh6mVsN4mCgwpdnweo_5pErRu/view?usp=drivesdk
      Pls change extension to .slx and it will work 😃

    • @SURESHBABU-gk4zr
      @SURESHBABU-gk4zr Před 3 lety

      @@TheUrbanScholar ok bro i will try in that way.Thank you for sharing.

  • @mustafamoose5925
    @mustafamoose5925 Před 3 lety

    i need your personal email for task

    • @attriadarsh
      @attriadarsh Před 3 lety

      Sir Please tell me is SOC is increasing in this?. .with constant current ...as in the result we saw 83.89+++ and goes in increasing whilw we gave the 85% initial charge help me out i m confused

    • @TheUrbanScholar
      @TheUrbanScholar  Před 3 lety

      Pls mail us at howtoproject98@gmail.com

  • @fellylombokonde3354
    @fellylombokonde3354 Před 3 lety

    Hello, I need a paid collaboration with you. How can I contact you ?

  • @dyaaallawijr
    @dyaaallawijr Před 2 lety

    speak in English please

  • @vikramgoud1057
    @vikramgoud1057 Před rokem

    U gave Very good explanation sir.
    I want to contact you sir.