YouTube2Text

How to Design a USB-C Power Supply (5V–28V) in 3 Hours | Full Tutorial | EasyEDA — Transcript

by Robert Feranec · 17,433 words · 3,584 segments · language en · Watch on YouTube

Full transcript

  1. 0:00In this tutorial, you will design and
  2. 0:03build this USB-C power supply board.
  3. 0:05Even if you have never designed any
  4. 0:07board before, you can do it.
  5. 0:09When you get your board, it is very easy
  6. 0:11to use. Based on this table, you set
  7. 0:14these switches to select your output
  8. 0:16voltage. This is the input and this is
  9. 0:18the output.
  10. 0:19Connect USB-C power adapter.
  11. 0:22Check if the LED for your selected
  12. 0:24voltage is on.
  13. 0:26And when we measure the output, it is 12
  14. 0:29V.
  15. 0:30I really hope you will find this
  16. 0:32tutorial useful and you will enjoy
  17. 0:34designing this board. Let's start.
  18. 0:36To design this board, no software
  19. 0:38installation is required. You will do
  20. 0:40everything in your internet browser.
  21. 0:44Go to easyeda.com.
  22. 0:49Be sure you register and log in and we
  23. 0:52are going to use this pro edition.
  24. 0:57Now, file
  25. 0:59new
  26. 1:00project.
  27. 1:03I'm going to name the project as USB-C
  28. 1:08advanced
  29. 1:10power supply.
  30. 1:15Save.
  31. 1:19We can close this.
  32. 1:22And I'm going to rename
  33. 1:26our project.
  34. 1:31Okay, I'm going to copy this.
  35. 1:36And
  36. 1:38I'm going to use the same name
  37. 1:45here.
  38. 1:47And
  39. 1:48this one I'm just going to call
  40. 1:50schematic.
  41. 1:52And this one I'm going to call PCB.
  42. 1:57Okay, open this.
  43. 2:02Now,
  44. 2:03I'm going to put here my company name,
  45. 2:06Federel.
  46. 2:09See, it
  47. 2:10updated.
  48. 2:13Version one issue zero.
  49. 2:17I'm going to put here my name, Robert
  50. 2:19Renanek.
  51. 2:22Close this.
  52. 2:25And save.
  53. 2:29Now, I'm going to make it a little bit
  54. 2:31bigger because it was very small
  55. 2:33schematic page.
  56. 2:35Well, and I I will update it also down
  57. 2:37here.
  58. 2:39See, it's A3.
  59. 2:43And uh
  60. 2:44I'm going to
  61. 2:46name or I'm going to put the name of
  62. 2:50the schematic directly on the schematic
  63. 2:51page.
  64. 2:57Like this.
  65. 3:00So, for example, if you print this
  66. 3:03schematic or if you if you make PDF of
  67. 3:06this schematic, everyone will know what
  68. 3:09is this schematic about.
  69. 3:14I will make it a little bit bigger,
  70. 3:16bold.
  71. 3:19Place.
  72. 3:20And I will put it on the top of the
  73. 3:22schematic page.
  74. 3:25Like this.
  75. 3:28Okay?
  76. 3:31Save.
  77. 3:34Now,
  78. 3:36go to LCSC website.
  79. 3:41This is the website where we are going
  80. 3:42to find all our components.
  81. 3:46And the first one what we need is this
  82. 3:49integrated circuit
  83. 3:52for the USB power delivery. So, I'm
  84. 3:54going to find it.
  85. 4:00I know this company is making very good
  86. 4:03chips.
  87. 4:05Let's have a look what they have.
  88. 4:13And I would like to use
  89. 4:17the one which supports up to 28 volts.
  90. 4:20So, not this one.
  91. 4:23But
  92. 4:27this one.
  93. 4:29So, this is in a
  94. 4:32very easy footprint to solder down by
  95. 4:34hand and it is up to 28 volts. They
  96. 4:37don't have it in stock, but
  97. 4:39it's okay. We don't have to worry.
  98. 4:41So, I'm going to copy this LCSC part
  99. 4:43number
  100. 4:45and in our schematic place
  101. 4:47device
  102. 4:50paste
  103. 4:51and search.
  104. 4:54Okay. They don't have it in stock, but
  105. 4:56still we can try to use it.
  106. 4:59So, place this chip into our schematic
  107. 5:03and save.
  108. 5:07I really don't like this uh
  109. 5:09mm
  110. 5:11how the chip uh schematic symbol looks.
  111. 5:15So, I'm going to save it
  112. 5:18into my personal library.
  113. 5:24Also, create new footprint.
  114. 5:29And then in my personal library
  115. 5:32I'm going to find it.
  116. 5:35Here it is. And we are going to edit the
  117. 5:37schematic symbol.
  118. 5:40So, I would like to reorder the the pins
  119. 5:43to make it a little bit easier to read
  120. 5:46the schematic.
  121. 5:49So, the ground is usually on the bottom,
  122. 5:52power is usually on the top.
  123. 5:56These are some
  124. 5:59pins
  125. 6:01which we will use a little bit later.
  126. 6:03I'm going to delete these.
  127. 6:08Be very careful. Be sure you are using
  128. 6:100.1
  129. 6:12size grid. It's very, very important.
  130. 6:16I will adjust the size of the symbol.
  131. 6:19And here I will place the VBUS pin.
  132. 6:23I will place these USB uh signals on the
  133. 6:26left side.
  134. 6:29And uh these configuration pins on the
  135. 6:32right side of my symbol.
  136. 6:35Uh I do it this way because
  137. 6:38uh that's how the signals uh usually
  138. 6:40flows in your schematic, in your
  139. 6:42circuit, and it will make uh
  140. 6:45your schematic easier to read. So,
  141. 6:47that's why I'm
  142. 6:51changing uh position of these pins.
  143. 6:59Okay, I will move this a little bit
  144. 7:00down.
  145. 7:02And
  146. 7:05like this.
  147. 7:09Looks good.
  148. 7:11Okay, we can save this.
  149. 7:14I can close this.
  150. 7:16Now, I'm going to delete this one.
  151. 7:20And I'm going to use the one which we
  152. 7:22just
  153. 7:23created.
  154. 7:26And this looks much, much better.
  155. 7:31Save. I keep saving because, you know,
  156. 7:35hm I learned the hard way.
  157. 7:37Always when you do something new, save,
  158. 7:39so you don't lose your work.
  159. 7:44I will make this uh nicer.
  160. 7:47And you can watch where I place the
  161. 7:48symbol. You can do it same way.
  162. 7:55We are going to open data sheet.
  163. 7:58And uh we are going to find
  164. 8:03reference schematic. Okay, this is going
  165. 8:05to tell us how to connect
  166. 8:08our chip. This is what we need.
  167. 8:10So, I'm going to zoom in.
  168. 8:14And the first component what we need is
  169. 8:17this 1 microfarad capacitor.
  170. 8:23So, save.
  171. 8:25Now, go to LCSC.
  172. 8:28I'm going to
  173. 8:31find passives, capacitors,
  174. 8:34ceramic capacitors.
  175. 8:38And we are going to use capacitors from
  176. 8:41Samsung.
  177. 8:44This one.
  178. 8:45And what do we need? Do you remember?
  179. 8:481 microfarad. Okay?
  180. 8:51So, we need
  181. 8:531
  182. 8:55microfarad.
  183. 8:57Now, it's very important this voltage
  184. 8:59rating. We could go up to 35, but we can
  185. 9:02use this one, 50 volts.
  186. 9:04Let's have a look what they have.
  187. 9:07And
  188. 9:09this one looks all Okay.
  189. 9:11Don't forget that we are designing a
  190. 9:13board which goes up to 28 volts. I'm
  191. 9:15going to copy this.
  192. 9:18And we are I'm going to place the
  193. 9:19capacitor
  194. 9:22into our schematic.
  195. 9:27So, because the input voltage can be up
  196. 9:28to 28 volts, it is important to be very,
  197. 9:32very careful
  198. 9:35with all the components what we will be
  199. 9:37using in our schematic.
  200. 9:42We have to connect this capacitor
  201. 9:43between uh
  202. 9:47VHV and ground.
  203. 9:52So, I'm going to
  204. 9:56draw this connection.
  205. 10:01And I'm going to
  206. 10:03place
  207. 10:04this power symbol.
  208. 10:07I'm going to rename it.
  209. 10:10It's going to be plus. Plus, it means
  210. 10:13it's power.
  211. 10:15Plus V
  212. 10:17_USB.
  213. 10:21Okay.
  214. 10:23And uh
  215. 10:25connect the second
  216. 10:27pin of the capacitor to ground.
  217. 10:31So, I'm going to use ground symbol.
  218. 10:36I'm going to connect it.
  219. 10:39And I'm going to hide this name. Because
  220. 10:42all the grounds are going to be exactly
  221. 10:43same. We don't need to show the name.
  222. 10:50VBUS is also connected to VHV.
  223. 10:54So, I'm going to copy this.
  224. 10:58And we will connect VBUS
  225. 11:01to this power net. Always when I create
  226. 11:04power net or when I create a net, uh I
  227. 11:07always copy and paste them. I don't
  228. 11:09manually write the names
  229. 11:12uh if they already exist in my
  230. 11:14schematic. So, because I don't want to
  231. 11:16make mistakes.
  232. 11:19Uh okay, ground is connected to ground.
  233. 11:22So, this is simple.
  234. 11:24This here.
  235. 11:25Again, I'm going to just copy and paste
  236. 11:27it because it already exists in my
  237. 11:29schematic.
  238. 11:34Okay.
  239. 11:37Now, we need this USB C connector.
  240. 11:42So, connectors.
  241. 11:46USB
  242. 11:48USB
  243. 11:55This one is
  244. 11:57in stock.
  245. 12:01Looks good. So, I'm going to copy this
  246. 12:03one.
  247. 12:06And we are going to place it into our
  248. 12:08schematic.
  249. 12:29Okay. So, this is the USB C connector. I
  250. 12:31flip it
  251. 12:36to make it look nicer and also to, you
  252. 12:39know,
  253. 12:40face the connector the way
  254. 12:43so it's easier to read the schematic.
  255. 12:47We can connect the ground pins. This is
  256. 12:49very simple connection.
  257. 12:50And this is the shield. So, the shield
  258. 12:53is also connected to ground.
  259. 13:01Okay.
  260. 13:02I'm going to copy the ground symbol
  261. 13:05and
  262. 13:07paste it here.
  263. 13:13Perfect.
  264. 13:18I just make it a little bit nicer.
  265. 13:27I move this
  266. 13:29at the beginning so I don't
  267. 13:31I can easily find the data sheet. And
  268. 13:33now we are going to connect these plus
  269. 13:36and minus
  270. 13:37or positive and negative
  271. 13:40pins of the USB interface.
  272. 13:45Okay, this is the positive. This is the
  273. 13:47negative
  274. 13:49signal of the USB differential pair.
  275. 13:53I'm going to
  276. 13:55name these nets.
  277. 13:59We would like to name it because
  278. 14:02then when we'll be doing PCB layout you
  279. 14:05can very nicely see what kind of signals
  280. 14:07you are routing.
  281. 14:10Okay, P P P M
  282. 14:13and
  283. 14:14and okay, perfect.
  284. 14:17Be sure to double check.
  285. 14:19And uh
  286. 14:20we need to connect
  287. 14:22these two together
  288. 14:24and these two together.
  289. 14:31Okay. Now these CC pins
  290. 14:37uh just connect them.
  291. 14:41This is the CC1
  292. 14:45and CC2.
  293. 14:49Now I'm not going to draw
  294. 14:51the connection pin to pin. I'm going to
  295. 14:53just name
  296. 14:56this net and then we will use the same
  297. 14:59net name also
  298. 15:02when we will draw these nets on the chip
  299. 15:05then these nets will be automatically
  300. 15:07connected because they have exactly same
  301. 15:09name.
  302. 15:11So if I would like to connect these I
  303. 15:14need to use the same names. So I'm going
  304. 15:16to copy
  305. 15:18and paste it here.
  306. 15:21And I'm going to copy this one
  307. 15:24and paste it here.
  308. 15:28Okay, CC1 CC1 CC1 CC1 2222.
  309. 15:33Double check be sure
  310. 15:36everything is correctly connected.
  311. 15:41For the USB interface, we also need uh
  312. 15:44protection.
  313. 15:46So, circuit protection
  314. 15:50and
  315. 15:51uh TVS diodes.
  316. 15:55I'm going to use this one
  317. 16:00in stock.
  318. 16:04And uh
  319. 16:07let's check this one.
  320. 16:10I'm going to find data sheet
  321. 16:15just to see if this is a good one for
  322. 16:17USB protection.
  323. 16:22Okay, it says USB.
  324. 16:25So, we can use it.
  325. 16:29Uh let's
  326. 16:32copy the
  327. 16:33number
  328. 16:36and
  329. 16:37place it
  330. 16:38into our schematic.
  331. 16:43Uh they have it in stock.
  332. 16:46So, that's good.
  333. 16:48And I will place them like here.
  334. 16:53Maybe move it a little bit.
  335. 16:59And press space bar, you can rotate.
  336. 17:08Space bar
  337. 17:10to rotate.
  338. 17:17I will move it a little bit.
  339. 17:20and
  340. 17:22we can connect it.
  341. 17:27Second pin goes to
  342. 17:29ground
  343. 17:32on this one
  344. 17:35and also on this one.
  345. 17:43Okay.
  346. 17:46Now Vbus.
  347. 17:49So this is the power
  348. 17:52USB power.
  349. 18:00I'm going to copy
  350. 18:02and paste the power symbol here.
  351. 18:06And usually we would like to place some
  352. 18:07capacitors here.
  353. 18:09So I'm going to find again again
  354. 18:13passives capacitors.
  355. 18:15Ceramic capacitors.
  356. 18:19Do you remember what manufacturer we
  357. 18:21use? Samsung.
  358. 18:24And we need like 100
  359. 18:27nanofarads
  360. 18:32or 402
  361. 18:3450 volts
  362. 18:36in stock.
  363. 18:40This one looks okay.
  364. 18:44So we can copy it
  365. 18:46and place it into our schematic.
  366. 18:54These capacitors are used mostly for
  367. 18:57filtering.
  368. 18:59Okay?
  369. 19:00And I use two because there are two
  370. 19:03V
  371. 19:05bus pins on the connector so we will
  372. 19:07place one 100 nanofarad close to one pin
  373. 19:10and the other one close to the other
  374. 19:12pin.
  375. 19:16Okay.
  376. 19:24Now, I I've seen a note about this CC2
  377. 19:27pin
  378. 19:28here in data sheet.
  379. 19:30Simulation e-marker function. Connect 1K
  380. 19:33resistor from the CCC CC2 pin to ground.
  381. 19:39Here.
  382. 19:40So, first let's find this resistor. So,
  383. 19:43passives, resistors, chip resistor.
  384. 19:49Uh
  385. 19:49for resistors, we are going to use this
  386. 19:51Uni-Royal
  387. 19:530402.
  388. 19:55Uh do you remember which one? 1K.
  389. 19:59So, search for 1
  390. 20:01K.
  391. 20:02Select it.
  392. 20:05Plus minus 1%.
  393. 20:07We would like to only see the ones they
  394. 20:10have in stock.
  395. 20:12And we can use this one.
  396. 20:16So, I'm going to place it into
  397. 20:19our schematic.
  398. 20:24And connect between the CC2 pin
  399. 20:31and
  400. 20:35ground.
  401. 20:40Okay.
  402. 20:44Uh
  403. 20:47by default, uh maybe we don't want to
  404. 20:49have this resistor fitted.
  405. 20:53So, what I'm going to do, I'm going to
  406. 20:54select it, and here I will mark no.
  407. 21:02And maybe what we can do, we can also
  408. 21:04add a note.
  409. 21:11So, you know, to remind ourselves that
  410. 21:15if we need
  411. 21:16we can just fit this resistor for
  412. 21:18testing.
  413. 21:20But normally we don't need this
  414. 21:22resistor.
  415. 21:24So, CC2 pull down resistor should not
  416. 21:28be needed
  417. 21:32if the right cable
  418. 21:35is used.
  419. 21:41Okay, before fitting
  420. 21:45this resistor, be sure you know what you
  421. 21:50are doing.
  422. 21:54We can use black color.
  423. 21:58Maybe Arial, smaller.
  424. 22:020.1
  425. 22:05and place.
  426. 22:13Okay.
  427. 22:18I'm going to make this
  428. 22:21NF text
  429. 22:26and we will place it over
  430. 22:29the resistor.
  431. 22:30So, this is also a note telling us do
  432. 22:33not fit this resistor.
  433. 22:40Now, let's connect this configuration
  434. 22:42pins.
  435. 22:44So, in data sheet, we are going to use
  436. 22:47this level configuration feature.
  437. 22:50And in data sheet we can see
  438. 22:53for different
  439. 22:54configuration pins we can have different
  440. 22:56output voltages. And here are some
  441. 22:58notes.
  442. 23:01So, uh
  443. 23:03pin one, maybe it will need pull-up
  444. 23:06resistor.
  445. 23:09Uh
  446. 23:13Okay, we will place pull-up resistors so
  447. 23:15to 3.3 volts on all of the pins. That's
  448. 23:18that is safe option.
  449. 23:20So, I'm going to find 10k
  450. 23:23resistor.
  451. 23:31Hm, I'm just checking these prices. Some
  452. 23:34of them are for 100 components, some of
  453. 23:36them are for
  454. 23:38one piece.
  455. 23:41Uh I'm going to use
  456. 23:47maybe this one. Again, they don't have
  457. 23:48it in stock, but
  458. 23:50you know, it this keeps changing all the
  459. 23:52time. Or maybe JLCPCB will have them in
  460. 23:55stock.
  461. 23:57LCSC maybe or see
  462. 24:00LCSC doesn't have them, but JLCPCB have
  463. 24:02them in stock.
  464. 24:05I'm going to place three resistors. I
  465. 24:08will connect all the three configuration
  466. 24:10pins to these pull-ups.
  467. 24:12It's not necessary because, you know,
  468. 24:13data sheet says
  469. 24:15configuration pin two and three they
  470. 24:17have internal pull-ups,
  471. 24:19but just in case, it's always useful
  472. 24:22to have the possibility to connect also
  473. 24:24these external pull-ups
  474. 24:27if needed.
  475. 24:29And the
  476. 24:32second pin of the pull-up, uh we need to
  477. 24:34connect to 3.3 volts.
  478. 24:39That's the voltage of the internal
  479. 24:41regulator for the chip. I I actually
  480. 24:43contacted the chip manufacturer, and
  481. 24:45they told me there is internal
  482. 24:47regulator, 3.3 regulator.
  483. 24:52I'm going to name these
  484. 24:54three nets. So, this one is
  485. 24:57CFG1.
  486. 25:01CFG2
  487. 25:03and it is also
  488. 25:05I squared C clock.
  489. 25:07And this one is three
  490. 25:09and I squared C
  491. 25:12data.
  492. 25:14Double check if they are connected
  493. 25:16correctly.
  494. 25:18And don't forget to save your schematic
  495. 25:20so you don't lose your work.
  496. 25:25Now, if you would like to support also
  497. 25:26this single resistor configuration,
  498. 25:30then we would like to provide this
  499. 25:32optional
  500. 25:33configuration pin one to connect to
  501. 25:35ground.
  502. 25:37Somewhere here, I'm going to
  503. 25:41for example, find this 6.8 kiloohm
  504. 25:44resistor.
  505. 25:46And we can just place it into schematic.
  506. 25:48Again, we are not going to fit it by
  507. 25:51default,
  508. 25:53but uh maybe later we would like to do
  509. 25:56some testing, so we would like to
  510. 25:58support it.
  511. 26:00Uh we can use
  512. 26:05maybe this one. No, no, this one doesn't
  513. 26:08have the symbol and footprint.
  514. 26:11So,
  515. 26:17I don't know.
  516. 26:19This one maybe.
  517. 26:22It's not really important
  518. 26:24because you know, we are not going to
  519. 26:25fit it by default, but
  520. 26:29but we can use this one.
  521. 26:34So, place it.
  522. 26:36Even if we are not going to fit it by
  523. 26:38default, I still would like to use some
  524. 26:40kind of correct
  525. 26:42resistor in case we would like to fit
  526. 26:44it.
  527. 26:48So, I'm going to connect it.
  528. 26:51One pin goes to CFG1.
  529. 26:55Uh I don't like this. I will move it a
  530. 26:58little bit away because I don't like the
  531. 27:00cross connection.
  532. 27:05And the second pin is connected to
  533. 27:07ground.
  534. 27:13Okay, this moved a little bit.
  535. 27:16So, make it nicer.
  536. 27:20And uh
  537. 27:21unfit this.
  538. 27:27Copy.
  539. 27:29Paste.
  540. 27:33Okay.
  541. 27:39Let's go back to data sheet and let's
  542. 27:42have a look again at reference
  543. 27:44schematic.
  544. 27:45So, this one is for the single resistor.
  545. 27:48And this is how it looks. So, connected
  546. 27:50to ground.
  547. 27:53And uh
  548. 27:56in this configuration,
  549. 27:59we may want to support also this one.
  550. 28:01So, 100 kiloohm on VHV, not 3.3 volts.
  551. 28:08Okay, see?
  552. 28:10So, let's find 100 kiloohm resistor.
  553. 28:19Okay.
  554. 28:20And again, this is just in case. It
  555. 28:23doesn't mean we have to use this
  556. 28:24connection. Uh we can use this one.
  557. 28:27But, we would like to support it
  558. 28:30in case we need this resistor, we can
  559. 28:33then easily fit it.
  560. 28:36So, I'm going to place it.
  561. 28:41This is actually the way how you create
  562. 28:43uh complicated schematics.
  563. 28:45Uh if you are not sure about uh some
  564. 28:48connections,
  565. 28:49you can always place that the
  566. 28:51components, just do not fit them by
  567. 28:53default, and later
  568. 28:57Okay, VHV.
  569. 28:59It is this one.
  570. 29:01Uh later, you can then experiment.
  571. 29:06That's why we would like to unfit this
  572. 29:08one, but we would like to still have it
  573. 29:10there.
  574. 29:14Okay? If needed, we can always fit it
  575. 29:16because it is in reference schematic.
  576. 29:18Maybe we will need it.
  577. 29:23I'm going to add a note, so we don't
  578. 29:25forget
  579. 29:28why we placed these resistors.
  580. 29:32And everyone else who is reading your
  581. 29:33schematic then also will know
  582. 29:37why
  583. 29:38we placed these resistors in.
  584. 29:41So, the unfitted resistors uh are just
  585. 29:44for experimenting.
  586. 29:55Next, these switches.
  587. 29:57So, uh
  588. 29:59in LCSC,
  589. 30:02search for switches,
  590. 30:07DIP switches.
  591. 30:11Now, number of positions, three.
  592. 30:15SMD,
  593. 30:17in stock.
  594. 30:22And uh this one?
  595. 30:25This one looks good.
  596. 30:28Okay, this is exactly
  597. 30:30what we can use.
  598. 30:32They have symbol and footprint, so copy
  599. 30:35the part number,
  600. 30:37and we can
  601. 30:39place it into our
  602. 30:41schematic.
  603. 30:56We are going to connect these config
  604. 30:58pins.
  605. 31:00So, I'm going to draw these connections
  606. 31:03and then I will show you a small trick
  607. 31:06when you do copy
  608. 31:07uh in the schematic. Notice this is
  609. 31:09different if you draw this rectangle
  610. 31:11from bottom
  611. 31:13uh
  612. 31:14bottom right and top left corner.
  613. 31:17So, top left corner only select the
  614. 31:19items which are inside of the
  615. 31:22square.
  616. 31:24Bottom right corner select everything
  617. 31:25crossing.
  618. 31:28So, now the ground on the other side.
  619. 31:33And the switches are connected.
  620. 31:37The trick with the selection is very
  621. 31:39useful. Remember it, okay? It also works
  622. 31:42when we will be doing PCB layout.
  623. 31:49Now, I'm going to name this
  624. 31:51uh
  625. 31:53So, again everyone who is uh reading
  626. 31:55your schematic
  627. 31:57or who is reading our schematic will
  628. 31:58know
  629. 32:00what is this block of schematic actually
  630. 32:03doing.
  631. 32:05So, these are uh
  632. 32:07output voltage selection selection
  633. 32:10switches. I'm going to make it a little
  634. 32:11bit smaller.
  635. 32:16Okay.
  636. 32:21And I'm going to name also these two
  637. 32:23other blocks.
  638. 32:25So, this one is the
  639. 32:28USB C
  640. 32:29connector.
  641. 32:35This is what will make your uh schematic
  642. 32:37more professional.
  643. 32:41Add these uh
  644. 32:43notes, add these names.
  645. 32:46Because then it's very easy to
  646. 32:48use this schematic. Very easy to read
  647. 32:51this schematic and understand what is
  648. 32:54inside of this schematic.
  649. 33:02Okay?
  650. 33:06And uh I'm going to draw a very simple
  651. 33:10table
  652. 33:12which will explain actually how these
  653. 33:14switches work and how these switches
  654. 33:16will set the output voltage.
  655. 33:22So,
  656. 33:24draw it like this.
  657. 33:26Very, very simple table.
  658. 33:28We would like to list the config pins
  659. 33:33and then the output voltage
  660. 33:36in this table.
  661. 33:45Go to data sheet and find this uh table.
  662. 33:51So,
  663. 33:52on the top of the table we will place
  664. 33:56names of the
  665. 33:59pins.
  666. 34:03CFG1
  667. 34:11We can just copy it.
  668. 34:21So, this one is going to be two.
  669. 34:26This one is three.
  670. 34:28And this is the
  671. 34:30output
  672. 34:32voltage.
  673. 34:36Okay.
  674. 34:39Uh 9 12 20 28 5
  675. 34:47So, I will start with 5, you know, so
  676. 34:50it's in
  677. 34:53a logical order from the smallest one or
  678. 34:56the lowest one to the highest one.
  679. 35:01Uh do you remember all the
  680. 35:03voltages?
  681. 35:055 9 12
  682. 35:13Next one is 20.
  683. 35:18And
  684. 35:2128
  685. 35:24Okay.
  686. 35:28And now this
  687. 35:35one
  688. 35:41copy, paste
  689. 35:44paste
  690. 35:45This is X
  691. 35:47and X X it means it can be
  692. 35:51zero, it can be one, it's okay.
  693. 35:53So, 9 V is 000.
  694. 35:59Again, just copy and paste.
  695. 36:06And of course, you can use control C
  696. 36:07control V on your keyboard. I just use
  697. 36:10the right click, so everyone
  698. 36:13everyone can see what I'm doing. I don't
  699. 36:15want to use uh
  700. 36:18shortcuts keyboard shortcuts because
  701. 36:20then uh some people may not know what
  702. 36:23keys I pressed. So, it's it's more clear
  703. 36:26if I use the right click menu.
  704. 36:31And the last
  705. 36:35row
  706. 36:37is
  707. 36:39like this.
  708. 36:44Okay?
  709. 36:47Now, we still don't have this 3.3 volts.
  710. 36:50So, what we need
  711. 36:52is regulator.
  712. 36:55So, I'm going to find this
  713. 36:58uh voltage regulator.
  714. 37:01We are going to use
  715. 37:04Texas Instrument.
  716. 37:08Uh we need 3.3 volts.
  717. 37:16Small one.
  718. 37:19For example, this one.
  719. 37:22In stock. Apply.
  720. 37:26And uh
  721. 37:30This one looks good.
  722. 37:34So, let's have a look.
  723. 37:37They have symbol. They have footprint.
  724. 37:41Let's open data sheet. It is up to 30
  725. 37:44volts. That's good. Up to 150 milliamps.
  726. 37:49We only have like three 10k resistors
  727. 37:51there. So, 3.3 divided by
  728. 37:5410k
  729. 37:56multiplied by three.
  730. 37:58Okay, we only need very very very small
  731. 38:00current.
  732. 38:02So, it this is perfectly fine.
  733. 38:05So, I'm going to copy this
  734. 38:07and uh place it into our schematic. Of
  735. 38:11course, maybe our car our real current
  736. 38:14in the board is uh going to be a little
  737. 38:16bit higher than just 10k resistors.
  738. 38:19But uh
  739. 38:21it's still
  740. 38:22going to be very, very small kind of
  741. 38:25what we need from the regulator, so we
  742. 38:26can
  743. 38:27use this one.
  744. 38:34We're going to connect it, so we need
  745. 38:36to, again, double-check the data sheet,
  746. 38:38what is the recommended
  747. 38:40connection, what is
  748. 38:43data sheet saying, so 1 microfarad on
  749. 38:45the input and 2.2 microfarad on the
  750. 38:48output.
  751. 38:51We already have 1 microfarad capacitor.
  752. 38:53I'm going to double-check the voltage.
  753. 38:5650 volts, so it's correct.
  754. 39:00Uh, so we can copy this one and place it
  755. 39:04on the input side of our regulator.
  756. 39:08And on the output, we are not going to
  757. 39:10create 2.2 microfarad capacitor. We are
  758. 39:13simply going to just place three 1
  759. 39:15microfarad capacitors here.
  760. 39:18I don't want to add extra component
  761. 39:21into our schematic.
  762. 39:242.2, we will have 3 microfarad, it is
  763. 39:28okay.
  764. 39:29So, I'm going to connect these.
  765. 39:35Because when you are drawing your
  766. 39:36schematic,
  767. 39:37uh,
  768. 39:38every type of the component
  769. 39:41can make your, uh, board a little bit
  770. 39:43more expensive. So, if you can use same
  771. 39:46component,
  772. 39:47uh,
  773. 39:50then you can buy them in a higher
  774. 39:52quantities, usually means
  775. 39:56you can get them cheaper.
  776. 39:59Okay, so the input is connected to the
  777. 40:01USB voltage.
  778. 40:06And the output will create uh, 3.3
  779. 40:08volts.
  780. 40:11So, we just need to
  781. 40:14connect these second pins of the
  782. 40:16capacitors to ground.
  783. 40:19And uh
  784. 40:22We need to also connect the rest of the
  785. 40:24pins.
  786. 40:26So, ground, this one is easy.
  787. 40:36And this enable pin
  788. 40:42Enable pin
  789. 40:45Drive this pin low to put device into
  790. 40:48low current.
  791. 40:50It can be left floating.
  792. 40:54Okay.
  793. 40:56So, theoretically, we can just leave it
  794. 40:58floating. But, from my experience, uh
  795. 41:02it is always good to have option
  796. 41:08to
  797. 41:10put there a footprint in case we need to
  798. 41:14debug something or test something.
  799. 41:17So, same as before, I'm going to place
  800. 41:19here this resistor, but we are not going
  801. 41:23to fit it.
  802. 41:25Always when you are designing
  803. 41:26regulators,
  804. 41:28then uh and if they have these enable
  805. 41:31pins,
  806. 41:32you would like to always uh
  807. 41:36connect these pins to a resistor, so you
  808. 41:39can use it later for
  809. 41:42debugging and testing if you need. Trust
  810. 41:45me, it's very, very, very, very useful.
  811. 41:49Okay, so this is the 3.3 V power block.
  812. 41:52It is finished.
  813. 41:57Looks nice.
  814. 41:59And we can save our schematic.
  815. 42:04Now, this pin is not connected, so we
  816. 42:06are going to mark it as not connected.
  817. 42:08And also these pins
  818. 42:10uh it means uh, when we'll be running
  819. 42:13uh,
  820. 42:13schematic rule check, then uh, these
  821. 42:16pins will not be checked. We're going to
  822. 42:18connect this power good pin.
  823. 42:21So, let's have a look how we need to
  824. 42:23connect it for this A
  825. 42:26variant.
  826. 42:29Uh, active low.
  827. 42:33And it's open drain.
  828. 42:35So, we need again pull-up resistor.
  829. 42:38I'm going to copy this one
  830. 42:41and paste it here.
  831. 42:47Because it is open drain, okay? It only
  832. 42:49can do
  833. 42:52the low level. We need the pull-up to do
  834. 42:55the high level.
  835. 42:57I'm going to name this
  836. 43:00power good, and we will use it
  837. 43:04to tell
  838. 43:07the person who is using the board
  839. 43:09to tell if the
  840. 43:12output voltage is correct.
  841. 43:15So, we're going to
  842. 43:18create another block, which is going to
  843. 43:20be called
  844. 43:21error LED.
  845. 43:29We will use 3.3 volts for our LED.
  846. 43:34Then, we need 1K resistor.
  847. 43:37Always when you are connecting LED, you
  848. 43:39need to put that series
  849. 43:42resistor.
  850. 43:47And of course, we need the LED.
  851. 43:51For For error, we would like to use
  852. 43:53maybe red one. So, I'm going to find
  853. 43:58small LED.
  854. 44:04Red one.
  855. 44:10Maybe from
  856. 44:13this manufacturer.
  857. 44:18Okay. Actually, you can use any LED. I
  858. 44:21just use this one because I
  859. 44:23I used it before
  860. 44:25together with this 1K resistor, so I
  861. 44:27know
  862. 44:28the brightness is going to be
  863. 44:31correct.
  864. 44:34Because very often, you know, this uh
  865. 44:36series resistor, you may want to change
  866. 44:38the value based on the brightness of the
  867. 44:40LED.
  868. 44:42Be sure it is correctly connected.
  869. 44:48And I'm not going to drive it directly
  870. 44:51with this power good pin.
  871. 44:53We need to invert this.
  872. 44:56So, we are going to use a transistor.
  873. 45:00This one is very, very standard uh
  874. 45:02MOSFET 2N
  875. 45:057002
  876. 45:10from Diodes.
  877. 45:17Mhm,
  878. 45:18this one. This is a small one.
  879. 45:24Uh
  880. 45:25okay.
  881. 45:26I'm going to copy this one
  882. 45:29and I'm going to place it.
  883. 45:36So, when we use this transistor,
  884. 45:38uh
  885. 45:40it means it will invert the signal, and
  886. 45:43it means that the LED will be on
  887. 45:48if
  888. 45:49the power output is not
  889. 45:53good one.
  890. 45:59So, if there is error,
  891. 46:01LED will light up.
  892. 46:07Okay.
  893. 46:11Now the output
  894. 46:13we are going to draw it here.
  895. 46:18So, we are going to place the connector.
  896. 46:24I like this
  897. 46:27from
  898. 46:31Phoenix.
  899. 46:36We need
  900. 46:38two pins.
  901. 46:40And
  902. 46:47look for this one.
  903. 46:50Not this.
  904. 46:52This one.
  905. 46:54This is exactly what do you like to use.
  906. 47:01Okay.
  907. 47:06Copy
  908. 47:11and use it in our schematic.
  909. 47:17They have it in stock, so that's great.
  910. 47:24It's easy to connect this connector.
  911. 47:27Uh
  912. 47:29close to this connector we would like to
  913. 47:30place again 100 nF capacitor for
  914. 47:33filtering. So, I'm going to
  915. 47:36copy this.
  916. 47:39And
  917. 47:43we will connect the one pin
  918. 47:46to the USB voltage.
  919. 47:54So, I'm I'm copy the
  920. 47:57power symbol of the USB voltage.
  921. 48:02And the second pin of the
  922. 48:05connector
  923. 48:07is ground.
  924. 48:23I'm going to name this block
  925. 48:30as output
  926. 48:32connector.
  927. 48:44Now, this is a very, very important, so
  928. 48:46I'm going to write it down.
  929. 48:50The
  930. 48:51maximum output
  931. 48:54current and voltage
  932. 48:59depends
  933. 49:00on the
  934. 49:02power adapter
  935. 49:05cable
  936. 49:06and selected voltage.
  937. 49:10Okay? Very, very important, so I'm going
  938. 49:13to make it red
  939. 49:15and bold.
  940. 49:26Save.
  941. 49:28Now, we are going to do something extra
  942. 49:30with these
  943. 49:32configuration switches and configuration
  944. 49:35pins.
  945. 49:36We are actually going to show
  946. 49:39what voltage we selected.
  947. 49:43So, here we are going to create new
  948. 49:44block, voltage LED indicators
  949. 49:49or indicators.
  950. 49:51Uh, we are going to need LEDs.
  951. 49:55So, I'm going to find green ones. I will
  952. 49:58just change this to G.
  953. 50:02Okay, they have green LEDs.
  954. 50:05And for
  955. 50:08every single voltage, we will have one
  956. 50:11LED to show which one is active.
  957. 50:19So, we need one LED for 20 28 volts. I'm
  958. 50:23going to make it a little bit nicer.
  959. 50:29Now,
  960. 50:30copy.
  961. 50:31We need one LED for
  962. 50:3420 volts.
  963. 50:38Then,
  964. 50:3912,
  965. 50:43nine,
  966. 50:45and five.
  967. 50:52Okay? Be sure, uh,
  968. 50:54you connect the LEDs correctly, okay?
  969. 50:56So, this side
  970. 50:58of
  971. 50:59LEDs
  972. 51:01needs to be connected to ground.
  973. 51:09Um,
  974. 51:11copy and paste.
  975. 51:17I will also add, uh,
  976. 51:21this, uh, note which LED is for what
  977. 51:23voltage. So, this one is 5 V,
  978. 51:269
  979. 51:3020,
  980. 51:3128, okay? This is just for us.
  981. 51:34I'm going to make it a little bit nicer.
  982. 51:38Uh,
  983. 51:40maybe
  984. 51:42like this.
  985. 51:45And, uh, we also need, of course, series
  986. 51:49resistors to limit the current which is
  987. 51:51flowing through the LEDs.
  988. 51:53So again, I'm going to use this 1K
  989. 51:55resistor.
  990. 51:58Because I know the brightness of the LED
  991. 52:01will be then uh
  992. 52:02just right.
  993. 52:08Okay.
  994. 52:10Sometimes you
  995. 52:12or normally or very often you may use
  996. 52:14also
  997. 52:15smaller resistors, like I don't know,
  998. 52:18500 ohms or
  999. 52:21even smaller ones. But then the LEDs may
  1000. 52:24be very, very bright.
  1001. 52:26That's why I use 1K resistors.
  1002. 52:30Okay.
  1003. 52:37And now we need something very clever.
  1004. 52:40So I'm going to find this integrated
  1005. 52:42circuit
  1006. 52:43interface
  1007. 52:46multiplexers.
  1008. 52:51Uh we are going to use
  1009. 52:54this one.
  1010. 52:57One channel.
  1011. 52:59Install. Apply.
  1012. 53:04And let's have a look if this is what we
  1013. 53:06need. So open data sheet.
  1014. 53:12And uh
  1015. 53:18Okay.
  1016. 53:22So based on this uh combination of ABC,
  1017. 53:26we can
  1018. 53:28have only one output activated. That's
  1019. 53:30exactly what we need.
  1020. 53:32So I'm going to place it into our
  1021. 53:34schematic.
  1022. 53:41And then we have to connect it
  1023. 53:42correctly,
  1024. 53:43of course. But I don't like the
  1025. 53:47how this symbol looks. So, again, we are
  1026. 53:49going to adjust the look of the symbol.
  1027. 53:52Go to library.
  1028. 53:54Find it in this project library.
  1029. 53:59Uh it is this one.
  1030. 54:02So, save it into personal library.
  1031. 54:09Also, the footprint.
  1032. 54:13Find it in your personal library.
  1033. 54:16And we are going to adjust the symbol.
  1034. 54:20So, edit device.
  1035. 54:25The pattern is
  1036. 54:27on the top. So, I'm going to place in
  1037. 54:30here.
  1038. 54:33I'm going to adjust the shape of the
  1039. 54:35symbol.
  1040. 54:42Move the pins away.
  1041. 54:43So, we have more space.
  1042. 54:49On the left, uh we are going to place uh
  1043. 54:54these
  1044. 54:55inputs.
  1045. 54:58So, ABC will be connected to the
  1046. 55:00configuration pins.
  1047. 55:04And these are the inputs uh which will
  1048. 55:07be connected to the output based on the
  1049. 55:10combination of the ABC.
  1050. 55:12So, only one of these X X0 1 2 3 4 5 6
  1051. 55:18or 7 will be connected to the output X
  1052. 55:22based on the combination of the ABC
  1053. 55:25pins.
  1054. 55:29So, this is very easy way how we can
  1055. 55:31uh based on the config based on the
  1056. 55:36configuration pins, we can very easily
  1057. 55:39light up only one very specific LED.
  1058. 55:46This is the output.
  1059. 55:48VCC and VEE, they are I think they're
  1060. 55:50both ground. We will double check a
  1061. 55:52little bit later.
  1062. 56:00I'm going to place our
  1063. 56:03symbol into schematic.
  1064. 56:12And uh
  1065. 56:13now we have to connect it.
  1066. 56:20So,
  1067. 56:24now first the easy part. So,
  1068. 56:28easy part is the power.
  1069. 56:35For the power, we would like to use the
  1070. 56:37coupling capacitor,
  1071. 56:39100 nF decoupling capacitor.
  1072. 56:49Output is also easy to connect. It's
  1073. 56:52going to be 3.3 V, so we will be
  1074. 56:54connecting 3.3 V only to one of the
  1075. 56:57LEDs.
  1076. 57:00So, VCCVEE, I'm going to double check,
  1077. 57:02but as I said, I think they are
  1078. 57:04ground.
  1079. 57:09Yeah, okay. We can connect them both to
  1080. 57:10ground.
  1081. 57:24This was also easy.
  1082. 57:27Copy.
  1083. 57:30Paste.
  1084. 57:38Now, the hard part.
  1085. 57:41So, let's have a look how it actually
  1086. 57:43works.
  1087. 57:46This table is very important. So, this
  1088. 57:48is our chip.
  1089. 57:50And here you can see
  1090. 57:54which output is activated based on what
  1091. 57:57input.
  1092. 57:58So, I'm going to copy the configuration
  1093. 58:00pins.
  1094. 58:04I'm going to connect them to
  1095. 58:07ABC.
  1096. 58:12So, C is going to be config one, B is
  1097. 58:17two,
  1098. 58:18and A is three.
  1099. 58:21And uh based on this table,
  1100. 58:24you need to connect it like this.
  1101. 58:28Okay? Just do it the exact same way what
  1102. 58:31I'm doing.
  1103. 58:39If you would like to understand why it
  1104. 58:41is connected this way,
  1105. 58:43go to data sheet and double-check these
  1106. 58:45connections
  1107. 58:47and the combinations based on the truth
  1108. 58:49table in the data sheet.
  1109. 58:52Then you will understand why we
  1110. 58:54connected it this way.
  1111. 58:58We have to connect all these together
  1112. 59:00like this.
  1113. 59:04Now, this one
  1114. 59:07uh
  1115. 59:10So, it is basically enable pin.
  1116. 59:17So, it means when there is error, we
  1117. 59:20don't want to show any LED on.
  1118. 59:24So, I'm going to use this power good
  1119. 59:27signal.
  1120. 59:28Again, also
  1121. 59:30here in this chip.
  1122. 59:39Perfect.
  1123. 59:42For debugging, I'm going to connect also
  1124. 59:44this I squared C signals.
  1125. 59:46So, we will need uh
  1126. 59:49header.
  1127. 59:51I'm going to
  1128. 59:54use
  1129. 59:58one of these.
  1130. 1:00:00Very simple header.
  1131. 1:00:04SMD
  1132. 1:00:09right angle.
  1133. 1:00:15We need three pins.
  1134. 1:00:19Let's have a look what they have.
  1135. 1:00:25Oh, this is exactly what I would like to
  1136. 1:00:27have.
  1137. 1:00:30This looks perfect.
  1138. 1:00:33Okay. So, copy.
  1139. 1:00:38And
  1140. 1:00:43place it into our schematic.
  1141. 1:00:54I'm going to move this little bit.
  1142. 1:00:57And we are going to connect these
  1143. 1:01:00pins.
  1144. 1:01:03So, the middle one I'm going to connect
  1145. 1:01:05to
  1146. 1:01:06ground.
  1147. 1:01:09And pin one and three I'm going to
  1148. 1:01:11connect to the I squared C signals.
  1149. 1:01:23Again, this is just for testing and
  1150. 1:01:25debugging.
  1151. 1:01:28Because it can be super
  1152. 1:01:30useful.
  1153. 1:01:32There are some registers inside and you
  1154. 1:01:34can play with some settings.
  1155. 1:01:41So I square C header.
  1156. 1:01:45And
  1157. 1:01:48Of course, we are not going to fit it.
  1158. 1:02:00Perfect.
  1159. 1:02:07I'm going to add a node.
  1160. 1:02:11So everyone knows why
  1161. 1:02:13we placed this header here.
  1162. 1:02:18So it's just for experimenting.
  1163. 1:02:28Now, what else is missing? Do you know?
  1164. 1:02:33Mounting holes.
  1165. 1:02:38So we are going to learn how you can
  1166. 1:02:40create your own components.
  1167. 1:02:46Go to file, new
  1168. 1:02:50component.
  1169. 1:02:54I'm going to call it like this MH
  1170. 1:02:587.5
  1171. 1:03:00by
  1172. 1:03:022.7 mm.
  1173. 1:03:07It's going to be very very simple
  1174. 1:03:08component.
  1175. 1:03:09Just one pin.
  1176. 1:03:17I'm going to
  1177. 1:03:20hide the name
  1178. 1:03:23and draw a cir- circle.
  1179. 1:03:29Maybe make it smaller and move it
  1180. 1:03:35at the end of the pin.
  1181. 1:03:44And I'm going to also change the line
  1182. 1:03:46width.
  1183. 1:03:48And I'm going to fill it up.
  1184. 1:03:53Change the grid so we can move this
  1185. 1:03:54little bit.
  1186. 1:03:57Change the grid back. Very important.
  1187. 1:04:02It's not going to be in bomb bill of
  1188. 1:04:04material.
  1189. 1:04:06And
  1190. 1:04:07the designated is going to be MH
  1191. 1:04:09{question mark}.
  1192. 1:04:13Save it.
  1193. 1:04:15New footprint.
  1194. 1:04:19So, this is going to be the physical
  1195. 1:04:22interpretation of our
  1196. 1:04:24mounting hole.
  1197. 1:04:30Basically, the part which is going to be
  1198. 1:04:31in PCB.
  1199. 1:04:33And uh
  1200. 1:04:35mounting hole is basically just
  1201. 1:04:37just a pad.
  1202. 1:04:43Number one is very important because we
  1203. 1:04:45have pin one in schematic, so it has to
  1204. 1:04:47be pin one also in the PCB.
  1205. 1:04:50And I will adjust the size of this pad.
  1206. 1:04:55And that's it.
  1207. 1:04:58Very, very simple way
  1208. 1:05:01to create mounting holes.
  1209. 1:05:04We are going to assign the footprint to
  1210. 1:05:07our symbol.
  1211. 1:05:09And we can save our component. Close.
  1212. 1:05:13Now go to library. Here is our mounting
  1213. 1:05:15hole and we can use it
  1214. 1:05:18in
  1215. 1:05:20our
  1216. 1:05:24schematic.
  1217. 1:05:32We will connect them to ground.
  1218. 1:05:35They are already gray, so they are not
  1219. 1:05:37included in bomb bill of material
  1220. 1:05:39because they are not a a real component.
  1221. 1:05:41They are just
  1222. 1:05:43PCB
  1223. 1:05:44components.
  1224. 1:05:50Okay, maybe move it a little bit.
  1225. 1:05:58Okay.
  1226. 1:06:02Save.
  1227. 1:06:08I'm going to add
  1228. 1:06:10also
  1229. 1:06:11information about the license.
  1230. 1:06:15Uh I just do it uh
  1231. 1:06:17you know,
  1232. 1:06:19it should be there.
  1233. 1:06:27And we can save our schematic.
  1234. 1:06:31Now notice these
  1235. 1:06:33reference designators. I'm going to
  1236. 1:06:37remove them or clear them. So, watch
  1237. 1:06:40what's going to happen.
  1238. 1:06:41They are now question marks instead of
  1239. 1:06:44numbers.
  1240. 1:06:45And manually I'm going to name the
  1241. 1:06:47important components. So, this one is
  1242. 1:06:49J1.
  1243. 1:06:51This one is going to be
  1244. 1:06:53J2.
  1245. 1:06:55So, connectors are usually J.
  1246. 1:06:58And this one is
  1247. 1:06:59J3.
  1248. 1:07:02Now, this one, the main chip, I would
  1249. 1:07:04like to have U1.
  1250. 1:07:09Power supply
  1251. 1:07:11U2,
  1252. 1:07:12and this multiplexer U3.
  1253. 1:07:18And all the other components we can name
  1254. 1:07:21them automatically. So, go to design,
  1255. 1:07:23annotate.
  1256. 1:07:25Watch what's going to happen, okay?
  1257. 1:07:28See? Now there are
  1258. 1:07:30the numbers.
  1259. 1:07:36Okay, you can see
  1260. 1:07:38how my schematic uh
  1261. 1:07:42all designators look.
  1262. 1:07:48Save.
  1263. 1:07:51Now, we are going to check if there are
  1264. 1:07:53no errors. So, you can do it also from
  1265. 1:07:55this bottom toolbar.
  1266. 1:07:59This one is not important. It's only
  1267. 1:08:00warning.
  1268. 1:08:02So, it's perfect. There are no errors.
  1269. 1:08:06Save, design, update
  1270. 1:08:09PCB.
  1271. 1:08:10So, this is the very important step.
  1272. 1:08:14We are going to
  1273. 1:08:15import all components from our schematic
  1274. 1:08:19into our PCB.
  1275. 1:08:26We can have a look.
  1276. 1:08:283D view.
  1277. 1:08:31So, these are the
  1278. 1:08:32components what we need to place
  1279. 1:08:36on our board. I'm going to close this.
  1280. 1:08:40And uh
  1281. 1:08:42Before you start, don't forget to set
  1282. 1:08:44the units and the grid.
  1283. 1:08:50And the very first thing what we are
  1284. 1:08:51going to do is we are going to create
  1285. 1:08:53the board shape, board outline.
  1286. 1:09:00Draw it uh like uh exactly what I do.
  1287. 1:09:04So, from the 0 0 position
  1288. 1:09:08update these
  1289. 1:09:10numbers.
  1290. 1:09:14And then your board will look exactly
  1291. 1:09:16same as mine.
  1292. 1:09:19It will be easy for you to
  1293. 1:09:21follow
  1294. 1:09:23the layout what we are going to do.
  1295. 1:09:27Now, if you go to 3D view, you can see
  1296. 1:09:29this is the board what we are going to
  1297. 1:09:31create.
  1298. 1:09:32And these are the components what we
  1299. 1:09:34need to place on our board.
  1300. 1:09:41Don't forget to save.
  1301. 1:09:44If you like to work only with components
  1302. 1:09:50change the grid size.
  1303. 1:09:52And first, I'm going to place these
  1304. 1:09:54mounting holes.
  1305. 1:10:00Watch the position.
  1306. 1:10:05Okay.
  1307. 1:10:07This one is mounting hole mounting hole
  1308. 1:10:10three.
  1309. 1:10:11This one is mounting hole four.
  1310. 1:10:17Now, the USB
  1311. 1:10:20connector
  1312. 1:10:21I'll place it here. Okay, manually you
  1313. 1:10:24can write the position here.
  1314. 1:10:26So, you will have it exactly in same
  1315. 1:10:28position as I have it.
  1316. 1:10:31Again, it will be easy for you then to
  1317. 1:10:33follow
  1318. 1:10:34the layout what we will be doing in this
  1319. 1:10:36video.
  1320. 1:10:39And for this output connector, again,
  1321. 1:10:41you can manually put the position here.
  1322. 1:10:44Do it exactly same way
  1323. 1:10:46as I have it.
  1324. 1:10:51Select everything and we would like to
  1325. 1:10:52lock them. So, we don't want to
  1326. 1:10:54accidentally move components.
  1327. 1:11:03Now, this is the chip.
  1328. 1:11:09So, I'm going to place it here. 810
  1329. 1:11:13730
  1330. 1:11:16and rotation 90.
  1331. 1:11:22This is the regulator.
  1332. 1:11:28You can place it into same position.
  1333. 1:11:36This is the multiplexer.
  1334. 1:11:50Okay.
  1335. 1:11:52And these are the switches.
  1336. 1:12:03Okay.
  1337. 1:12:06We can also place these, but put it on
  1338. 1:12:08the bottom because by default we are not
  1339. 1:12:10going to fit this connector and there is
  1340. 1:12:12no space on the top
  1341. 1:12:15side of our PCB. So,
  1342. 1:12:18we place it on the bottom side of our
  1343. 1:12:20PCB and we can have a look how it looks.
  1344. 1:12:24Okay. So, on the top there are all the
  1345. 1:12:26key components and on the bottom there
  1346. 1:12:28is the
  1347. 1:12:29I squared C header.
  1348. 1:12:37I'm going to change the grid again. We
  1349. 1:12:40are going to
  1350. 1:12:42place the LEDs.
  1351. 1:12:45So, LED tool
  1352. 1:12:48So, this is the 28 20
  1353. 1:12:5212
  1354. 1:12:549
  1355. 1:12:555 V LED.
  1356. 1:13:02And I'm going to move it a little bit.
  1357. 1:13:07Like this. Okay, watch the position. So,
  1358. 1:13:10LED 2 is here.
  1359. 1:13:13This is LED 3.
  1360. 1:13:174 5 6
  1361. 1:13:26Now,
  1362. 1:13:30components around this USB, so
  1363. 1:13:34this capacitor
  1364. 1:13:36need to be placed close to this USB
  1365. 1:13:41connector.
  1366. 1:13:53And uh these blue lines, they are
  1367. 1:13:55telling you where the pads needs to be
  1368. 1:13:58connected. You can see
  1369. 1:14:01the blue lines, they go to the connector
  1370. 1:14:03now.
  1371. 1:14:06This is the position.
  1372. 1:14:09You can use same position for easy
  1373. 1:14:11layout later, okay?
  1374. 1:14:18See, these are the lines, blue lines.
  1375. 1:14:25And you hover a cursor over the path,
  1376. 1:14:28you can see where the net is connected.
  1377. 1:14:32I'm going to change the color of the
  1378. 1:14:34ground net. I'm going to use this blue
  1379. 1:14:37color. Then it's very easy to see uh
  1380. 1:14:40what pins are connected to ground.
  1381. 1:14:43But the color of the
  1382. 1:14:45bottom layer is very similar to the
  1383. 1:14:49color of the ground pin. So, I'm going
  1384. 1:14:50to change
  1385. 1:14:52the color of the bottom layer to be like
  1386. 1:14:55light blue.
  1387. 1:14:59Watch what's going to happen. Okay?
  1388. 1:15:04Okay, this is much better.
  1389. 1:15:06Uh
  1390. 1:15:09But, still this uh reference designators
  1391. 1:15:12we would like to maybe hide them. So,
  1392. 1:15:14we'd like to work with all the
  1393. 1:15:15components
  1394. 1:15:17and watch what's going to happen. Okay?
  1395. 1:15:19We are going to hide the reference
  1396. 1:15:21designators.
  1397. 1:15:24Because they were uh little bit
  1398. 1:15:25annoying. They went over the pads.
  1399. 1:15:28Later, we can just enable the reference
  1400. 1:15:30designators which are important. We
  1401. 1:15:32don't really need them for layout.
  1402. 1:15:37I'm going to also change color of this
  1403. 1:15:383.3 V net. I'm going to use this orange.
  1404. 1:15:43And also for this one, I'm going to use
  1405. 1:15:46something like this.
  1406. 1:15:50Okay? Now, we can see all the power
  1407. 1:15:54and ground pins very nicely.
  1408. 1:16:10Now, this uh ESD protection, it has to
  1409. 1:16:13be close to the USB connector.
  1410. 1:16:17And uh
  1411. 1:16:21I'm going to change the angle.
  1412. 1:16:26Maybe like this.
  1413. 1:16:31And move it.
  1414. 1:16:34Also, the second one.
  1415. 1:16:42Change this.
  1416. 1:16:44And move it.
  1417. 1:16:48You can see how they are connected,
  1418. 1:16:49okay?
  1419. 1:16:58Next, we can place this 1K resistor.
  1420. 1:17:02It is this one.
  1421. 1:17:05So,
  1422. 1:17:08watch the blue lines. You can see where
  1423. 1:17:10the
  1424. 1:17:11resistor is connected. We can place it
  1425. 1:17:14here because there is a lot of space
  1426. 1:17:16around the chip.
  1427. 1:17:17So, we can place it here.
  1428. 1:17:24Then, uh
  1429. 1:17:28the coupling capacitor needs to be close
  1430. 1:17:30to the pin number one.
  1431. 1:17:34That's the power pin.
  1432. 1:17:36Here.
  1433. 1:17:38So, we want to have it close.
  1434. 1:17:50What else?
  1435. 1:17:52These pull-up resistors.
  1436. 1:17:57Where they are?
  1437. 1:18:00Here.
  1438. 1:18:01Okay, so I'm going to place it here.
  1439. 1:18:09We can place all these resistors close
  1440. 1:18:12to the multiplexer chip. So, I'm going
  1441. 1:18:15to
  1442. 1:18:18put them one by one here.
  1443. 1:18:27Because they are all connected
  1444. 1:18:30to these pins which are connected to the
  1445. 1:18:32multiplexer.
  1446. 1:18:39Mhm.
  1447. 1:18:40you can see how they are connected.
  1448. 1:18:42Always double check with
  1449. 1:18:44cursor.
  1450. 1:18:45Hover it over the pin, you will see
  1451. 1:18:48or hover it over the pad, you will see
  1452. 1:18:50where the pad is connected.
  1453. 1:18:57This one
  1454. 1:18:58Okay, maybe this one we need we would
  1455. 1:19:00like to place somewhere here.
  1456. 1:19:05Okay.
  1457. 1:19:14This one.
  1458. 1:19:22This is the LED.
  1459. 1:19:28The resistor. We would like to place it
  1460. 1:19:30close to the LED.
  1461. 1:19:33Uh maybe a little okay. This Press space
  1462. 1:19:36bar to rotate, okay?
  1463. 1:19:40Same as in the schematic.
  1464. 1:19:48And transistor.
  1465. 1:19:58Okay.
  1466. 1:20:02Pull up on power good pin.
  1467. 1:20:12I'm double checking where everything is
  1468. 1:20:13connected.
  1469. 1:20:22This is the capacitor close to the
  1470. 1:20:24output connector.
  1471. 1:20:32Maybe rotate. Okay, watch how it is
  1472. 1:20:34connecting, okay?
  1473. 1:20:45Now these are
  1474. 1:20:47series resistors for the LED. So they're
  1475. 1:20:50going to be close to the
  1476. 1:20:53multiplexer.
  1477. 1:21:08Okay.
  1478. 1:21:12We could place them also close to the
  1479. 1:21:14LEDs, but I didn't want to place
  1480. 1:21:17too many components around the LEDs
  1481. 1:21:19because then
  1482. 1:21:21I think when there are only the LEDs, it
  1483. 1:21:23looks nicer.
  1484. 1:21:31This one.
  1485. 1:21:37And decoupling capacitor again close to
  1486. 1:21:40the power pin.
  1487. 1:21:47Perfect.
  1488. 1:21:55Save.
  1489. 1:21:58What else?
  1490. 1:22:04Okay, input
  1491. 1:22:06capacitor for the regulator. It has to
  1492. 1:22:09be close to the
  1493. 1:22:11input pin of the regulator.
  1494. 1:22:17Now the
  1495. 1:22:20resistor on the enable pin.
  1496. 1:22:23You can just place it here.
  1497. 1:22:28And the output capacitors, they need to
  1498. 1:22:30be placed close to the output from the
  1499. 1:22:32regulator.
  1500. 1:22:35Like this.
  1501. 1:22:49Okay.
  1502. 1:22:54These are all the components. This was
  1503. 1:22:55very easy and quick. Double check in 3D
  1504. 1:22:58view.
  1505. 1:22:59So, this is how our board is going to
  1506. 1:23:03look.
  1507. 1:23:05Do you like it?
  1508. 1:23:09Well done.
  1509. 1:23:12Before we start doing layout, we would
  1510. 1:23:14like to set the rules. So, design rules.
  1511. 1:23:18We are going to use mils. Now, search
  1512. 1:23:21for JLCPCB capabilities because we are
  1513. 1:23:24going to use JLCPCB to manufacture our
  1514. 1:23:27board. We would like to know what they
  1515. 1:23:29can do.
  1516. 1:23:30And we are going to double check the
  1517. 1:23:32minimum track width and minimum
  1518. 1:23:34clearance.
  1519. 1:23:36So, for multi-layer PCB, it is 3.5 3.5
  1520. 1:23:41mil. That's the minimum what they can
  1521. 1:23:42manufacture.
  1522. 1:23:44We are not going to use minimum. I'm
  1523. 1:23:45going to change this to 10.
  1524. 1:23:48But, be careful. Some of the numbers
  1525. 1:23:50need to be a little bit bigger.
  1526. 1:23:52So,
  1527. 1:23:55even I change everything to 10, I'm
  1528. 1:23:57going to adjust this
  1529. 1:24:00to 12.
  1530. 1:24:01And we can make also this little bit
  1531. 1:24:04bigger.
  1532. 1:24:06And this one little bit bigger.
  1533. 1:24:10Now, for the minimum track width, again,
  1534. 1:24:13we I we are going to use 10, not 3.5.
  1535. 1:24:16That's the minimum what they can do. And
  1536. 1:24:18for via, 24 and 12.
  1537. 1:24:21Use exactly same numbers, okay?
  1538. 1:24:28Now, go to tools, layer manager.
  1539. 1:24:31And we are going to use four layer PCB.
  1540. 1:24:35The layers inside of our PCB are going
  1541. 1:24:38to be ground planes.
  1542. 1:24:41So, watch what's going to happen.
  1543. 1:24:44Here are the inner layers. When we
  1544. 1:24:46select it, double check if they are
  1545. 1:24:48connected to ground. So, this one is,
  1546. 1:24:51and this one
  1547. 1:24:52is also ground. Perfect.
  1548. 1:24:55We can hide them. We don't need to see
  1549. 1:24:57them. Go on the top layer and save
  1550. 1:25:00everything.
  1551. 1:25:05Before we start drawing, be sure
  1552. 1:25:08you have same grid.
  1553. 1:25:10Be sure your top layer is active.
  1554. 1:25:13Zoom in. Use mouse wheel.
  1555. 1:25:16And track width is going to be 10 mils.
  1556. 1:25:20Or press tab, you can adjust the track
  1557. 1:25:23width.
  1558. 1:25:25Then just left click.
  1559. 1:25:28Left click. Left click. Okay? So, this
  1560. 1:25:31is how you draw connections on your PCB.
  1561. 1:25:34It's very, very simple.
  1562. 1:25:39Just left click on the pad. Left click
  1563. 1:25:41and left click.
  1564. 1:25:44I'm going to interrupt for a moment.
  1565. 1:25:47Um
  1566. 1:25:48if you really like this tutorial and you
  1567. 1:25:50would like to learn more about
  1568. 1:25:52electronics and how to design board,
  1569. 1:25:54check out our online courses. You will
  1570. 1:25:56find everything important there from
  1571. 1:25:58basic board design up to advanced
  1572. 1:26:01hardware design and high-speed PCB
  1573. 1:26:03layout. We have courses in Altium,
  1574. 1:26:06Cadence, KiCad, and also courses
  1575. 1:26:09covering many different topics. For
  1576. 1:26:10example, FPGA, EMC measurements, and so
  1577. 1:26:13on.
  1578. 1:26:14Visit our website at federal.com.
  1579. 1:26:18Now, we can go back to our tutorial.
  1580. 1:26:21Let's continue.
  1581. 1:26:27Okay.
  1582. 1:26:28So, watch where these are connected.
  1583. 1:26:32Uh what we are going to do, we are going
  1584. 1:26:34to use vias.
  1585. 1:26:37So, we are going to change the layer
  1586. 1:26:38from top layer to the bottom layer.
  1587. 1:26:40That's what via is doing.
  1588. 1:26:42Be sure it is 24 12 mils.
  1589. 1:26:45I'm going to copy this.
  1590. 1:26:49Right click, copy, and now click on the
  1591. 1:26:52pad.
  1592. 1:26:54Very useful. When you click on the pad,
  1593. 1:26:56you will be holding the selection where
  1594. 1:26:59the pad was,
  1595. 1:27:01and then you can very simply paste it on
  1596. 1:27:05next pad.
  1597. 1:27:10Okay.
  1598. 1:27:15Make the grid a little bit smaller.
  1599. 1:27:19And
  1600. 1:27:21draw the tracks maybe like this.
  1601. 1:27:25Press shift, you can hold the shift
  1602. 1:27:27uh down, and then it will stay in line.
  1603. 1:27:31When you are drawing, it will stay in
  1604. 1:27:32line. Try holding shift. What is
  1605. 1:27:34happening?
  1606. 1:27:38I'm going to place vias also here.
  1607. 1:27:43And we also need to connect these to the
  1608. 1:27:46resistors.
  1609. 1:27:48So, continue drawing on top layer.
  1610. 1:27:53And connect these
  1611. 1:27:55resistors.
  1612. 1:28:04Okay.
  1613. 1:28:06Perfect.
  1614. 1:28:10You can easily adjust the shape of the
  1615. 1:28:13track when you just hold
  1616. 1:28:16left button on your mouse and then just
  1617. 1:28:18move the track.
  1618. 1:28:29Okay, we are going to connect these.
  1619. 1:28:32Again, very simple connection.
  1620. 1:28:47Left click.
  1621. 1:28:48Left click.
  1622. 1:28:50Left click.
  1623. 1:28:52Left click.
  1624. 1:28:54And connect also these.
  1625. 1:29:01Okay.
  1626. 1:29:03Where this is connected.
  1627. 1:29:06It goes up. So, what I'm going to do,
  1628. 1:29:07I'm going to place a via here.
  1629. 1:29:11And later we will connect it.
  1630. 1:29:14Because there will be a lot of tracks so
  1631. 1:29:16crossing, so that's why we would like to
  1632. 1:29:18go on the bottom layer.
  1633. 1:29:21This is a very simple connection because
  1634. 1:29:22we have inside of our PCB, we have two
  1635. 1:29:25ground layers.
  1636. 1:29:27So, everything what we need to do is
  1637. 1:29:28just place very short track and connect
  1638. 1:29:31it to ground.
  1639. 1:29:33Notice for the powers and for the
  1640. 1:29:35ground, I'm using
  1641. 1:29:37uh wider tracks.
  1642. 1:29:4120 mils.
  1643. 1:29:46So, just press tab on your keyboard, you
  1644. 1:29:49can
  1645. 1:29:50adjust the width
  1646. 1:29:51of the track.
  1647. 1:29:59Okay.
  1648. 1:30:08These are also very easy to connect.
  1649. 1:30:11So,
  1650. 1:30:14let's do it.
  1651. 1:30:17Here is ground.
  1652. 1:30:24This is power.
  1653. 1:30:40Okay.
  1654. 1:30:46You can see now why we use the colors on
  1655. 1:30:49the net because it's very very
  1656. 1:30:52clear
  1657. 1:30:53what is connected together.
  1658. 1:30:56And using colors for power nets, it's
  1659. 1:30:59specially useful because there are many
  1660. 1:31:01power nets.
  1661. 1:31:05Many pins which are connected to power
  1662. 1:31:07nets.
  1663. 1:31:12Okay, we can
  1664. 1:31:14connect these on the bottom
  1665. 1:31:17bottom layer.
  1666. 1:31:20So, that's why we are using via.
  1667. 1:31:26Uh
  1668. 1:31:27these are ground pins. So, this is very
  1669. 1:31:28simple to connect.
  1670. 1:31:31Just place via and it will connect to
  1671. 1:31:34the middle layers which are ground
  1672. 1:31:36planes.
  1673. 1:31:38I'm going to show you how they are
  1674. 1:31:39connected. So, if we go on this inner
  1675. 1:31:41layer,
  1676. 1:31:43watch what's going to happen. Select
  1677. 1:31:46rebuild.
  1678. 1:31:48And you see here is a space and there is
  1679. 1:31:50no space. So, you can see the ground
  1680. 1:31:53vias are connected directly to the
  1681. 1:31:54plane.
  1682. 1:31:56Ground plane.
  1683. 1:32:00Now, on the bottom layer
  1684. 1:32:04we can connect these together.
  1685. 1:32:07And we still need to place there also a
  1686. 1:32:10via.
  1687. 1:32:12See, this is on the bottom layer.
  1688. 1:32:14So, we need to place a via here.
  1689. 1:32:19Make it a little bit wider.
  1690. 1:32:24You can very easily switch between uh
  1691. 1:32:28views of different layers.
  1692. 1:32:31Or what you can do, you can actually use
  1693. 1:32:34shift S.
  1694. 1:32:36Okay, try shift S multiple times.
  1695. 1:32:40This is shift S view.
  1696. 1:32:42Very useful. So, only the active layer
  1697. 1:32:45has the colors. The other layers, they
  1698. 1:32:48are uh gray.
  1699. 1:32:50Change the width uh back to 10.
  1700. 1:32:55Okay.
  1701. 1:32:58And uh
  1702. 1:33:01connect these pins here on top layer.
  1703. 1:33:08Now, place a via.
  1704. 1:33:21Okay.
  1705. 1:33:28Now, go on the bottom layer
  1706. 1:33:33and connect these two vias together.
  1707. 1:33:44Okay.
  1708. 1:33:47Go back on top layer
  1709. 1:33:49and we can continue.
  1710. 1:33:52So, the ground pin.
  1711. 1:33:59It's two wide. I'm going to double check
  1712. 1:34:01what is the width of the pad.
  1713. 1:34:0315.
  1714. 1:34:05So, I'm going to use 15.
  1715. 1:34:10So, the track is not wider than the
  1716. 1:34:12pad.
  1717. 1:34:18And this one
  1718. 1:34:23we have to place a via here because on
  1719. 1:34:26the top layer you can see there are
  1720. 1:34:28the 3.3 V tracks already.
  1721. 1:34:32So, we have to go on the bottom layer.
  1722. 1:34:38And connect the LED.
  1723. 1:34:50Okay, very simple connection.
  1724. 1:35:03And also we uh would like to connect
  1725. 1:35:05this.
  1726. 1:35:10Okay, these are all ground pins. So, use
  1727. 1:35:15wider track.
  1728. 1:35:18They are connected to the layer
  1729. 1:35:20two and layer three.
  1730. 1:35:22We can copy these because they are all
  1731. 1:35:24exactly the same.
  1732. 1:35:27And we can paste them
  1733. 1:35:29on the pads.
  1734. 1:35:36Okay.
  1735. 1:35:47Perfect.
  1736. 1:36:03>> Now I'm on the power.
  1737. 1:36:18And place all the vias.
  1738. 1:36:21Always before you you start drawing
  1739. 1:36:24tracks in uh
  1740. 1:36:27specific areas of your PCB, always place
  1741. 1:36:31all the vias
  1742. 1:36:32because then you will see where the
  1743. 1:36:35space is.
  1744. 1:36:37It means if you don't place vias and if
  1745. 1:36:39you if you draw the tracks first,
  1746. 1:36:42then what may happen, you
  1747. 1:36:45will need to redraw your layout later
  1748. 1:36:47when you will be placing the vias.
  1749. 1:36:53But these are all very easy connections.
  1750. 1:37:04So this is not like super critical how
  1751. 1:37:06exactly you will be drawing the layout.
  1752. 1:37:09There is a lot of space.
  1753. 1:37:16And uh
  1754. 1:37:18the connections are very simple.
  1755. 1:37:30Okay, we need vias also here.
  1756. 1:37:41We can connect it.
  1757. 1:37:52>> One more via here.
  1758. 1:38:03Connect.
  1759. 1:38:14I'm double checking what else we need to
  1760. 1:38:17connect together.
  1761. 1:38:25So, this one goes here.
  1762. 1:38:42Connect it also here.
  1763. 1:38:50And on the top.
  1764. 1:38:57Perfect.
  1765. 1:39:01Next one.
  1766. 1:39:06These are the ground pins. So, before I
  1767. 1:39:08continue routing in this area, I'm going
  1768. 1:39:10to place these
  1769. 1:39:12vias.
  1770. 1:39:17And then we will do the layout.
  1771. 1:39:25Because, you know, if I don't see these
  1772. 1:39:26vias here, maybe I would route through
  1773. 1:39:29this space. But, now I see there are
  1774. 1:39:31these vias, so I will go around them.
  1775. 1:39:35And then I don't have to reroute
  1776. 1:39:38what I already routed.
  1777. 1:39:48Okay.
  1778. 1:39:55So, from the chip
  1779. 1:40:00go somewhere here
  1780. 1:40:06and connect the header.
  1781. 1:40:19And
  1782. 1:40:22connect also the switches.
  1783. 1:40:30And we also need to connect the
  1784. 1:40:31multiplexer.
  1785. 1:40:45Okay.
  1786. 1:40:49Looks good.
  1787. 1:40:55Now, we can connect the LEDs. So, this
  1788. 1:40:57is simple because
  1789. 1:40:58all the ground uh
  1790. 1:41:00fan out from these LEDs
  1791. 1:41:03will be exactly the same.
  1792. 1:41:08Just uh
  1793. 1:41:11select it,
  1794. 1:41:14copy, hold it where the pin is,
  1795. 1:41:17and place it on another pin.
  1796. 1:41:21Next pin.
  1797. 1:41:24Next one.
  1798. 1:41:27Here.
  1799. 1:41:32And then here we also need vias.
  1800. 1:41:37So, same before.
  1801. 1:41:40Do the fan out.
  1802. 1:41:42Copy it.
  1803. 1:41:44And paste. So, this very short
  1804. 1:41:47connection from the pad to via, it is
  1805. 1:41:49usually called fan out.
  1806. 1:42:01Now, on the bottom layer we can connect
  1807. 1:42:03all these.
  1808. 1:42:13Just watch
  1809. 1:42:15where every via is connected.
  1810. 1:42:25With this one we will go a little bit
  1811. 1:42:26around.
  1812. 1:42:28And also notice I keep
  1813. 1:42:31big space
  1814. 1:42:33between the tracks.
  1815. 1:42:36Uh,
  1816. 1:42:37that's a very good habit for this PCB is
  1817. 1:42:40not very important because these signals
  1818. 1:42:41are
  1819. 1:42:43not like high-speed signals or
  1820. 1:42:45some very important signals.
  1821. 1:42:48But, it's a very good habit. Do not
  1822. 1:42:51route
  1823. 1:42:52these tracks or do not draw these tracks
  1824. 1:42:56very close to each other. If you have a
  1825. 1:42:58lot of space on your board, on your PCB,
  1826. 1:43:01then keep big spaces between the tracks.
  1827. 1:43:11The reason is crosstalk.
  1828. 1:43:13If you like, you can uh
  1829. 1:43:16search for
  1830. 1:43:18meaning of crosstalk. But, basically, if
  1831. 1:43:20you route signals very close to each
  1832. 1:43:22other
  1833. 1:43:23then they can influence each other. The
  1834. 1:43:25noise can be picked up by the neighbor
  1835. 1:43:28traces.
  1836. 1:43:29But, again, as I said, for this PCB it's
  1837. 1:43:31not important. There are no really
  1838. 1:43:36running There are no really signals
  1839. 1:43:38running through these tracks. These are
  1840. 1:43:40just, you know, switches or
  1841. 1:43:43the
  1842. 1:43:44The most important interface here is the
  1843. 1:43:46USB interface.
  1844. 1:43:52And then we have there also I2C, but
  1845. 1:43:55I2C is also not like
  1846. 1:43:58super
  1847. 1:43:59high-speed or difficult to route.
  1848. 1:44:08Okay.
  1849. 1:44:10Let's continue.
  1850. 1:44:11So, we have to connect this
  1851. 1:44:14exposed pad
  1852. 1:44:17to ground.
  1853. 1:44:21And I use more vias
  1854. 1:44:25because they can also take heat away
  1855. 1:44:28from the chip. So, if the chip uh in
  1856. 1:44:32In some situations, some chips, they may
  1857. 1:44:35get warm or hot.
  1858. 1:44:37So, it's very useful to use multiple
  1859. 1:44:40vias.
  1860. 1:44:41This chip
  1861. 1:44:43uh
  1862. 1:44:45may not got may not get really hot,
  1863. 1:44:48but again, it's a good habit
  1864. 1:44:51place multiple ground vias into exposed
  1865. 1:44:54pad.
  1866. 1:45:02Okay.
  1867. 1:45:08We are going to connect uh CC1 pin.
  1868. 1:45:13Draw a short track and place a via. So,
  1869. 1:45:17this is fan out of the CC1 pin.
  1870. 1:45:20Now, USB
  1871. 1:45:22Again, fan out for USB
  1872. 1:45:24track and via.
  1873. 1:45:28USB interface is uh very important, so
  1874. 1:45:31we will have to place here also
  1875. 1:45:33something what is called ground
  1876. 1:45:34stitching via.
  1877. 1:45:36So, let's do it.
  1878. 1:45:38If you would like to learn more, just
  1879. 1:45:39watch my videos. Oh, this one doesn't
  1880. 1:45:41have the correct net connected.
  1881. 1:45:44So, I'm going to connect it to ground.
  1882. 1:45:48And there is error. You can see this uh
  1883. 1:45:52yellow crosses. It means there is error.
  1884. 1:45:55So,
  1885. 1:45:56the track was very close to the via. I
  1886. 1:45:58moved it away, and then error
  1887. 1:46:00disappeared.
  1888. 1:46:06Save.
  1889. 1:46:11We are going to connect this uh USB
  1890. 1:46:13power.
  1891. 1:46:14Change the width to 20 mils. And there
  1892. 1:46:17is a problem.
  1893. 1:46:19There is violation.
  1894. 1:46:21Uh
  1895. 1:46:22to fix this violation, I'm going to
  1896. 1:46:24create this special region. It is just a
  1897. 1:46:27special rectangle,
  1898. 1:46:29which I'm going to draw around this
  1899. 1:46:31part.
  1900. 1:46:33I'm going to call it
  1901. 1:46:35USB C. Remember this name, okay?
  1902. 1:46:39Then, inside of rules, I'm going to
  1903. 1:46:42create special spacing rule.
  1904. 1:46:45I'm going to call it
  1905. 1:46:49USB C
  1906. 1:46:51clearance.
  1907. 1:46:53And in this inside of this rectangle, we
  1908. 1:46:54will set special smaller clearance, 6
  1909. 1:46:57mils.
  1910. 1:46:59Okay, I'm going to double-check. The
  1911. 1:47:01minimum is 3.5, what we can use in JLC.
  1912. 1:47:04Six is is bigger, so it is fine.
  1913. 1:47:07And now in this USB C region, I'm going
  1914. 1:47:10to assign this new USB C clearance rule.
  1915. 1:47:13Okay? This is the rectangle what we
  1916. 1:47:15created.
  1917. 1:47:19Confirm.
  1918. 1:47:22Now, let's try it game. So, I'm going to
  1919. 1:47:25route the USB
  1920. 1:47:28power, and you can see we can do it.
  1921. 1:47:32I'm going to select this, and I'm going
  1922. 1:47:35to change it to 20 mils.
  1923. 1:47:37Okay?
  1924. 1:47:40Uh
  1925. 1:47:41Right now, we are just drawing these
  1926. 1:47:43connections uh
  1927. 1:47:44to connect all the pins, but a little
  1928. 1:47:46bit later, when we will be finishing
  1929. 1:47:48this design, we will actually draw a big
  1930. 1:47:51polygon.
  1931. 1:47:53So, this is just to
  1932. 1:47:55um to see where we need
  1933. 1:47:58copper for this USB
  1934. 1:48:01power.
  1935. 1:48:04Now,
  1936. 1:48:05CC1,
  1937. 1:48:0710 mils.
  1938. 1:48:10Uh we need to place a via here.
  1939. 1:48:16And we can connect it on the bottom
  1940. 1:48:18of our PCB.
  1941. 1:48:24You can do it like this.
  1942. 1:48:31Okay? Now,
  1943. 1:48:33CC2,
  1944. 1:48:35it goes up.
  1945. 1:48:36So, I'm going to draw this short track,
  1946. 1:48:42place via,
  1947. 1:48:44and connect on the bottom.
  1948. 1:48:49But, there are these uh USB signals, so
  1949. 1:48:51I will go actually around
  1950. 1:48:55uh this way.
  1951. 1:48:56Okay? Because little bit later, we will
  1952. 1:48:58route USB signals
  1953. 1:49:02in this area, too.
  1954. 1:49:05Perfect.
  1955. 1:49:15Now, the ground.
  1956. 1:49:17There are many ground pins.
  1957. 1:49:20So, before we start routing the USB
  1958. 1:49:24signals, we would like to see where is
  1959. 1:49:26the space. So, we are going to put there
  1960. 1:49:28all the vias.
  1961. 1:49:36Okay.
  1962. 1:49:39Next one.
  1963. 1:49:42Let's connect this.
  1964. 1:49:50Then,
  1965. 1:49:52this one.
  1966. 1:49:57Maybe like this.
  1967. 1:50:02Also, here.
  1968. 1:50:06When you use space bar, you will change
  1969. 1:50:08the angle how the
  1970. 1:50:12track
  1971. 1:50:13suggestion is
  1972. 1:50:17made.
  1973. 1:50:19So, when you are routing a track,
  1974. 1:50:22try
  1975. 1:50:23try space. You will see what will
  1976. 1:50:25happen.
  1977. 1:50:32Okay.
  1978. 1:50:34Now, I'm going to continue routing this
  1979. 1:50:36USB power.
  1980. 1:50:42So,
  1981. 1:50:44I'm going to connect
  1982. 1:50:47all these
  1983. 1:50:49pins.
  1984. 1:50:55And as I said, a little bit later we
  1985. 1:50:57will draw big copper plane
  1986. 1:51:00for this USB power.
  1987. 1:51:03So, it's not really super important how
  1988. 1:51:05these tracks look.
  1989. 1:51:11Now, this.
  1990. 1:51:13Uh
  1991. 1:51:15Maybe I would like to
  1992. 1:51:17swap these two pins. We would like to
  1993. 1:51:20have maybe power on the top and ground
  1994. 1:51:22on the bottom.
  1995. 1:51:23But, we can't just simply rotate the
  1996. 1:51:25connector because there are the openings
  1997. 1:51:27for the wires.
  1998. 1:51:29So, what we need to do, we need to go
  1999. 1:51:32into schematic actually.
  2000. 1:51:34And swap the pins, and I'm going to show
  2001. 1:51:37you how to do it. This is very useful
  2002. 1:51:39uh to know how to do.
  2003. 1:51:42Uh because, you know, we already
  2004. 1:51:43finished the schematic. So, this is how
  2005. 1:51:45you can make schematic changes later.
  2006. 1:51:49I'm going to swap these pins. Watch
  2007. 1:51:51what's going to happen.
  2008. 1:51:54And I'm going to connect everything
  2009. 1:51:56again.
  2010. 1:51:57So, now pin number two is on the top and
  2011. 1:51:59pin number one is on the bottom.
  2012. 1:52:01Save.
  2013. 1:52:04Go to design and update PCB. Okay, we
  2014. 1:52:06made changes in schematic. Here you can
  2015. 1:52:09see what kind of changes we made.
  2016. 1:52:12And watch what's going to happen. Okay?
  2017. 1:52:17Good.
  2018. 1:52:18Apply. Watch.
  2019. 1:52:20Perfect.
  2020. 1:52:22Okay, so if you need to do any changes
  2021. 1:52:24later in the schematic, this is the way
  2022. 1:52:26how you can do it. It's very very
  2023. 1:52:28simple.
  2024. 1:52:30I'm going to connect
  2025. 1:52:32these
  2026. 1:52:34pins which are connected to power.
  2027. 1:52:37And then this USB power is finished.
  2028. 1:52:46Ground.
  2029. 1:52:52Now, this pin it still shows it is not
  2030. 1:52:54connected. So, I'm going to rebuild this
  2031. 1:52:56ground plane which is inside of our PCB.
  2032. 1:53:00And watch what happened, okay? Now, it's
  2033. 1:53:01connected
  2034. 1:53:03to ground plane.
  2035. 1:53:06Okay.
  2036. 1:53:11Save everything.
  2037. 1:53:14And what left are these USB
  2038. 1:53:17tracks.
  2039. 1:53:20So, go to federeal.com/hardwareassistant
  2040. 1:53:24and we are going to ask
  2041. 1:53:25question.
  2042. 1:53:27We we need some help with, you know,
  2043. 1:53:29doing layout.
  2044. 1:53:31This is actually our AI assistant. So,
  2045. 1:53:34if you have any questions, you can try
  2046. 1:53:36it.
  2047. 1:53:37So, what is important when routing
  2048. 1:53:38digital tracks and USB
  2049. 1:53:41signals?
  2050. 1:53:44Uh
  2051. 1:53:45important is impedance. So, for digital
  2052. 1:53:48tracks, the impedance is 50 ohms
  2053. 1:53:51usually.
  2054. 1:53:52But for USB signals, it is 90
  2055. 1:53:55differential 90 ohms differential pair
  2056. 1:53:58impedance, okay? So, 90 and 50. Remember
  2057. 1:54:01these two numbers.
  2058. 1:54:04What does it mean?
  2059. 1:54:05It means we have to go to this JLCPCB
  2060. 1:54:08impedance calculator.
  2061. 1:54:10And based on this stack up,
  2062. 1:54:12uh based on the PCB what we are going to
  2063. 1:54:14use,
  2064. 1:54:15we need to calculate what is going to be
  2065. 1:54:17track width
  2066. 1:54:19and uh
  2067. 1:54:21space between the tracks for 50 ohms and
  2068. 1:54:24for 90 ohm differentials. So, you can do
  2069. 1:54:27it this way.
  2070. 1:54:29Okay. This is this stack up what we are
  2071. 1:54:31going to use, this one which has like
  2072. 1:54:330.09
  2073. 1:54:35uh millimeter distance between layer one
  2074. 1:54:38and layer two.
  2075. 1:54:39And for standard digital tracks, you'd
  2076. 1:54:40like to use this 6.
  2077. 1:54:43one and for the differential pair 6.2
  2078. 1:54:46uh track width and eight
  2079. 1:54:48mils
  2080. 1:54:50spacing.
  2081. 1:54:53Okay. So, I'm going to create a special
  2082. 1:54:55rule for differential pairs.
  2083. 1:55:00Uh what do we need to use?
  2084. 1:55:036.2 for track width.
  2085. 1:55:08And, uh,
  2086. 1:55:11for the space between
  2087. 1:55:13the two tracks, 8 mils. Okay? So, that's
  2088. 1:55:16why we needed the impedance calculator,
  2089. 1:55:18so we can use these numbers here.
  2090. 1:55:22Uh, this is okay, we can leave it.
  2091. 1:55:24Now,
  2092. 1:55:26we have to specify which of the signals
  2093. 1:55:28are differential pair signals. So, I'm
  2094. 1:55:30going to find them in this list.
  2095. 1:55:32I'm going to create new differential
  2096. 1:55:34pair.
  2097. 1:55:36And so, this one is positive, and this
  2098. 1:55:39one is negative. Confirm.
  2099. 1:55:42And then, to these, uh,
  2100. 1:55:45signals, we can assign this
  2101. 1:55:47differential pair rule, which specifies
  2102. 1:55:49the
  2103. 1:55:50track width and the space between the
  2104. 1:55:52tracks.
  2105. 1:55:54We did this because then it is much
  2106. 1:55:56easier to do the layout. Watch what's
  2107. 1:55:58going to happen. When we go to route and
  2108. 1:56:00differential pair routing,
  2109. 1:56:02then, if we follow the rules,
  2110. 1:56:06the track width will be automatically
  2111. 1:56:07set to 6.2.
  2112. 1:56:10And also, the space
  2113. 1:56:12between the tracks is automatically set
  2114. 1:56:14to what we specified.
  2115. 1:56:23We can adjust this a little bit.
  2116. 1:56:26Maybe like this.
  2117. 1:56:31Mm,
  2118. 1:56:32uh, maybe not.
  2119. 1:56:35Okay.
  2120. 1:56:38And if you select this, you can see it
  2121. 1:56:39is 6.2 6.2 mil
  2122. 1:56:43uh, wide.
  2123. 1:56:45And, uh, I'm going to change the grid
  2124. 1:56:48size, so we can measure this very
  2125. 1:56:49precisely. So, when we measure the
  2126. 1:56:51distance between these two tracks, you
  2127. 1:56:53can see it is 8 mils. So, based on the
  2128. 1:56:56rule what we set,
  2129. 1:56:57uh we can now automatically route these
  2130. 1:57:00differential pairs. It is very, very
  2131. 1:57:03uh useful
  2132. 1:57:04to set this kind of rule.
  2133. 1:57:08Okay.
  2134. 1:57:10So, let's uh finish this uh
  2135. 1:57:12USB
  2136. 1:57:16routing.
  2137. 1:57:19You can do it uh
  2138. 1:57:20maybe like this.
  2139. 1:57:23I go
  2140. 1:57:25far away from the other signals.
  2141. 1:57:30Okay.
  2142. 1:57:32Perfect.
  2143. 1:57:39Maybe little adjustments.
  2144. 1:57:47Now, let's go on the top and uh you
  2145. 1:57:48remember uh this is a little bit wider,
  2146. 1:57:50so I'm going to change this to 6.2.
  2147. 1:57:53And also this one.
  2148. 1:57:57Okay.
  2149. 1:58:05What left is this connection here.
  2150. 1:58:08And uh
  2151. 1:58:13This is not exactly how uh I like to
  2152. 1:58:16route uh USB differential pairs because
  2153. 1:58:20uh
  2154. 1:58:22they should be routed properly, but
  2155. 1:58:24there is no other way to connect this
  2156. 1:58:26USB-C connector.
  2157. 1:58:29Uh
  2158. 1:58:29ideally, you would like to have just
  2159. 1:58:31nice
  2160. 1:58:33you know, two tracks routed together.
  2161. 1:58:36But uh
  2162. 1:58:38these USB-C connectors, they are
  2163. 1:58:40designed the way that uh we have to
  2164. 1:58:42connect it like this.
  2165. 1:58:47Not the best way to route uh
  2166. 1:58:49differential pairs, but as I said, there
  2167. 1:58:51is no other way to do it.
  2168. 1:58:57Uh there is one unconnected uh part, but
  2169. 1:59:00I would like to show you how you can run
  2170. 1:59:02DRC check.
  2171. 1:59:05So, when you run DRC check, you can see
  2172. 1:59:07all the errors in your PCB. These are
  2173. 1:59:09clearance, differential pair, and this
  2174. 1:59:11is the connection error. So, it is
  2175. 1:59:13telling us there is something not
  2176. 1:59:15connected.
  2177. 1:59:16And you can very easily find it.
  2178. 1:59:20So,
  2179. 1:59:21when you finish your layout, run DRC
  2180. 1:59:24check and double-check
  2181. 1:59:26uh
  2182. 1:59:27if you have everything connected.
  2183. 1:59:29Now, watch what's going to happen. I
  2184. 1:59:31connected everything.
  2185. 1:59:34It's gone. Okay?
  2186. 1:59:38Now, everything is connected. Well done.
  2187. 1:59:45So, even everything is connected, we
  2188. 1:59:46still have many errors. So, if I go back
  2189. 1:59:49to DRC,
  2190. 1:59:51uh there are many errors with this inner
  2191. 1:59:54plane. Do you know what is the problem?
  2192. 1:59:57The problem is we need to rebuild these
  2193. 1:59:59ground planes inside of our PCB, and
  2194. 2:00:02that should fix many, many errors.
  2195. 2:00:04Watch.
  2196. 2:00:06Okay. Now, go back to DRC, clear, and
  2197. 2:00:10rerun.
  2198. 2:00:11Perfect. There is only one error,
  2199. 2:00:14differential pair.
  2200. 2:00:17And
  2201. 2:00:18this is very easy to fix, basically
  2202. 2:00:20uh
  2203. 2:00:22this is telling us that the the USB is
  2204. 2:00:25not properly routed in the length of 25
  2205. 2:00:28mils.
  2206. 2:00:29See? So, we just need to change this
  2207. 2:00:33to little bit higher number, and then
  2208. 2:00:35the error should disappear.
  2209. 2:00:39Oh, perfect.
  2210. 2:00:42These are the tracks which are not
  2211. 2:00:44routed as differential pair. So, that's
  2212. 2:00:46the length what we have to adjust.
  2213. 2:00:52There is still problem with this chip. I
  2214. 2:00:54received an email from JLCPCB
  2215. 2:00:57and it says it takes 34 working days
  2216. 2:01:01to get the chip.
  2217. 2:01:03Yeah, if you go to schematic and if I
  2218. 2:01:05copy the part number
  2219. 2:01:10when you go to
  2220. 2:01:11LCSC website
  2221. 2:01:15you can see they still don't have it in
  2222. 2:01:17stock.
  2223. 2:01:20Mhm.
  2224. 2:01:21If you have a look inside of data sheet,
  2225. 2:01:23then they have two basically same chips,
  2226. 2:01:26this A and Q version. They are exactly
  2227. 2:01:30same. Watch the pinout, okay? Just the Q
  2228. 2:01:33has different footprint.
  2229. 2:01:35And if you have a look
  2230. 2:01:37if you try to search for the Q version
  2231. 2:01:40they have many in stock.
  2232. 2:01:44So, maybe what we should do
  2233. 2:01:47we should just use this Q version.
  2234. 2:01:51And that's what the what I'm going to do
  2235. 2:01:53now. I'm just going to
  2236. 2:01:58change it in our schematic. So, I'm
  2237. 2:02:00going to save this.
  2238. 2:02:02I'm going to save it as a
  2239. 2:02:05new version
  2240. 2:02:07because I'm going to make a big big
  2241. 2:02:09changes, okay?
  2242. 2:02:12Uh and later in case I would like to go
  2243. 2:02:14back to this A version, I always can do
  2244. 2:02:17but I I always can go back. Now, I'm
  2245. 2:02:20going to copy the part number of the Q
  2246. 2:02:22version
  2247. 2:02:24and I'm going to place it into our
  2248. 2:02:26schematic.
  2249. 2:02:30They have it, so that's good.
  2250. 2:02:34Uh
  2251. 2:02:37but they look different. The symbol
  2252. 2:02:39looks different, so we
  2253. 2:02:41ideally what we would like to do
  2254. 2:02:44we would like to
  2255. 2:02:45update the symbol, make it exactly the
  2256. 2:02:47same.
  2257. 2:02:49So, I'm going to save this
  2258. 2:02:55component into my personal library.
  2259. 2:02:58And we are going to adjust uh
  2260. 2:03:01the shape of the symbol. We'll make it
  2261. 2:03:03exactly the same, and then we can
  2262. 2:03:04basically do very easy replacement in
  2263. 2:03:07our schematic.
  2264. 2:03:12Okay.
  2265. 2:03:14So, on the top is going to be the power.
  2266. 2:03:17I'm going to delete this.
  2267. 2:03:21Adjust the
  2268. 2:03:23size.
  2269. 2:03:25Make it look exactly the same as the one
  2270. 2:03:28what we have in schematic.
  2271. 2:03:31So, move this away.
  2272. 2:03:34Do you Do you remember how it looks?
  2273. 2:03:36VBUS
  2274. 2:03:37on the top.
  2275. 2:03:40Positive, negative USB
  2276. 2:03:44signals, CC1,
  2277. 2:03:47CC2.
  2278. 2:03:50Now, config one,
  2279. 2:03:54two,
  2280. 2:03:56three,
  2281. 2:04:00power good,
  2282. 2:04:02and ground.
  2283. 2:04:07Make sure all the pins are exactly
  2284. 2:04:10in the same place as uh in the in the
  2285. 2:04:13other version of the chip.
  2286. 2:04:16Okay, save and close. We can delete this
  2287. 2:04:18one.
  2288. 2:04:21Go to personal library, and we are going
  2289. 2:04:23to place the new symbol.
  2290. 2:04:26So, this is
  2291. 2:04:27now the Q version of the chip.
  2292. 2:04:31I'm going to change it to U1.
  2293. 2:04:36Okay.
  2294. 2:04:39We can delete this old one, the A
  2295. 2:04:40version of the chip.
  2296. 2:04:43And we can place the new one here.
  2297. 2:04:51Remember the position of this one.
  2298. 2:04:53I'm going to delete it.
  2299. 2:04:57Confirm.
  2300. 2:04:59Now,
  2301. 2:05:00save everything, go to schematic design,
  2302. 2:05:04and update PCB.
  2303. 2:05:07We are going to add
  2304. 2:05:09the new chip.
  2305. 2:05:11And here it is.
  2306. 2:05:13It is much smaller, and this one they
  2307. 2:05:15have in stock.
  2308. 2:05:17So, it will be very easy for us to build
  2309. 2:05:19the board. I'm going to place it exactly
  2310. 2:05:22in the same position as the original
  2311. 2:05:24chip.
  2312. 2:05:28Okay. Also, change the rotation.
  2313. 2:05:33Perfect.
  2314. 2:05:36And we may need to do few small
  2315. 2:05:38adjustments because you can see there
  2316. 2:05:40are many errors, many yellow crosses.
  2317. 2:05:44So, first I'm going to
  2318. 2:05:47delete these vias.
  2319. 2:05:54Uh and uh
  2320. 2:05:57there are many new errors. So, this is
  2321. 2:05:59clearance. I'm going to double-check
  2322. 2:06:01what we need to set.
  2323. 2:06:04So,
  2324. 2:06:07it is 10 mils is expected, but it is
  2325. 2:06:10actually 6.9 mil.
  2326. 2:06:13So, I'm going to
  2327. 2:06:15adjust
  2328. 2:06:17our spacing rule.
  2329. 2:06:21And uh
  2330. 2:06:23I'm going to make it smaller, okay?
  2331. 2:06:25Between the tracks and between the pads,
  2332. 2:06:28I'm going to use 6 mils.
  2333. 2:06:32Now, when we double-check, they should
  2334. 2:06:33disappear.
  2335. 2:06:37Perfect. We just need to reconnect
  2336. 2:06:38everything.
  2337. 2:06:43So, I'm going to
  2338. 2:06:46connect power. The width of this pad is
  2339. 2:06:488.8. So, I'm going to use
  2340. 2:06:528 mil track width.
  2341. 2:06:55Mhm.
  2342. 2:06:57And I'm going to connect this.
  2343. 2:06:59But,
  2344. 2:07:01we have to change also the minimum track
  2345. 2:07:04width in our board.
  2346. 2:07:06Right now, it is 10.
  2347. 2:07:09But, for 50 ohms, we would like to use
  2348. 2:07:116.1.
  2349. 2:07:17I'm going to change it to 6 mils. So,
  2350. 2:07:20later when we will be adjusting
  2351. 2:07:22the track width for 50 ohms, we will not
  2352. 2:07:25see any errors.
  2353. 2:07:26Now, I can easily change it to 8 mils.
  2354. 2:07:29And I'm going to
  2355. 2:07:31move this wide wide track a little bit
  2356. 2:07:35closer to our chip.
  2357. 2:07:38Same here.
  2358. 2:07:408 mil track.
  2359. 2:07:42And I'm going to
  2360. 2:07:44connect it to this decoupling capacitor.
  2361. 2:07:51Maybe make it a little bit nicer.
  2362. 2:07:57Use wide tracks.
  2363. 2:08:05Mhm.
  2364. 2:08:10Like this, maybe.
  2365. 2:08:19Okay. Connect CC1.
  2366. 2:08:246.1. That's the 50 ohm impedance, okay?
  2367. 2:08:276.1. Little bit later, we will adjust
  2368. 2:08:29all the tracks to 6.1. You will see.
  2369. 2:08:34So, don't worry that it looks a little
  2370. 2:08:36bit weird right now.
  2371. 2:08:38Like part of the track is very thin and
  2372. 2:08:40the other part of the track is wide.
  2373. 2:08:49Connect
  2374. 2:08:51all of them.
  2375. 2:08:58So, basically, this design is going to
  2376. 2:09:00be uh
  2377. 2:09:02universal. So, in in case you would like
  2378. 2:09:04to use the bigger chip later or in the
  2379. 2:09:07future, you still can do it.
  2380. 2:09:11You just change the footprint back as uh
  2381. 2:09:13what we had before.
  2382. 2:09:15And you can have
  2383. 2:09:17a board which also supports the other
  2384. 2:09:21chip, the A variant of the chip.
  2385. 2:09:25Here, I'm going to delete this
  2386. 2:09:28and route differential pair
  2387. 2:09:33and connect it.
  2388. 2:09:37Okay.
  2389. 2:09:41Okay.
  2390. 2:09:47Save.
  2391. 2:09:50I still don't like this.
  2392. 2:09:51Uh maybe I'm going to move this
  2393. 2:09:54decoupling capacitor or a little bit
  2394. 2:09:55closer.
  2395. 2:10:00This is going to be better.
  2396. 2:10:02Because decoupling capacitor should be
  2397. 2:10:03always as close as possible to the power
  2398. 2:10:06pin of the chip.
  2399. 2:10:12So, I like this uh little bit more.
  2400. 2:10:19Okay.
  2401. 2:10:27>> Perfect.
  2402. 2:10:30Here what we would like to do, we would
  2403. 2:10:31like to make this copper a little bit
  2404. 2:10:33bigger.
  2405. 2:10:34Okay, so I'm going to draw this uh
  2406. 2:10:37rectangle
  2407. 2:10:40and I'm going to connect it to the
  2408. 2:10:42ground net.
  2409. 2:10:44Confirm.
  2410. 2:10:47And notice these uh weird connections.
  2411. 2:10:52We would like to have direct
  2412. 2:10:54connections. So, here in this copper
  2413. 2:10:56region
  2414. 2:10:58for the single layer pad, I'm going to
  2415. 2:11:00change it to direct. Now, select it and
  2416. 2:11:04redraw.
  2417. 2:11:07Okay, this is what I would like to have.
  2418. 2:11:09And I would like to place uh one more
  2419. 2:11:11via here and one more via here.
  2420. 2:11:18I don't like this, so I'm going to move
  2421. 2:11:20it a little bit away.
  2422. 2:11:24Oops.
  2423. 2:11:29Because the mm copper from the rectangle
  2424. 2:11:33is uh
  2425. 2:11:35cut out because the track was very close
  2426. 2:11:39to the rectangle.
  2427. 2:11:43Mm, maybe
  2428. 2:11:47do it again.
  2429. 2:11:52Like this.
  2430. 2:11:55Okay. Now, when you select it again and
  2431. 2:11:58redraw,
  2432. 2:12:00now it's better.
  2433. 2:12:05Okay.
  2434. 2:12:12Watch what we are going to do with this
  2435. 2:12:143.3 V.
  2436. 2:12:15Uh
  2437. 2:12:16I'm going to draw this copper region.
  2438. 2:12:21Watch the position of my cursor.
  2439. 2:12:24And basically, what we are going to do,
  2440. 2:12:27we're going to replace these tracks.
  2441. 2:12:30We're going to replace them with copper
  2442. 2:12:33area.
  2443. 2:12:35And that's what I normally do for
  2444. 2:12:37powers. For For powers, I very often use
  2445. 2:12:40this copper areas.
  2446. 2:12:43So, just draw it, uh, same way as I do
  2447. 2:12:46it.
  2448. 2:12:48If you don't do it exactly the same way,
  2449. 2:12:51uh, you can always adjust the shape a
  2450. 2:12:54little bit later.
  2451. 2:12:56So, don't worry.
  2452. 2:12:58Uh, if, uh, what you are drawing isn't
  2453. 2:13:01doesn't look exactly as what I'm
  2454. 2:13:02drawing, just finish it.
  2455. 2:13:05And a little bit later,
  2456. 2:13:06you can adjust the shape.
  2457. 2:13:12Okay?
  2458. 2:13:14Be sure it is connected to 3.3 V.
  2459. 2:13:16If not, then you can do it you can fix
  2460. 2:13:18it this way.
  2461. 2:13:21Okay.
  2462. 2:13:26Now, we can do exactly the same
  2463. 2:13:29here for this
  2464. 2:13:30ground
  2465. 2:13:32in this corner
  2466. 2:13:34because, uh, this, uh,
  2467. 2:13:37small regulator,
  2468. 2:13:39it can get warm.
  2469. 2:13:42And,
  2470. 2:13:43uh,
  2471. 2:13:44these big areas, they are very useful
  2472. 2:13:49taking heat away.
  2473. 2:13:52You know, because the input voltage can
  2474. 2:13:53go up to 28 V.
  2475. 2:13:55And
  2476. 2:13:57And this, uh, chip, it has to
  2477. 2:14:00create 3.3 V from, uh, 28 V. So,
  2478. 2:14:06there could be a lot of heat generated
  2479. 2:14:09inside of this chip.
  2480. 2:14:11So, if we use this big
  2481. 2:14:13copper area, it can help with taking the
  2482. 2:14:16heat away from the chip.
  2483. 2:14:19And that's why we are creating this big
  2484. 2:14:21area for the ground, and also we created
  2485. 2:14:24this big area for for the 3.3 volts.
  2486. 2:14:27Both these big areas will help.
  2487. 2:14:30Okay, be sure to disconnect it to
  2488. 2:14:32ground.
  2489. 2:14:35And this is very thin
  2490. 2:14:38for ground. We're going to adjust the
  2491. 2:14:40width
  2492. 2:14:41of these connections.
  2493. 2:14:44So, here
  2494. 2:14:46in multi-layer pad
  2495. 2:14:48change the width to 20.
  2496. 2:14:52Watch what's going to happen. So, select
  2497. 2:14:55and rebuild.
  2498. 2:14:57Now it's wider.
  2499. 2:14:59Okay.
  2500. 2:15:02Save.
  2501. 2:15:05Now the USB power.
  2502. 2:15:09So, draw copper region
  2503. 2:15:14all
  2504. 2:15:16around the power.
  2505. 2:15:26So, this connection, it can
  2506. 2:15:29I think for the USB
  2507. 2:15:32uh
  2508. 2:15:32the limit is like 5 amps for uh
  2509. 2:15:36some of the specifications.
  2510. 2:15:39So, quite a lot of current can actually
  2511. 2:15:42flow
  2512. 2:15:45through this connection.
  2513. 2:15:49So, we would like to have it we would
  2514. 2:15:51like to have this
  2515. 2:15:54connection as good as possible
  2516. 2:15:59to handle this
  2517. 2:16:01higher current.
  2518. 2:16:05The standard USB
  2519. 2:16:07uh
  2520. 2:16:10is uh you know, the one that you have on
  2521. 2:16:12the on the PC is usually only half amp,
  2522. 2:16:15but this USB-C
  2523. 2:16:17especially with this power delivery
  2524. 2:16:22capabilities,
  2525. 2:16:23it can go up to 3 amps or it can go up
  2526. 2:16:26to 5 amps
  2527. 2:16:29based on the power adapter what you are
  2528. 2:16:31using.
  2529. 2:16:37Just draw it around all the pads.
  2530. 2:16:41You can do it exactly the same way as I
  2531. 2:16:43do it.
  2532. 2:16:49And it's almost finished. This is the
  2533. 2:16:51biggest one.
  2534. 2:17:00Okay.
  2535. 2:17:05Make sure it is connected to the USB
  2536. 2:17:07power.
  2537. 2:17:11Okay.
  2538. 2:17:14And uh we will make a few adjustments,
  2539. 2:17:17so I'm going to change the grid to
  2540. 2:17:19smaller one.
  2541. 2:17:21And select the polygon
  2542. 2:17:24and just
  2543. 2:17:27move the edges of the polygon.
  2544. 2:17:36Maybe I can move it like this.
  2545. 2:17:44Okay.
  2546. 2:17:49Looks good.
  2547. 2:17:54Maybe here I would like to
  2548. 2:17:57make it just around the pad.
  2549. 2:18:07>> Rebuild.
  2550. 2:18:10And don't forget to go back to 5 mil
  2551. 2:18:12grid.
  2552. 2:18:15Save.
  2553. 2:18:17We are going to learn something useful.
  2554. 2:18:19Watch this polygon.
  2555. 2:18:22The copper of this polygon is little bit
  2556. 2:18:24deeper because it's influenced by this
  2557. 2:18:25ground polygon.
  2558. 2:18:27If you go to tools, copper manager, you
  2559. 2:18:30can actually change the priority
  2560. 2:18:32of the polygons. So, this one is on the
  2561. 2:18:34top currently.
  2562. 2:18:36This one is on the bottom, and I'm going
  2563. 2:18:38to move it up.
  2564. 2:18:40Okay. So, watch what's going to happen.
  2565. 2:18:44So, first the
  2566. 2:18:45USB
  2567. 2:18:47uh power polygon is created, and then
  2568. 2:18:48the ground polygon is created.
  2569. 2:18:53Now, if you would like to have direct
  2570. 2:18:54connection here, I don't want to use
  2571. 2:18:56this virus.
  2572. 2:18:57So, I'm going to add a new rule
  2573. 2:19:01for the connection
  2574. 2:19:04of the region.
  2575. 2:19:06And for single layer path, and also
  2576. 2:19:08multi layer path,
  2577. 2:19:09I will set it as direct.
  2578. 2:19:12And then, when we go to these net rules,
  2579. 2:19:16copper zone,
  2580. 2:19:18we will find the USB power, and we will
  2581. 2:19:20use this rule.
  2582. 2:19:23Okay.
  2583. 2:19:24Now,
  2584. 2:19:25select it, and
  2585. 2:19:27redraw.
  2586. 2:19:29And now it has direct connection.
  2587. 2:19:36Okay.
  2588. 2:19:39We are going to check the connections on
  2589. 2:19:40the inner layers. For example, this is
  2590. 2:19:42very thin. Also, this one.
  2591. 2:19:46Or very narrow.
  2592. 2:19:48So, I'm going to change. This time is
  2593. 2:19:50going to be plane rule.
  2594. 2:19:53We will keep it uh as spoke, but we will
  2595. 2:19:56make it wider. 20 mils.
  2596. 2:19:59Confirm, select, and of course rebuild.
  2597. 2:20:02Watch what's going to happen. It is
  2598. 2:20:04wider. Perfect. Also, do it for the
  2599. 2:20:07layer three. Rebuild.
  2600. 2:20:09And it's wider.
  2601. 2:20:12Okay.
  2602. 2:20:16As I mentioned before, we would like to
  2603. 2:20:17use 50 ohm impedance, which is 6.1
  2604. 2:20:22mil trace width for all the other
  2605. 2:20:25digital tracks. So, this one is 6.1, but
  2606. 2:20:27this one is
  2607. 2:20:2810 mils. See?
  2608. 2:20:31So, right click,
  2609. 2:20:33find,
  2610. 2:20:35find all the tracks
  2611. 2:20:38with 10 mils
  2612. 2:20:40width. Okay.
  2613. 2:20:42And find all.
  2614. 2:20:47You should see all these 10 mil tracks
  2615. 2:20:49selected.
  2616. 2:20:52And simply just go here and change the
  2617. 2:20:55width to be 6.1 mil.
  2618. 2:20:57So, this way,
  2619. 2:20:59watch what's going to happen. This way,
  2620. 2:21:01we actually change the all the tracks to
  2621. 2:21:03be 50 ohm impedance, all the digital
  2622. 2:21:06tracks.
  2623. 2:21:08Except the USB. See? USB is still 6.2
  2624. 2:21:13for 90 ohm differential pair impedance.
  2625. 2:21:16We finished the layout. We connected
  2626. 2:21:18everything, but we still would like to
  2627. 2:21:20maybe do some adjustments in silkscreen.
  2628. 2:21:23Silkscreen is usually the white color on
  2629. 2:21:25your
  2630. 2:21:27and usually there are like designators
  2631. 2:21:29and text and some notes.
  2632. 2:21:31So, first I'm going to enable designator
  2633. 2:21:33of this USB C connector.
  2634. 2:21:38You can see it is called J1.
  2635. 2:21:40And I'm going to double-check what are
  2636. 2:21:42the capabilities for silkscreen
  2637. 2:21:45when the PCB is manufactured in JLCPCB.
  2638. 2:21:50So, minimum line width and minimum text
  2639. 2:21:52to height
  2640. 2:21:536 and 40 mils.
  2641. 2:21:56So, I'm just checking 6 and 45. It's
  2642. 2:22:00okay, they can manufacture it.
  2643. 2:22:02Uh but we can make it a little bit
  2644. 2:22:04bigger, okay? 40 is very small.
  2645. 2:22:08So, I I'm going to use
  2646. 2:22:1280 mils and I'm going to place it like
  2647. 2:22:14this.
  2648. 2:22:16Same for this uh
  2649. 2:22:18output connector.
  2650. 2:22:21I'm going to enable the designator and
  2651. 2:22:23I'm going to make it a little bit
  2652. 2:22:24bigger, 80 mils.
  2653. 2:22:28And maybe place it
  2654. 2:22:31somewhere here, so it looks nice.
  2655. 2:22:42Next, we are going to work only on the
  2656. 2:22:46silkscreen layer and I'm going to
  2657. 2:22:48add
  2658. 2:22:51the description for the LEDs.
  2659. 2:22:54So, you can use exactly same
  2660. 2:22:59size of the text and same parameters of
  2661. 2:23:02the text. I'm going to change this
  2662. 2:23:07to center bottom because then it will be
  2663. 2:23:08easier to
  2664. 2:23:10align the text with the LEDs.
  2665. 2:23:17Check the position.
  2666. 2:23:19I'm going to copy it from the middle of
  2667. 2:23:21the LED
  2668. 2:23:23and place it on the other LEDs.
  2669. 2:23:33Okay. And now when we adjust the text,
  2670. 2:23:36it will be
  2671. 2:23:38correctly centered.
  2672. 2:23:44This one is going to be 20 volts and the
  2673. 2:23:46last one is 28.
  2674. 2:23:59Okay, be sure this correct, okay? I'm
  2675. 2:24:01selecting this LED and just
  2676. 2:24:03double-checking
  2677. 2:24:05if the description of the LED is
  2678. 2:24:07correct.
  2679. 2:24:13Okay, perfect.
  2680. 2:24:20Now,
  2681. 2:24:22copy
  2682. 2:24:23and just paste somewhere.
  2683. 2:24:27I'm going to put here
  2684. 2:24:30text output
  2685. 2:24:33voltage.
  2686. 2:24:37So, everyone understand what these LEDs
  2687. 2:24:40are about.
  2688. 2:24:47Okay.
  2689. 2:24:54What else?
  2690. 2:24:58Maybe we can put there more nodes. For
  2691. 2:25:00example, we can put here a node like
  2692. 2:25:02input
  2693. 2:25:13Okay. And then output on the second
  2694. 2:25:17connector.
  2695. 2:25:18And we do it because
  2696. 2:25:20everyone who is using your boards, they
  2697. 2:25:22should be able to use them
  2698. 2:25:24without actually looking into manual.
  2699. 2:25:26So, if you can add
  2700. 2:25:28information which is useful for everyone
  2701. 2:25:31who is using your board,
  2702. 2:25:33just add these nodes, add this text.
  2703. 2:25:43Okay.
  2704. 2:25:50Let's have a look.
  2705. 2:25:52Cool.
  2706. 2:25:55We are going to add some information
  2707. 2:25:57about these switches. There is a lot of
  2708. 2:25:59empty space.
  2709. 2:26:01So, first
  2710. 2:26:03I'm going to
  2711. 2:26:06make it clear
  2712. 2:26:09where are the switches.
  2713. 2:26:14So, I will just place the text
  2714. 2:26:17here.
  2715. 2:26:20And uh
  2716. 2:26:23we would like to also
  2717. 2:26:25tell everyone
  2718. 2:26:28which side of the switches is zero and
  2719. 2:26:30which one is one.
  2720. 2:26:33So, when the switch is uh
  2721. 2:26:36in the bottom position, then
  2722. 2:26:39it is zero.
  2723. 2:26:43And when the switch is
  2724. 2:26:46in the top position, it is one.
  2725. 2:26:51Because on the switch itself, it says
  2726. 2:26:53on. On the top, it says on. That's why I
  2727. 2:26:56use one on the top.
  2728. 2:26:59Okay.
  2729. 2:27:02And now, we need to add the table which
  2730. 2:27:04describes the position of the switches
  2731. 2:27:07and the selected voltage.
  2732. 2:27:09So, again, we are doing this
  2733. 2:27:11because
  2734. 2:27:13people should be able to use
  2735. 2:27:16our board without looking into manual.
  2736. 2:27:20So, ideally, we would like to put all
  2737. 2:27:22the information about the switches and
  2738. 2:27:25the selected voltage directly on the
  2739. 2:27:26board.
  2740. 2:27:29It's very simple to do. We have a lot of
  2741. 2:27:30space on the board.
  2742. 2:27:32So, why not?
  2743. 2:27:39Okay.
  2744. 2:27:43So, this is going to be switch one,
  2745. 2:27:51switch
  2746. 2:27:53two,
  2747. 2:27:59and switch three.
  2748. 2:28:07This is the output voltage.
  2749. 2:28:16Okay.
  2750. 2:28:26Now,
  2751. 2:28:30we have to put here all the ones and
  2752. 2:28:33zeros.
  2753. 2:28:44So, first I will prepare this.
  2754. 2:28:48Here, I'm going to copy it for
  2755. 2:28:50every single line, for every single
  2756. 2:28:52voltage.
  2757. 2:28:54And then we will change everything
  2758. 2:28:57at once.
  2759. 2:29:08Okay.
  2760. 2:29:09Go to schematic.
  2761. 2:29:14Put here all the voltages.
  2762. 2:29:2520
  2763. 2:29:2728
  2764. 2:29:31And now,
  2765. 2:29:33be very careful. This is actually not
  2766. 2:29:35one. This is zero, okay? And this is not
  2767. 2:29:38zero, this is one. So, for 5 volts, we
  2768. 2:29:41need to put here 0 0 0.
  2769. 2:29:44And the reason why it is this way is
  2770. 2:29:46because of how I mark uh the zero and
  2771. 2:29:51one position of the switches, okay?
  2772. 2:29:54So, we have to put it this way on the
  2773. 2:29:58silk screen of our board.
  2774. 2:30:00So, for this one is going to be 1 1 0.
  2775. 2:30:07And for this one is going to be 0 1 0 0.
  2776. 2:30:18Okay, and the last one is 1 0 1.
  2777. 2:30:29Okay.
  2778. 2:30:35Now, here we would like to see what is
  2779. 2:30:37plus and what is minus.
  2780. 2:30:39So,
  2781. 2:30:41very simply, I'm going to add big
  2782. 2:30:44plus
  2783. 2:30:46here.
  2784. 2:30:48You know, when you are connecting wires,
  2785. 2:30:49you would like to clearly see which of
  2786. 2:30:52the pins is plus and which one is minus.
  2787. 2:30:55This why we would like to put this
  2788. 2:30:57information directly on the PCB.
  2789. 2:31:01We still have some space there.
  2790. 2:31:05So, this one is minus.
  2791. 2:31:10Okay.
  2792. 2:31:13And let's have a look.
  2793. 2:31:16Very cool.
  2794. 2:31:19Now, this LED,
  2795. 2:31:21uh we would like to put also some
  2796. 2:31:22information about the LED on the board.
  2797. 2:31:27So, you know, it is error LED, so I'm
  2798. 2:31:31going to put here
  2799. 2:31:35error text.
  2800. 2:31:38So, everyone knows when this is on,
  2801. 2:31:41there is something wrong.
  2802. 2:31:45And we will explain what the problem is,
  2803. 2:31:47okay? So, I'm going to put here more
  2804. 2:31:49text.
  2805. 2:31:51And I'm going to explain
  2806. 2:31:54check if your
  2807. 2:32:04power adapter supports PD, okay?
  2808. 2:32:09So, copy this and continue.
  2809. 2:32:12Check if
  2810. 2:32:18Oops.
  2811. 2:32:24Check if
  2812. 2:32:28USB-C
  2813. 2:32:30adapter
  2814. 2:32:36supports
  2815. 2:32:38PD.
  2816. 2:32:45Okay.
  2817. 2:32:47Perfect.
  2818. 2:32:59Now, let's uh add also some information
  2819. 2:33:02on the bottom side of our
  2820. 2:33:04PCB. So, I'm going to enable this
  2821. 2:33:06designator, but it is mirrored, see? So,
  2822. 2:33:09go to view and flip board. So, this is
  2823. 2:33:12the way how you can see the bottom side
  2824. 2:33:14of your PCB.
  2825. 2:33:16Now, the text is correct.
  2826. 2:33:19And I'm going to double-check what is
  2827. 2:33:21the size, what we use on the top.
  2828. 2:33:24And we will use the same here.
  2829. 2:33:28So, this is J3
  2830. 2:33:30connector or J3 header.
  2831. 2:33:34And uh also, we could add information
  2832. 2:33:36about the pins.
  2833. 2:33:38We have a lot of space there.
  2834. 2:33:40So, again, I'm going to
  2835. 2:33:43use uh some of the text what we already
  2836. 2:33:45have on the top. I'm going to copy it,
  2837. 2:33:48paste it,
  2838. 2:33:49and I'm going to place it on the bottom
  2839. 2:33:52silkscreen.
  2840. 2:33:54Okay?
  2841. 2:33:57Now,
  2842. 2:33:59maybe place it like this.
  2843. 2:34:03This is the clock.
  2844. 2:34:08Okay?
  2845. 2:34:14Make it look nice.
  2846. 2:34:17Copy,
  2847. 2:34:20paste.
  2848. 2:34:23This one is ground.
  2849. 2:34:26That's the middle pin.
  2850. 2:34:33And this is These are the data.
  2851. 2:34:36So, when someone is using this header,
  2852. 2:34:39they will immediately know
  2853. 2:34:42what are these pins. Again, they don't
  2854. 2:34:44have to use manual, they don't have to
  2855. 2:34:46look into schematic.
  2856. 2:34:47They just will know from the PCB.
  2857. 2:34:53Next, we would like to add some
  2858. 2:34:55information about the board itself.
  2859. 2:34:58Because sometimes you may have multiple
  2860. 2:35:00versions of the board, multiple similar
  2861. 2:35:03boards.
  2862. 2:35:04So,
  2863. 2:35:05you would like to put the name of the
  2864. 2:35:07board
  2865. 2:35:09on the silkscreen
  2866. 2:35:13together with the version of the board.
  2867. 2:35:15Okay? So, this is USB-C
  2868. 2:35:19advanced
  2869. 2:35:28power supply
  2870. 2:35:30version 1 issue 0.
  2871. 2:35:34Okay?
  2872. 2:35:39And
  2873. 2:35:41maybe you would like to also add
  2874. 2:35:42copyright or information about your
  2875. 2:35:45company. So, I'm going to put here
  2876. 2:35:48Fedevel
  2877. 2:35:502026.
  2878. 2:35:55Okay?
  2879. 2:35:59Very important, don't forget
  2880. 2:36:02about this.
  2881. 2:36:10I'm going to save everything.
  2882. 2:36:14I'm going to remove this space.
  2883. 2:36:18And uh
  2884. 2:36:20what else we are going to add?
  2885. 2:36:22Some advertisement.
  2886. 2:36:26You know, because
  2887. 2:36:27I'm doing these tutorials also,
  2888. 2:36:31you know, to promote a little bit our
  2889. 2:36:33company and what we do.
  2890. 2:36:36So, if you would like to learn more
  2891. 2:36:38about how to design boards, we actually
  2892. 2:36:41have website with online courses,
  2893. 2:36:44all the kind of uh
  2894. 2:36:46different courses from Altium
  2895. 2:36:48through KiCad, Cadence.
  2896. 2:36:51Uh the courses are for beginners, also
  2897. 2:36:54for senior engineers,
  2898. 2:36:56about all the kind of topics. Uh
  2899. 2:36:58from like learning the basics, uh how to
  2900. 2:37:03use different tools, up to EMC or
  2901. 2:37:06measurements, and you know, very
  2902. 2:37:09advanced topics like signal integrity.
  2903. 2:37:12So, don't forget, if you would like to
  2904. 2:37:14learn more about electronics, then you
  2905. 2:37:17can go on our website.
  2906. 2:37:20Do you know what is our website?
  2907. 2:37:22www.federal.com
  2908. 2:37:26Thank you very much.
  2909. 2:37:30Okay.
  2910. 2:37:33Let's have a look.
  2911. 2:37:35Cool.
  2912. 2:37:38And there is this big empty space. We
  2913. 2:37:40are going to put logo here.
  2914. 2:37:46Mhm.
  2915. 2:37:48I need to move this little bit because
  2916. 2:37:50maybe it's not very symmetrical.
  2917. 2:37:53I will just move it little bit up.
  2918. 2:38:00Mhm. I think this is better. Let's have
  2919. 2:38:03a look.
  2920. 2:38:07Okay, little bit better.
  2921. 2:38:16Now, this is the picture with our logo.
  2922. 2:38:19It is very simple picture.
  2923. 2:38:21This one is black and no background, but
  2924. 2:38:23you can also use black and white.
  2925. 2:38:26Place image.
  2926. 2:38:29Just select the image. Open.
  2927. 2:38:32Uh leave this.
  2928. 2:38:35Set the size.
  2929. 2:38:37Click here. This is very important.
  2930. 2:38:39Okay. And confirm. And this is basically
  2931. 2:38:41the way how you can add any picture
  2932. 2:38:45on your board.
  2933. 2:38:48I'm going to double check if it's in
  2934. 2:38:50center. I'm going to move it a little
  2935. 2:38:52bit maybe.
  2936. 2:38:55Like this.
  2937. 2:39:00And
  2938. 2:39:02let's have a look.
  2939. 2:39:07Super cool. very nice.
  2940. 2:39:13And I'm going to teach you one more
  2941. 2:39:14trick.
  2942. 2:39:15We are going to again add logo,
  2943. 2:39:18but
  2944. 2:39:20special logo, gold logo.
  2945. 2:39:24We are going to place it here on the top
  2946. 2:39:26layer.
  2947. 2:39:27Oh, you have to place it where the
  2948. 2:39:28copper is,
  2949. 2:39:30but we are going to basically do it
  2950. 2:39:33through this top solder mask layer.
  2951. 2:39:36So, again, I'm going to use same image.
  2952. 2:39:39And here on the
  2953. 2:39:41top of the copper, we are going to place
  2954. 2:39:44very small
  2955. 2:39:46logo.
  2956. 2:39:48And
  2957. 2:39:51where the logo is, the
  2958. 2:39:54solder mask is going to be removed. The
  2959. 2:39:57color of the PCB is going to be removed.
  2960. 2:39:59In this case, it is the blue color.
  2961. 2:40:03But uh normally it's the green color
  2962. 2:40:05which is removed. And if your
  2963. 2:40:08board, if you use the ENIG finish, the
  2964. 2:40:10gold finish, then this logo is going to
  2965. 2:40:12be gold.
  2966. 2:40:14It's going to look very, very nice, very
  2967. 2:40:16cool.
  2968. 2:40:19So, if you would like to have gold logo
  2969. 2:40:20on your PCB, this is the way how you do
  2970. 2:40:22it, okay? Just remove the solder mask
  2971. 2:40:24from the area.
  2972. 2:40:26And be sure there is copper
  2973. 2:40:28in this area.
  2974. 2:40:31I'm going to add information about
  2975. 2:40:33license because, you know, this is very
  2976. 2:40:35important.
  2977. 2:40:38Just copy and paste. I already have it
  2978. 2:40:40prepared.
  2979. 2:40:45I will just adjust the size and font.
  2980. 2:40:53Okay.
  2981. 2:40:57And save.
  2982. 2:41:02There is uh this one which keeps
  2983. 2:41:04bothering me. I would like to make this
  2984. 2:41:06ground plane a little bit bigger and put
  2985. 2:41:09there
  2986. 2:41:10maybe a little bit more vias because the
  2987. 2:41:12chip is very very small
  2988. 2:41:15and you know the
  2989. 2:41:16input voltage is 28 volts.
  2990. 2:41:20Um
  2991. 2:41:22maybe it can get hot.
  2992. 2:41:25So,
  2993. 2:41:27I would like to put there more vias to
  2994. 2:41:29help the heat dissipate
  2995. 2:41:32away from the chip.
  2996. 2:41:34I'm not sure how hot it can get, but you
  2997. 2:41:36know, we have a lot of space around the
  2998. 2:41:38chip, so we can add
  2999. 2:41:40more vias.
  3000. 2:41:41We can We can make this ground plane
  3001. 2:41:44a little bit bigger. So, why not?
  3002. 2:41:48Okay.
  3003. 2:41:50We need to assign the net names
  3004. 2:41:52to these
  3005. 2:41:54vias.
  3006. 2:42:01And then we have to redraw the
  3007. 2:42:04copper.
  3008. 2:42:05I need to move the little bit away.
  3009. 2:42:11Okay.
  3010. 2:42:13I'm going to delete the old
  3011. 2:42:18rectangle,
  3012. 2:42:20old copper pour.
  3013. 2:42:23Just delete it and I'm going to draw a
  3014. 2:42:26new one.
  3015. 2:42:29Um top layer
  3016. 2:42:31copper region polygon.
  3017. 2:42:34And I'm going to draw it around these
  3018. 2:42:35vias.
  3019. 2:42:44Always when you think a component may
  3020. 2:42:46get hot,
  3021. 2:42:48then try to find a way how to
  3022. 2:42:51put there maybe bigger
  3023. 2:42:53copper or more vias in case you have a
  3024. 2:42:56ground planes, big ground planes inside
  3025. 2:42:58of your PCB,
  3026. 2:43:00then these ground vias can take heat
  3027. 2:43:03away
  3028. 2:43:04and bring it into these big ground
  3029. 2:43:07planes. It's very helpful.
  3030. 2:43:10It helps a lot. You will be surprised. I
  3031. 2:43:12remember uh
  3032. 2:43:15once I had like four ground planes
  3033. 2:43:17inside of my PCB and I forgot to set the
  3034. 2:43:21thermal thermal relief.
  3035. 2:43:24That's the star connection
  3036. 2:43:26of the
  3037. 2:43:28through-hole pins,
  3038. 2:43:30which we adjusted before. You remember
  3039. 2:43:32it?
  3040. 2:43:33I forgot to make these thermal relief on
  3041. 2:43:36ground pins and it was extremely hard to
  3042. 2:43:39solder down all the ground through-hole
  3043. 2:43:42pins because there were four ground
  3044. 2:43:44planes inside of the PCB.
  3045. 2:43:50Okay, now I'm happy.
  3046. 2:44:03Don't forget to change the grid size
  3047. 2:44:05back to 10 mils.
  3048. 2:44:07And also double-check if there are no
  3049. 2:44:09errors.
  3050. 2:44:11Basically, we are finished.
  3051. 2:44:15Uh and before generating the output
  3052. 2:44:17outputs for manufacturing, we need to be
  3053. 2:44:20sure everything is correct. So, what we
  3054. 2:44:22are going to do, we are going to rerun
  3055. 2:44:25the RC check for schematic. There are no
  3056. 2:44:28errors, just this one warning, but it is
  3057. 2:44:30okay.
  3058. 2:44:31We are going to be sure that the
  3059. 2:44:34schematic and PCB are synchronized. So,
  3060. 2:44:36run this update PCB.
  3061. 2:44:39Perfect, no changes.
  3062. 2:44:41Uh now, in PCB,
  3063. 2:44:44we would like to
  3064. 2:44:45rebuild all the polygons.
  3065. 2:44:48We would like to rebuild the
  3066. 2:44:51ground planes inside of our PCB.
  3067. 2:44:57And
  3068. 2:44:59we would like to read on DRC
  3069. 2:45:02on PCB.
  3070. 2:45:06Okay, everything seems to be fine.
  3071. 2:45:08So, we can lock our board.
  3072. 2:45:14Go to export.
  3073. 2:45:17Gerber files.
  3074. 2:45:20Now, export Gerber.
  3075. 2:45:26Continue.
  3076. 2:45:30And this is the file what we have
  3077. 2:45:32generated.
  3078. 2:45:33Okay, these are the files which are
  3079. 2:45:35needed to manufacture our PCB.
  3080. 2:45:39I'm going to
  3081. 2:45:40make temporary
  3082. 2:45:43directory and we are going to
  3083. 2:45:44double-check these uh files.
  3084. 2:45:47So, go and search for ViewMate. This is
  3085. 2:45:49what I use
  3086. 2:45:51to check Gerber files. It is free
  3087. 2:45:53software.
  3088. 2:45:55You can just uh download it here and
  3089. 2:45:58install it
  3090. 2:45:59on your PC.
  3091. 2:46:02Once you run it, this is how it looks.
  3092. 2:46:06Go to file, import Gerber.
  3093. 2:46:11Okay, I'm going to
  3094. 2:46:13open the directory with the files what
  3095. 2:46:16we just generated.
  3096. 2:46:19And we are going to
  3097. 2:46:21import these Gerber files. I'm going to
  3098. 2:46:24order them by name.
  3099. 2:46:27We are going to import them into this
  3100. 2:46:29software.
  3101. 2:46:30Click on the next layer and import also
  3102. 2:46:33drill files.
  3103. 2:46:35So, these are the drill files. Import.
  3104. 2:46:39Switch off everything.
  3105. 2:46:41Switch on the board outline layer.
  3106. 2:46:44And one by one
  3107. 2:46:46double check every layer.
  3108. 2:46:49So,
  3109. 2:46:51you can very nicely see the mask and
  3110. 2:46:53paste layers.
  3111. 2:46:56You can see the silk screen,
  3112. 2:46:59top layer. Everything seems to be fine.
  3113. 2:47:05This is the It is inside of the board.
  3114. 2:47:10So, the mask layer is the green color or
  3115. 2:47:12blue color or red color. Silk screen is
  3116. 2:47:15the white color on the PCB.
  3117. 2:47:18And paste paste layer is the layer
  3118. 2:47:22which is used
  3119. 2:47:24uh for the solder paste for the SMD
  3120. 2:47:28components.
  3121. 2:47:30Okay, everything seems to be fine.
  3122. 2:47:33Here are also the
  3123. 2:47:36drilling uh
  3124. 2:47:38Here is the drilling information.
  3125. 2:47:41So, these are the vias.
  3126. 2:47:43These are all the holes.
  3127. 2:47:46These are not plated. Not plated it
  3128. 2:47:47means there is no copper inside of these
  3129. 2:47:49holes.
  3130. 2:47:54Perfect. It looks good.
  3131. 2:47:59So,
  3132. 2:48:00we can actually delete this directory
  3133. 2:48:03temporary direct directory.
  3134. 2:48:05We don't need it anymore.
  3135. 2:48:07These are the file This is the file what
  3136. 2:48:08we will need for manufacturing.
  3137. 2:48:11Next, export bill of material. So, this
  3138. 2:48:14is the next file what you need to
  3139. 2:48:16manufacture your board.
  3140. 2:48:20Be sure it is set uh same way as I have
  3141. 2:48:23it here.
  3142. 2:48:25Export BOM.
  3143. 2:48:27So, BOM is bill of material. It is list
  3144. 2:48:30of all the components which are used
  3145. 2:48:33on your board. When we open it,
  3146. 2:48:37this is how it looks.
  3147. 2:48:41Okay.
  3148. 2:48:42You can see these are all the
  3149. 2:48:43components.
  3150. 2:48:45Uh and here is the side of the PCB where
  3151. 2:48:48these components are used. You can see
  3152. 2:48:51uh these are all the fitted components.
  3153. 2:48:54When we double-check, this is unfitted
  3154. 2:48:56R8, R9,
  3155. 2:48:58R7. These are unfitted.
  3156. 2:49:01But uh because we marked them, they are
  3157. 2:49:03not fitted, they are not included in
  3158. 2:49:05this bomb. See? The perfect.
  3159. 2:49:10So, this bomb was correctly generated.
  3160. 2:49:16Okay?
  3161. 2:49:18And there is one more file, pick and
  3162. 2:49:20place file.
  3163. 2:49:22Again, use exactly same settings what I
  3164. 2:49:24have here.
  3165. 2:49:27Click on export.
  3166. 2:49:29This file is used for the machine which
  3167. 2:49:31is placing the SMT components.
  3168. 2:49:34So, this is the file what we generated.
  3169. 2:49:37And uh here are all the components
  3170. 2:49:40and the position on the PCB. Okay? So,
  3171. 2:49:43based on this,
  3172. 2:49:44the machine will know
  3173. 2:49:47where to place the components. We only
  3174. 2:49:49we are only going to place the
  3175. 2:49:50components on the top side.
  3176. 2:49:55And only the components which are fitted
  3177. 2:49:57in bomb. So,
  3178. 2:50:00I'm going to remove all the components
  3179. 2:50:02which are on the bottom. That's the
  3180. 2:50:04header or the connector for I2C. And I'm
  3181. 2:50:07going to remove or delete all the
  3182. 2:50:09components which are not in the bomb.
  3183. 2:50:15Okay?
  3184. 2:50:18Delete.
  3185. 2:50:22Save. And I'm going to call this
  3186. 2:50:26top only.
  3187. 2:50:29Save.
  3188. 2:50:31Close.
  3189. 2:50:34So, these are the files what we need to
  3190. 2:50:37manufacture our board.
  3191. 2:50:40Go to JLCPCB website.
  3192. 2:50:46Click on instant quote.
  3193. 2:50:52And I'm going to
  3194. 2:50:54drag and drop the Gerber files here.
  3195. 2:51:05So, this is our board. This is the top
  3196. 2:51:07and bottom side.
  3197. 2:51:10Four layers.
  3198. 2:51:14Um
  3199. 2:51:15I would like to use red.
  3200. 2:51:17Watch what's going to happen. The price
  3201. 2:51:19is going to be increased. So, if you
  3202. 2:51:21would like to keep price low, just use
  3203. 2:51:23the green one.
  3204. 2:51:26And ENIG, that's the gold layer
  3205. 2:51:29on the PCB, okay?
  3206. 2:51:31This is what will make our logo gold,
  3207. 2:51:33but it is kind of expensive.
  3208. 2:51:39Uh
  3209. 2:51:40okay, because we are using uh
  3210. 2:51:44which stack-up?
  3211. 2:51:463313 stack-up. So, we have to select it
  3212. 2:51:49here.
  3213. 2:51:52Confirm.
  3214. 2:51:56Um layer sequence should be okay.
  3215. 2:51:59We'll then double-check it later.
  3216. 2:52:05Remove mark, okay.
  3217. 2:52:09Everything else here looks okay.
  3218. 2:52:14Um we don't have to do anything here.
  3219. 2:52:17Now, PCB assembly. So, this is all about
  3220. 2:52:19the components.
  3221. 2:52:21So, we would like to place components on
  3222. 2:52:22top side of our board.
  3223. 2:52:26Confirm placement. I always do this
  3224. 2:52:29because
  3225. 2:52:30uh
  3226. 2:52:32I would like to be sure they will feed
  3227. 2:52:33all the components correctly.
  3228. 2:52:39Okay. Next.
  3229. 2:52:44Next.
  3230. 2:52:45Now, we need to upload the bomb bill of
  3231. 2:52:48material.
  3232. 2:52:50So, drag and drop it here.
  3233. 2:52:54And also pick and place file.
  3234. 2:52:58So, this one, top only.
  3235. 2:53:02Next.
  3236. 2:53:07Okay, they have all the components. This
  3237. 2:53:09is perfect. If they don't have all the
  3238. 2:53:11components, don't worry. You can just
  3239. 2:53:13buy them in your standard supplier and
  3240. 2:53:16then solder these components later when
  3241. 2:53:18you receive the boards. Okay? Don't
  3242. 2:53:20worry.
  3243. 2:53:22You can see some of the components are
  3244. 2:53:25not fitted, so that's correct.
  3245. 2:53:29And this is the final price.
  3246. 2:53:31I'm going to
  3247. 2:53:34put here a note what is this board
  3248. 2:53:36about. They usually use this for
  3249. 2:53:38customs. So, you need to put here this
  3250. 2:53:41information.
  3251. 2:53:45And you can have a look. So, this is the
  3252. 2:53:47PCB price. This is the assembly price.
  3253. 2:53:50This includes also the component price.
  3254. 2:53:53So, there is setup fee,
  3255. 2:53:55uh stencil,
  3256. 2:53:57components feeders, all the kind of uh
  3257. 2:54:00fees. If you
  3258. 2:54:03if you don't want to pay for the
  3259. 2:54:04assembly, you can buy all the components
  3260. 2:54:06by yourself and then you can save a lot
  3261. 2:54:08of money. Uh let's double check our
  3262. 2:54:11order. So, first I'm going to click on
  3263. 2:54:13this edit order.
  3264. 2:54:16And we can go to this Gerber viewer.
  3265. 2:54:20Just to be sure these Gerber files were
  3266. 2:54:24correctly loaded.
  3267. 2:54:27We can go to these layers which have
  3268. 2:54:29everything.
  3269. 2:54:32And double check it.
  3270. 2:54:34Uh
  3271. 2:54:35when I when I say that you can save a
  3272. 2:54:37lot of money on the assembly
  3273. 2:54:40I mean you still have to pay for the
  3274. 2:54:43components itself, but you don't have to
  3275. 2:54:45pay the you know set up fees and feeder
  3276. 2:54:48fees and some extra charges. So you can
  3277. 2:54:51save some money if you if you uh
  3278. 2:54:55assemble the board by yourself.
  3279. 2:54:57Uh
  3280. 2:54:58and if you buy the green PCB, then it
  3281. 2:55:01may be it will be much cheaper than what
  3282. 2:55:03you see
  3283. 2:55:04what I have here.
  3284. 2:55:07Okay.
  3285. 2:55:09You can double check also the settings
  3286. 2:55:12on the PCB and also all the settings for
  3287. 2:55:14the
  3288. 2:55:17and the components. It is list of the
  3289. 2:55:19components. This is the placement.
  3290. 2:55:22Everything seems to be fine.
  3291. 2:55:24Select maze and we can order our boards.
  3292. 2:55:27So click here.
  3293. 2:55:32Continue.
  3294. 2:55:37I'm going to use DHL, but you can use
  3295. 2:55:39also this. It's uh cheaper.
  3296. 2:55:45But it takes longer.
  3297. 2:55:50Okay, there are some coupons. So if you
  3298. 2:55:52like, you can apply one of these
  3299. 2:55:55coupons. Why not?
  3300. 2:55:58And let's pay.
  3301. 2:56:03Once you pay, then you can
  3302. 2:56:04always check uh status of your order
  3303. 2:56:08here.
  3304. 2:56:13Now, what you can do, you can save this
  3305. 2:56:15as a new version
  3306. 2:56:17in case you need to go back and check
  3307. 2:56:20what you sent to production, you can
  3308. 2:56:21always go and open this specific
  3309. 2:56:23version.
  3310. 2:56:25So, don't forget if some of the
  3311. 2:56:26components are missing, you can just go
  3312. 2:56:28to your supplier like Digikey,
  3313. 2:56:31Mouser,
  3314. 2:56:32or
  3315. 2:56:33Farnell, and you can buy the components
  3316. 2:56:36and fit them a little bit later after
  3317. 2:56:38you receive your board.
  3318. 2:56:41Do you remember when we were ordering
  3319. 2:56:43PCB, we checked the checkbox to let us
  3320. 2:56:46know
  3321. 2:56:47to confirm the component placement?
  3322. 2:56:51So, that's what we are going to do now.
  3323. 2:56:54And this is very useful because
  3324. 2:56:55initially the component placement is not
  3325. 2:56:58correct. Uh you don't have to correct it
  3326. 2:57:00by yourself. Just leave it to them, and
  3327. 2:57:02then ask them after they make the
  3328. 2:57:04corrections, ask them to send you this
  3329. 2:57:06notification, and then you can just
  3330. 2:57:08double check if the component placement
  3331. 2:57:10is correct. And they always make it
  3332. 2:57:13good. I never had problems with this
  3333. 2:57:15component placement
  3334. 2:57:17after they check it.
  3335. 2:57:20So, we can just confirm confirm this.
  3336. 2:57:24And basically, everything is ready.
  3337. 2:57:31After 10 days, I received this package.
  3338. 2:57:37And let's have a look what is inside.
  3339. 2:57:41Our boards!
  3340. 2:57:42Cool!
  3341. 2:57:45So, remove the panel.
  3342. 2:57:51And let's have a look.
  3343. 2:57:54So nice. Really, really nice.
  3344. 2:57:58This is the back side.
  3345. 2:58:04Okay?
  3346. 2:58:06Double check the soldering. Okay, be
  3347. 2:58:08sure
  3348. 2:58:09everything is soldered correctly, there
  3349. 2:58:12are no short circuits,
  3350. 2:58:15quality of the soldering is okay.
  3351. 2:58:18Double check the unfitted components.
  3352. 2:58:20Double check pin one position
  3353. 2:58:22on the chips.
  3354. 2:58:26Remove this foil.
  3355. 2:58:28And be sure all the switches are in the
  3356. 2:58:31bottom position.
  3357. 2:58:33Now, I'm going to use this uh, special
  3358. 2:58:35device.
  3359. 2:58:37I've got it from NextPCB as a present,
  3360. 2:58:39but you can buy it on Amazon.
  3361. 2:58:41It's very, very useful device, okay? It
  3362. 2:58:43will show you the
  3363. 2:58:45voltage and current uh, going through
  3364. 2:58:48the USB.
  3365. 2:58:49And it works. 5 volts
  3366. 2:58:51and the LED is 5 volts and the current
  3367. 2:58:54is really, really minimal. So,
  3368. 2:58:56everything seems to be fine.
  3369. 2:58:58I'm going to double check
  3370. 2:59:00the output voltage from the regulator,
  3371. 2:59:023.3 volts, and the input voltage on the
  3372. 2:59:05regulator,
  3373. 2:59:075 volts.
  3374. 2:59:08Perfect.
  3375. 2:59:10Now,
  3376. 2:59:11I have this electronic load. I'm going
  3377. 2:59:13to set 3 amps. Be sure the switches are
  3378. 2:59:16set to 5 volts and we are going to
  3379. 2:59:17double check.
  3380. 2:59:19So, 5 volt,
  3381. 2:59:235 volt, 5 volt. I'm going to switch on
  3382. 2:59:25this electronic load.
  3383. 2:59:27We should see 3 amps. 3 amps.
  3384. 2:59:31And if we try different voltage,
  3385. 2:59:369 volts, 9 volts, 9 volts, 3 amps is
  3386. 2:59:40flowing. Next one
  3387. 2:59:42is 12 volts.
  3388. 2:59:45Next one is 20 volts and I have to
  3389. 2:59:50decrease the current because the
  3390. 2:59:53electronic load is only up to 60 watts.
  3391. 2:59:56Everything is working fine. Perfect.
  3392. 2:59:59This is the power supply or the adapter
  3393. 3:00:01what I used.
  3394. 3:00:05And uh, don't forget you have to use
  3395. 3:00:07also this special 3.1 USB cable.
  3396. 3:00:11If you use a different kind of cable,
  3397. 3:00:13for example, like this one or different
  3398. 3:00:15adapter, you can get different uh
  3399. 3:00:17results. For 5 V, this one works.
  3400. 3:00:21This one also works for 9 V.
  3401. 3:00:25Uh next one is 12.
  3402. 3:00:27Okay? So, don't forget this is different
  3403. 3:00:29adapter.
  3404. 3:00:30And some adapters, they don't work for
  3405. 3:00:32everything, like this one, 28 V, see?
  3406. 3:00:35There is error. This adapter what I'm
  3407. 3:00:37using right now or this cable, it can't
  3408. 3:00:40deliver 28 V.
  3409. 3:00:42Okay?
  3410. 3:00:44And this is different cable just from
  3411. 3:00:45standard PC. You can see it says 5 V all
  3412. 3:00:48the time.
  3413. 3:00:49Error LED is on because standard PC
  3414. 3:00:52doesn't support power delivery. This
  3415. 3:00:55switch is they don't work. Have a look.
  3416. 3:00:56It doesn't matter what I do with the
  3417. 3:00:58switches, it just doesn't work. So, be
  3418. 3:01:00sure you use correct USB-C power adapter
  3419. 3:01:05to work with this port.
  3420. 3:01:08Now, go to data sheet and there is
  3421. 3:01:10something very interesting.
  3422. 3:01:12There is this PPS voltage configuration
  3423. 3:01:15register where you can set output
  3424. 3:01:17voltage. So, when you are running this
  3425. 3:01:19chip in PPS mode, you can set all the
  3426. 3:01:21kind of different output voltages.
  3427. 3:01:24But to be able to run uh this chip in
  3428. 3:01:27I2C,
  3429. 3:01:28uh we have to run it in this single
  3430. 3:01:31register mode.
  3431. 3:01:32And single register mode, it means
  3432. 3:01:34uh CFG1 connects resistors to ground.
  3433. 3:01:38So, if we go here, this is CFG1 and this
  3434. 3:01:41is the resistor which by default we do
  3435. 3:01:44not fit. It is this resistor.
  3436. 3:01:47So, what we are going to do, we are
  3437. 3:01:48going to add with this pull up. It is
  3438. 3:01:51this one and we will fit the pull down
  3439. 3:01:53resistor to be able to use I2C
  3440. 3:01:57and talk to our chip.
  3441. 3:01:59So, let's do this. We need to solder
  3442. 3:02:02down this header, this connector.
  3443. 3:02:07Uh this is the device what I'm going to
  3444. 3:02:09use. I will connect it to my PC. These
  3445. 3:02:11are the
  3446. 3:02:13signals, SDA, ground, and clock.
  3447. 3:02:16And we will connect them here.
  3448. 3:02:19So, first I'm going to put little bit of
  3449. 3:02:22solder on each of the pads. I'm going to
  3450. 3:02:24connect the cable
  3451. 3:02:26because then the heat from the pins goes
  3452. 3:02:29away and uh
  3453. 3:02:31the pins will not
  3454. 3:02:33uh melt in the plastic.
  3455. 3:02:35It's a very useful trick. Now, I'm going
  3456. 3:02:38to
  3457. 3:02:39uh remove this puller.
  3458. 3:02:42Okay, clean it little bit.
  3459. 3:02:45And uh I'm going to put the resistor
  3460. 3:02:47back but as a pull down. It is 10K
  3461. 3:02:49resistor. It is not like 6.8 or what
  3462. 3:02:52they recommend.
  3463. 3:02:53But for this testing, it really doesn't
  3464. 3:02:55matter.
  3465. 3:02:56So, if you don't have the exact 6.8 uh K
  3466. 3:03:00resistor, you can just use the 10K. For
  3467. 3:03:02the testing, it's fine. So, this one is
  3468. 3:03:04not fitted. This one is fitted.
  3469. 3:03:06Be sure uh the switches are in the
  3470. 3:03:09bottom position. Now, I'm going to start
  3471. 3:03:11this control center.
  3472. 3:03:13And I'm going to connect uh this I2C
  3473. 3:03:16device what I'm using.
  3474. 3:03:18Okay.
  3475. 3:03:25We are ready to test it. So, be sure uh
  3476. 3:03:28you connect all the wires correctly. So,
  3477. 3:03:31SDA, ground, and clock.
  3478. 3:03:34So, we are going to connect it to
  3479. 3:03:37USB.
  3480. 3:03:39And now, ignore these LEDs, okay? They
  3481. 3:03:41don't work correctly.
  3482. 3:03:44Just ignore the green LEDs.
  3483. 3:03:48Uh
  3484. 3:03:50the address is 22. So, here is 22.
  3485. 3:03:54And these are the registers, 9 and A.
  3486. 3:03:58So, I'm going to read from the The 9, 8
  3487. 3:04:01bits.
  3488. 3:04:03So, that's 88 and 01 is basically this
  3489. 3:04:06uh
  3490. 3:04:07what is inside of this A register. It
  3491. 3:04:09means 9 volts. See?
  3492. 3:04:11Now, if you'd like to put that 12 volts,
  3493. 3:04:14then we need to put there number two.
  3494. 3:04:17So, in register A, we need to put number
  3495. 3:04:19two, right?
  3496. 3:04:21See? 12 volts.
  3497. 3:04:2315 volts, we need to put here number
  3498. 3:04:25three.
  3499. 3:04:27And watch, right?
  3500. 3:04:3015.
  3501. 3:04:32But, what is more interesting, it is to
  3502. 3:04:33play with this voltage configuration
  3503. 3:04:35register.
  3504. 3:04:37I'm going to switch to this batch mode
  3505. 3:04:39because we need to write multiple
  3506. 3:04:40values. It is very simple script. At the
  3507. 3:04:43beginning, we are just doing I squared C
  3508. 3:04:45initialization.
  3509. 3:04:47Then, uh there is the uh default setup,
  3510. 3:04:515 volts. So, here in this A register, we
  3511. 3:04:53will enable 5 volts.
  3512. 3:04:56And a little bit later, we are using
  3513. 3:04:58this uh voltage configuration register
  3514. 3:05:01to set the output voltage. Okay?
  3515. 3:05:04And I made this very simple table.
  3516. 3:05:07So, here are the uh
  3517. 3:05:09numbers what we need to put
  3518. 3:05:11into the register based on the voltage
  3519. 3:05:13what we require. And the last value what
  3520. 3:05:15we will run will be 6.7 volts. So, these
  3521. 3:05:18are all the kind of uh voltages what we
  3522. 3:05:21will see on the output, from 5 volts up
  3523. 3:05:23to 20. Watch.
  3524. 3:05:256 7 8 9 10
  3525. 3:05:29Okay? We are setting up all these
  3526. 3:05:31voltages through the
  3527. 3:05:32voltage configuration register.
  3528. 3:05:35And the last one is this 6.7 because I
  3529. 3:05:37wanted to show you you can actually set
  3530. 3:05:39any kind of voltage. Okay? So, it's the
  3531. 3:05:42number 43. You can see 6.7 volts.
  3532. 3:05:50Now, we are basically finished, but
  3533. 3:05:52there are still few words that I would
  3534. 3:05:54like to say. So, first, if you search
  3535. 3:05:57for Federal
  3536. 3:05:59uh GitHub,
  3537. 3:06:02go here.
  3538. 3:06:04And I created this USB-C advanced power
  3539. 3:06:07supply repository.
  3540. 3:06:09Here you will find all the information
  3541. 3:06:11about this project, okay? So, even in
  3542. 3:06:13future, if I make any changes or
  3543. 3:06:15anything, uh
  3544. 3:06:17I will post all the resources, all the
  3545. 3:06:20links on this project. If you are
  3546. 3:06:21building this board, have a look uh here
  3547. 3:06:25because maybe you will find see here
  3548. 3:06:26something what
  3549. 3:06:28I don't know, something new, something
  3550. 3:06:29what can be useful for you.
  3551. 3:06:32And also, I'm going to create uh this uh
  3552. 3:06:35project also on this
  3553. 3:06:37O S H W Lab.
  3554. 3:06:41Uh
  3555. 3:06:42this is basically website which is
  3556. 3:06:43connected with EasyEDA directly. So,
  3557. 3:06:47once you see the project listed in here,
  3558. 3:06:49you can very easily clone whole project.
  3559. 3:06:52Uh you can open it in EasyEDA, and you
  3560. 3:06:54can just uh you know, continue modifying
  3561. 3:06:57and improving this board. So, this will
  3562. 3:07:00make it very easy if you like the board
  3563. 3:07:02and you would like to make some changes
  3564. 3:07:03for yourself.
  3565. 3:07:06And uh that's everything for this
  3566. 3:07:08tutorial. I really hope you design and
  3567. 3:07:11build your own board. Let me know, okay?
  3568. 3:07:14Let me know in the comments.
  3569. 3:07:16And don't forget if uh you would like to
  3570. 3:07:18learn more about electronics and how to
  3571. 3:07:20design boards, check out our online
  3572. 3:07:23courses. You will find everything
  3573. 3:07:25important there from basic board design
  3574. 3:07:28up to advanced board design and
  3575. 3:07:30high-speed PCB layout. We have courses
  3576. 3:07:32in
  3577. 3:07:33Altium, Cadence, KiCad, and also courses
  3578. 3:07:36covering many different topics, for
  3579. 3:07:38example, FPGA, EMC measurements, and so
  3580. 3:07:41on. Visit our website at federal.com.
  3581. 3:07:45That's all for this video. Thank you
  3582. 3:07:46very much for watching, and don't forget
  3583. 3:07:48to leave your comments.
  3584. 3:07:51See you in the next video. Bye.

About this transcript

This page contains the full transcript of How to Design a USB-C Power Supply (5V–28V) in 3 Hours | Full Tutorial | EasyEDA by Robert Feranec, generated from the public captions YouTube serves with the video. The transcript has 17,433 words across 3,584 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 translate the transcript into 100+ languages.

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, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.