YouTube2Text

MATLAB Simulation of V2G, G2V Operation in Electric Vehicle Charger (3 Phase Model). — Transcript

by Tech Simulator · 1,590 words · 313 segments · language en · Watch on YouTube

Full transcript

  1. 0:00[Music]
  2. 0:12our today's discussion is on matlab
  3. 0:14simulation of a bi-directional circuit
  4. 0:16used to charge the battery from the grid
  5. 0:18and discharges the battery to the grid
  6. 0:20this model can also be used as a
  7. 0:22demonstration of v2g and g2b operation
  8. 0:24in the electric vehicle
  9. 0:27this is the basic circuit topology of a
  10. 0:29three-phase electric vehicle battery
  11. 0:31charger
  12. 0:32at the input we have a front-end
  13. 0:34converter also known as active rectifier
  14. 0:36which converts the ac grid voltage to dc
  15. 0:38and maintains a constant voltage across
  16. 0:40the dc bus
  17. 0:42then we have a bi-directional bug boost
  18. 0:44converter used to control the battery
  19. 0:45current during charging and discharging
  20. 0:47operation
  21. 0:49now i will give you the specification of
  22. 0:51the complete system
  23. 0:52grid voltage 415 line to line rms at 50
  24. 0:56hertz
  25. 0:57the filter inductance is 3 milli henry
  26. 0:59and capacitance is 30 microfarad
  27. 1:02in the inverter bridge i used igbts
  28. 1:05value of bus capacitance is 5600
  29. 1:07microfarad mosfet is used in the buck
  30. 1:10converter
  31. 1:11bug filter inductance is 20 ml henry
  32. 1:14output capacitance is 0.625 microfarad
  33. 1:18battery nominal voltage is 360.
  34. 1:21switching frequency of both the
  35. 1:22converter is 10 kilohertz
  36. 1:24total rated power is 10 kilowatt
  37. 1:27now i will show you the control block
  38. 1:28diagram used in both the front end
  39. 1:30converter and bi-directional bug boost
  40. 1:32converter
  41. 1:34this is the control block diagram of the
  42. 1:36three-phase front-end converter
  43. 1:38this controller is used to regulate 800
  44. 1:40volt dc across the bus
  45. 1:43this is the control block diagram used
  46. 1:45in the bi-directional bug boost
  47. 1:47converter
  48. 1:48this controller is used to regulate the
  49. 1:50battery charging and discharging current
  50. 1:53now we open the math lab and start doing
  51. 1:55the simulation
  52. 2:00add a three-phase voltage source
  53. 2:02the source we are using is the grid
  54. 2:07set phase to phase voltage 415
  55. 2:12frequency 50 hertz
  56. 2:16set source resistance and inductance
  57. 2:17very small values
  58. 2:22and base voltage 415
  59. 2:26add a three-phase voltage current
  60. 2:27measurement block
  61. 2:35here i am measuring face to ground
  62. 2:36voltage using label vabc and i am not
  63. 2:39measuring the current
  64. 2:44connect this block to the voltage source
  65. 2:52now we start connecting the lcl filter
  66. 2:55add a series rlc branch
  67. 3:01make it as inductance and set the value
  68. 3:035 millihenry
  69. 3:10connect the inductor in all the three
  70. 3:12phases
  71. 3:21copy this block
  72. 3:23make this branch as capacitor and set
  73. 3:25the value 30 microfarad
  74. 3:37connect the capacitor in all the three
  75. 3:39phases
  76. 3:46now connect the inverter side filter
  77. 3:48inductor
  78. 3:55now add a current measurement block to
  79. 3:57measure the inverter current
  80. 4:03change its direction
  81. 4:09and also flip the block up down
  82. 4:17connect this in all the phases
  83. 4:25add a go to block
  84. 4:29change its direction
  85. 4:34give the tag name ir
  86. 4:43similarly connect i y and ib
  87. 5:03connect the go to tags into the current
  88. 5:05measurement block
  89. 5:14now we create the three-phase bridge
  90. 5:16using igbts
  91. 5:20uncheck this box
  92. 5:34adder import
  93. 5:37connect to the gate terminal
  94. 5:41name it as pwm1
  95. 5:46similarly connect to all the other gate
  96. 5:48terminals
  97. 5:49make sure that the name on the port
  98. 5:51appears correctly from pwm1 to pwm6
  99. 6:09now add a connection port
  100. 6:16keep the port location left
  101. 6:22name it as vr
  102. 6:28similarly connect vy and vb and change
  103. 6:31the port name also
  104. 6:43keep the alignment left for both
  105. 6:50now connect the port across the dc
  106. 6:51terminals
  107. 7:04keep its alignment right
  108. 7:12name it as vdc plus
  109. 7:19keep this alignment also right
  110. 7:24and name this 1vdc minus
  111. 7:30now add a series rlc branch
  112. 7:35this is the dc bus capacitance and its
  113. 7:37series resistance
  114. 7:48set the resistance 1 milli ohm and
  115. 7:49capacitance 5600 microfarad
  116. 7:55and set initial voltage 800
  117. 8:04create subsystem from the selection
  118. 8:08and delete all unwanted connections
  119. 8:37now connect the three-phase bridge to
  120. 8:39the lcl filter
  121. 8:55now add up from block and connect it as
  122. 8:57pwm1
  123. 9:13similarly connect all the 6 pwm signals
  124. 10:20now add a voltage measurement block
  125. 10:22this is used to measure the dc bus
  126. 10:24voltage
  127. 10:32add a go to block
  128. 10:40name it as vdc
  129. 10:43add a mosfet and make the bug converter
  130. 10:51uncheck this box
  131. 11:15add a series rlc branch
  132. 11:23set the resistance
  133. 11:250.0001 and inductance 20 milli henry
  134. 11:39copy the rlc branch
  135. 11:49here set the resistance
  136. 11:510.0001 and capacitance 0.625 microfarad
  137. 12:05now add a from blog
  138. 12:14name it as bug
  139. 12:20connected to the gate terminal
  140. 12:25and similarly connect it to the other
  141. 12:26gate terminal and name it as boost
  142. 12:35now connect the battery
  143. 12:42set nominal voltage 360 rated capacity
  144. 12:45300 ah initial soc 50 and response time
  145. 12:49one second
  146. 12:58flip the battery block left right
  147. 13:13now add a bus selector
  148. 13:26add soc voltage and current into the bus
  149. 13:37add a go to blog
  150. 13:42name it as soc
  151. 13:48and similarly connect the battery
  152. 13:50voltage and current at the output of bus
  153. 13:52selector
  154. 14:10name it as ibat
  155. 14:16and name this one v-bat
  156. 14:22now we start connecting the inverter
  157. 14:23controller blocks
  158. 14:25first adder from blog
  159. 14:33name it as vabc which is same as the
  160. 14:35grid voltage
  161. 14:38add a abc to alpha beta block
  162. 14:45add alpha beta to dq block
  163. 14:54add another from block
  164. 15:05name it as omega t
  165. 15:07where omega t is the output of pll
  166. 15:12add a dmx
  167. 15:20now add a go to block
  168. 15:31name it as vd
  169. 15:35and this 1vq
  170. 15:40copy this from blog
  171. 15:57name this one alpha beta and this signal
  172. 15:59will be used as the input to pll
  173. 16:04now we connect the current
  174. 16:05transformation blocks take all the three
  175. 16:08current signals
  176. 16:28add a marks
  177. 16:33make number of inputs 3
  178. 16:41add abc to dq transformation block
  179. 17:03make number of outputs three
  180. 17:07this one also need to make three
  181. 17:14copy these from blocks
  182. 17:26name it as id
  183. 17:31and name it as iq
  184. 17:35now we connect the pll blocks
  185. 17:45add alpha beta to dq block
  186. 17:54copy this demux
  187. 17:59add a sum blog
  188. 18:09make it sign minus plus
  189. 18:18add a constant
  190. 18:24set the value zero
  191. 18:29at apid controller
  192. 18:37make the controller pi and set kpki
  193. 18:39values
  194. 18:53add an integrator
  195. 19:02this is the output of pll and this has
  196. 19:04to go to the other transformation blocks
  197. 19:13now we start connecting the dc bus
  198. 19:15voltage controller
  199. 19:17add a constant block
  200. 19:24the reference voltage 800
  201. 19:30add a sum block
  202. 19:38the sine plus minus
  203. 19:43take the voltage signal and connect to
  204. 19:45the sum block
  205. 19:48add apid controller
  206. 19:56make the controller pi
  207. 19:59set kp 0.5 and ki5
  208. 20:08copy the sum block and pid controller
  209. 20:24here give kps 25 and ki 500
  210. 20:36here change the sign to plus
  211. 20:41add a game block
  212. 20:52give its value 2 into pi into 50 into 10
  213. 20:54e rise to minus 3.
  214. 21:07connect iq to the game block
  215. 21:27change its name to vd
  216. 21:34add another gain block
  217. 21:40set the value to
  218. 21:43add a product blog
  219. 21:51change the number of inputs
  220. 21:55connect dc voltage to the product block
  221. 22:03now to make you access current
  222. 22:04controller copy and paste all these
  223. 22:06blocks
  224. 22:22add a constant block
  225. 22:28set the current reference as 0
  226. 22:34copy this block
  227. 22:43rename this to id
  228. 22:50and rename this to vq
  229. 22:57change it sign to plus minus
  230. 23:02now we start making the battery current
  231. 23:04controller
  232. 23:05adder from block
  233. 23:13select ibat from the drop-down list
  234. 23:20add sum block
  235. 23:26change sine plus minus
  236. 23:32add a constant block
  237. 23:38set the battery current reference 30
  238. 23:43add apid controller
  239. 23:52make the controller pi
  240. 23:54set kp 0.005 and ki-10
  241. 24:00limit the output between 0 and 0.95
  242. 24:09add a dc-dcpwm generator
  243. 24:16set switching frequency 10 kilohertz
  244. 24:22now connect the output of pwm block to
  245. 24:24the respective gate terminals of the
  246. 24:25mosfet
  247. 24:29add a logical operator
  248. 24:34select not from the list
  249. 24:44now add a mux
  250. 24:49make number of inputs 3
  251. 24:52connect the controller outputs to the
  252. 24:58mux add a dq to abc transformation block
  253. 25:10copy the pll output and connect to this
  254. 25:12block
  255. 25:17add a two level pwm generator
  256. 25:27set switching frequency 10 kilohertz
  257. 25:38added mix
  258. 25:44set number of output 6.
  259. 25:55now connect these outputs to the
  260. 25:56respective pwm signals of the inverter
  261. 26:32now add a power measurement block
  262. 26:44add grid voltage and current to this
  263. 26:46block
  264. 27:08add a scope
  265. 27:15open the scope settings
  266. 27:19change number of inputs and layout in
  267. 27:21the scope settings
  268. 27:31connect the grid voltage and current to
  269. 27:32the scope
  270. 27:40add another scope to view the dc bus
  271. 27:41voltage
  272. 28:03add displays to view the active and
  273. 28:05reactive power taken from the grid
  274. 28:20now open the configuration settings
  275. 28:26set solver type or de23t
  276. 28:33add a power ghee block
  277. 28:39set simulation type discrete and
  278. 28:41sampling time 1 micro seconds
  279. 28:48here i made a mistake in the connection
  280. 28:50so i will correct it now
  281. 28:56now set simulation time one second and
  282. 28:58run the simulation
  283. 29:17here you can see that the active power
  284. 29:19is positive which means that the power
  285. 29:20flow is from the battery to the grid
  286. 29:23so the system is working in the v2g mode
  287. 29:27now let's wait to run the simulation
  288. 29:29100.
  289. 29:42now i will show you the voltage and
  290. 29:43current waveforms
  291. 29:54as you see both the voltage and current
  292. 29:55are aligned in phase
  293. 29:57which means we are injecting the power
  294. 29:59into the
  295. 30:06grid this is the dc bus voltage during
  296. 30:09v2g operation
  297. 30:18now to make the system work in the g2v
  298. 30:20mode that is charging the battery from
  299. 30:21the grid we need to make the current
  300. 30:23reference negative
  301. 30:28now again run the simulation
  302. 30:54this is the voltage and current during
  303. 30:55g2v mode
  304. 31:00as you see both the voltage and current
  305. 31:02are aligned out of phase
  306. 31:04which means power is taken from the grid
  307. 31:09this is the bus voltage during g2v mode
  308. 31:13and here you can see that the power is
  309. 31:15negative which means power is taken from
  310. 31:17the grid to charge the battery
  311. 31:20this is the end of this presentation
  312. 31:22thanks for watching
  313. 31:33you

About this transcript

This page contains the full transcript of MATLAB Simulation of V2G, G2V Operation in Electric Vehicle Charger (3 Phase Model). by Tech Simulator, generated from the public captions YouTube serves with the video. The transcript has 1,590 words across 313 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.