{"id":7675,"date":"2023-04-06T12:28:13","date_gmt":"2023-04-06T10:28:13","guid":{"rendered":"https:\/\/willem.aandewiel.nl\/?p=7675"},"modified":"2024-10-06T11:38:01","modified_gmt":"2024-10-06T09:38:01","slug":"rgd-led-strip-controller","status":"publish","type":"post","link":"https:\/\/willem.aandewiel.nl\/index.php\/2023\/04\/06\/rgd-led-strip-controller\/","title":{"rendered":"RGD Led Strip Controller"},"content":{"rendered":"\n<p>[ 4,144 keer bekeken \/ views ]<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignleft size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"1024\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/LedLights-768x1024.png\" alt=\"\" class=\"wp-image-7708\" style=\"width:192px;height:256px\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/LedLights-768x1024.png 768w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/LedLights-225x300.png 225w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/LedLights.png 900w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure>\n<\/div>\n\n\n<p>When a friend of my bought his house a few years ago it was mostly wired with KNX. Later &#8220;<em>improvements<\/em>&#8221; where done by contractors who did not know the beauty of KNX. So by the time he bought this house there now was a mix of KNX and other systems installed under which nine RGB LED strips spread around the house. The RGB LED strips are controlled by nine beefy controllers that each control one LED strip.<\/p>\n\n\n\n<div style=\"height:2px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"626\" height=\"455\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/RGB_MasterController.png\" alt=\"\" class=\"wp-image-7676\" style=\"width:157px;height:114px\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/RGB_MasterController.png 626w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/RGB_MasterController-300x218.png 300w\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" \/><\/figure>\n<\/div>\n\n\n<p>Every LED strip controller has its own 24 volt power supply and the colours of the nine strips are, in turn, controlled by one \u201cone channel\u201d controller box located and operated in an utility closed. So all the strips show the same colour and intensity.<\/p>\n\n\n\n<p>This is far from optimal if only for the large space (an other full utility closet) the controllers occupy<\/p>\n\n\n\n<p>So he asked me to design something better (individual colours and intensity for each LED strip) in lesser space. As my friend is a software engineer himself, he will take care of the software for the ESP32 to control each and every RGB LED strip by the KNX protocol.<br>If KNX is not needed it is not that difficult to write a webserver for the ESP32 to control the RGB LED strips.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Design Choices<\/h2>\n\n\n\n<p>To pursue circular design we want to re-use the casing, the wiring and the connectors (4-pole DIN) of the current controllers.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"300\" data-id=\"7711\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/insideBox.png\" alt=\"\" class=\"wp-image-7711\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/insideBox.png 400w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/insideBox-300x225.png 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"856\" data-id=\"7712\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/insideBoxBlue.png\" alt=\"\" class=\"wp-image-7712\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/insideBoxBlue.png 700w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/insideBoxBlue-245x300.png 245w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>For controlling the RGB LED strips the obvious choice is to use <em>Power Mosfets<\/em> to switch the individual LED colours in the strips and Pulse Wide Modulation (PWM) to control the intensity.<\/p>\n\n\n\n<p>Mosfets are great devices that can switch large currents by applying a voltage between the gate and the source.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-gallery aligncenter has-nested-images columns-1 wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/Mosfet_Open.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"260\" data-id=\"7693\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/Mosfet_Open-1024x260.png\" alt=\"\" class=\"wp-image-7693\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/Mosfet_Open-1024x260.png 1024w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/Mosfet_Open-300x76.png 300w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/Mosfet_Open-768x195.png 768w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/Mosfet_Open.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/Mosfet_Closed.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"268\" data-id=\"7692\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/Mosfet_Closed-1024x268.png\" alt=\"\" class=\"wp-image-7692\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/Mosfet_Closed-1024x268.png 1024w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/Mosfet_Closed-300x79.png 300w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/Mosfet_Closed-768x201.png 768w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/Mosfet_Closed.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<figcaption class=\"blocks-gallery-caption wp-element-caption\">Images from <em><a href=\"https:\/\/www.electronics-tutorials.ws\/transistor\/tran_7.html\" target=\"_blank\" rel=\"noreferrer noopener\">Electronic Tutorials<\/a><\/em><\/figcaption><\/figure>\n\n\n\n<p>But there is a pitfall!&nbsp;<\/p>\n\n\n\n<p>A Mosfet is, basically, a variable resistor that has a value of, almost, zero ohms to, almost, infinite ohms. At those two extremes the power dissipation of the Mosfet is almost zero and the Mosfet will not convert energy into heath. Which is great.<\/p>\n\n\n\n<p>But the problem is in the range between the two extremes. If you don\u2019t switch the Mosfet fast enough between ~zero ohm (closed) and ~infinite ohm (open) there will be a lot of energy dissipated and the Mosfet can get very hot!<\/p>\n\n\n\n<p>What most people do not realise is that the gate-source and gate-drain junction have a (relative) large capacitance.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/MosFetCapacitance.png\"><img loading=\"lazy\" decoding=\"async\" width=\"656\" height=\"323\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/MosFetCapacitance.png\" alt=\"\" class=\"wp-image-7677\" style=\"width:328px;height:162px\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/MosFetCapacitance.png 656w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/MosFetCapacitance-300x148.png 300w\" sizes=\"auto, (max-width: 656px) 100vw, 656px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>If you pull the gate to GND there will be a large discharge current flowing \u201cout of\u201d the gate (up to several amps). If you connect the gate to Vdd again a large current will flow between Vdd to the gate to charge the gate (also up to several amps).<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignleft size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"594\" height=\"635\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/MosFet_LowSide.png\" alt=\"\" class=\"wp-image-7678\" style=\"width:149px;height:159px\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/MosFet_LowSide.png 594w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/MosFet_LowSide-281x300.png 281w\" sizes=\"auto, (max-width: 594px) 100vw, 594px\" \/><\/figure>\n<\/div>\n\n\n<p><br>So what will happen if you connect the gate to a GPIO pin of a micro processor that can drive about 20mA?<\/p>\n\n\n\n<p>Well: the GPIO pin will <em>cease to be<\/em> (free from Monty Python)!&nbsp;<\/p>\n\n\n\n<div style=\"height:0px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"594\" height=\"635\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/MosFet_LowSideResistor.png\" alt=\"\" class=\"wp-image-7679\" style=\"width:149px;height:159px\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/MosFet_LowSideResistor.png 594w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/MosFet_LowSideResistor-281x300.png 281w\" sizes=\"auto, (max-width: 594px) 100vw, 594px\" \/><\/figure>\n<\/div>\n\n\n<p><br>The solution most designs use to prevent this is a series resistor (R) between the GPIO pin and the gate.<\/p>\n\n\n\n<p>Problem solved \u2026 or not.<\/p>\n\n\n\n<div style=\"height:0px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>The series resistor prevents the GPIO pin from blowing up by limiting the current but it also makes the gate switch time (R\/C time) longer and the Mosfet will spent more time in the transition between open and closed (and vice versa) and thus will create more heat.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Totem Pole driver circuit<\/h2>\n\n\n\n<p>One way to solve this is by making use of a so called \u201c<em>Totem Pole<\/em>\u201d circuit that is capable of driving a large current to switch the gate of the Mosfet.&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/MosFet_TotemPole.png\"><img loading=\"lazy\" decoding=\"async\" width=\"674\" height=\"783\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/MosFet_TotemPole.png\" alt=\"\" class=\"wp-image-7680\" style=\"width:169px;height:196px\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/MosFet_TotemPole.png 674w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/MosFet_TotemPole-258x300.png 258w\" sizes=\"auto, (max-width: 674px) 100vw, 674px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>But this circuit takes a lot of parts and is rather complex.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">UCC2742 Driver IC<\/h2>\n\n\n\n<p>And then the Mosfet Driver IC\u2019s come to rescue! These IC\u2019s are capable of charging and discharging the gate capacitance with a large current (up to 4 amps) and limiting the transition time of the Mosfet, and the power dissipation to a minimum.&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"302\" height=\"324\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/RGB_Common_Anode.png\" alt=\"\" class=\"wp-image-7683\" style=\"width:151px;height:162px\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/RGB_Common_Anode.png 302w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/RGB_Common_Anode-280x300.png 280w\" sizes=\"auto, (max-width: 302px) 100vw, 302px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"has-light-gray-background-color has-background\"><br><br>Be aware that the circuit is designed for Common Anode type LED strips!<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/UC2742_Simplefied.png\"><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"537\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/UC2742_Simplefied.png\" alt=\"\" class=\"wp-image-7684\" style=\"width:182px;height:134px\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/UC2742_Simplefied.png 729w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/UC2742_Simplefied-300x221.png 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>The driving circuit for the LED strip controller looks like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"836\" height=\"348\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/ledStripControllerDriver-1.png\" alt=\"\" class=\"wp-image-7731\" style=\"width:627px;height:261px\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/ledStripControllerDriver-1.png 836w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/ledStripControllerDriver-1-300x125.png 300w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/ledStripControllerDriver-1-768x320.png 768w\" sizes=\"auto, (max-width: 836px) 100vw, 836px\" \/><\/figure>\n\n\n\n<p>The <em>UCC2742<\/em> (or <em>FAN3224TMX<\/em>) chip has two drivers (<em>A<\/em> and <em>B<\/em>). The enable pins ([ENBA] and [ENBB]) are internally pulled high.<br>To control one RGB LED strip we need three of these driver circuits. The MCU of choice is the <em>ESP32-DevKitC<\/em> which have 32 GPIO pins from which 22 are at our disposal (but four of them are input only pins). We also need some control signals therefore we can control a maximum of five LED strips (15 GPIO pins).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">BCR420 LED Driver<\/h2>\n\n\n\n<p>To give some feedback there are three coloured LED\u2019s for each channel. There are many ways to connect a LED to a MCU. Most used is a series resistor to limit the current but I have chosen a so called \u201c<em>LED Driver<\/em>\u201d IC.&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/BCR420_LedDriver.png\"><img loading=\"lazy\" decoding=\"async\" width=\"986\" height=\"430\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/BCR420_LedDriver.png\" alt=\"\" class=\"wp-image-7685\" style=\"width:493px;height:215px\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/BCR420_LedDriver.png 986w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/BCR420_LedDriver-300x131.png 300w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/BCR420_LedDriver-768x335.png 768w\" sizes=\"auto, (max-width: 986px) 100vw, 986px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>This small device limits the current through the LED by one resistor (Rext) over a wide range of voltages. Omitting the Rext will drive the LED with a current of 20mA.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ACS712<\/h2>\n\n\n\n<p>For a device capable of working with large currents it is always nice to have some information about the actual current the device is using and therefore an ACS712\/ACS723 is incorporated in the circuit. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/ACS712_Application.png\"><img loading=\"lazy\" decoding=\"async\" width=\"433\" height=\"374\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/ACS712_Application.png\" alt=\"\" class=\"wp-image-7686\" style=\"width:217px;height:187px\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/ACS712_Application.png 433w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/ACS712_Application-300x259.png 300w\" sizes=\"auto, (max-width: 433px) 100vw, 433px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>I use  a -20 to +20 amp version (mainly because the 0 to +20amp versions are difficult to source). <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/AC712_Circuit.png\"><img loading=\"lazy\" decoding=\"async\" width=\"712\" height=\"549\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/AC712_Circuit.png\" alt=\"\" class=\"wp-image-7702\" style=\"width:356px;height:275px\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/AC712_Circuit.png 712w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/AC712_Circuit-300x231.png 300w\" sizes=\"auto, (max-width: 712px) 100vw, 712px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>To limit the VIout voltage there is a resistor divider (R16\/R17) that limits the 0-5 volt of the ACS712 to 0-3 volt that can be handled by the ADC of the ESP32.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">External Watchdog<\/h2>\n\n\n\n<p>An external watchdog is also part of the design.&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/watchDogCircuit.png\"><img loading=\"lazy\" decoding=\"async\" width=\"934\" height=\"754\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/watchDogCircuit.png\" alt=\"\" class=\"wp-image-7687\" style=\"width:467px;height:377px\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/watchDogCircuit.png 934w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/watchDogCircuit-300x242.png 300w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/watchDogCircuit-768x620.png 768w\" sizes=\"auto, (max-width: 934px) 100vw, 934px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>The watchdog is based on a ATtiny85 MCU that receives heartbeats from the ESP32 on PB2 (pin 7) and if the ESP32 crashes or otherwise stops sending heartbeats the ATtiny85 will reset the ESP32 by pulling PB3 (pin 2) HIGH. With a jumper on J2 the watchdog can be en- or disabled. <br>The ESP32 can reset the watchdog to its initial state by pulling PB5 HIGH.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PCB Design<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignleft size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"403\" height=\"169\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/PCBtraceWidth20Amp.png\" alt=\"\" class=\"wp-image-7688\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/PCBtraceWidth20Amp.png 403w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/PCBtraceWidth20Amp-300x126.png 300w\" sizes=\"auto, (max-width: 403px) 100vw, 403px\" \/><\/figure>\n<\/div>\n\n\n<p><br><br>As the currents through the Mosfets and LED strips are large (up to 2 amps per colour and up to 20 amps -limited by the power supply- for power lines) a simple copper trace has to be 20mm wide to accommodate these large currents.<br><\/p>\n\n\n\n<p>This would make the PCB very large so I have opted for smaller traces and solder a wire over them.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/WireTraces.png\"><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"667\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/WireTraces.png\" alt=\"\" class=\"wp-image-7707\" style=\"width:250px;height:334px\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/WireTraces.png 500w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/WireTraces-225x300.png 225w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>The complete schematic:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/RGB_LedStripController_Schematic.pdf\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"707\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/RGB_LedStripControlloer_Schematic-1024x707.png\" alt=\"\" class=\"wp-image-7689\" style=\"width:512px;height:354px\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/RGB_LedStripControlloer_Schematic-1024x707.png 1024w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/RGB_LedStripControlloer_Schematic-300x207.png 300w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/RGB_LedStripControlloer_Schematic-768x530.png 768w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/RGB_LedStripControlloer_Schematic.png 1135w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>I send the design to <a rel=\"noreferrer noopener\" href=\"https:\/\/www.pcbway.com\/\" target=\"_blank\">PCBWay<\/a> to produce the printed circuit board.<\/p>\n\n\n\n<p id=\"tw-target-text\">Therefore the design must be made suitable for the PCBWay production process. To do this you have to click on the [Plot] icon in KiCad&#8217;s PCB Editor<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/KiCad_Plot-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"647\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/KiCad_Plot-1-1024x647.png\" alt=\"\" class=\"wp-image-7726\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/KiCad_Plot-1-1024x647.png 1024w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/KiCad_Plot-1-300x190.png 300w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/KiCad_Plot-1-768x485.png 768w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/KiCad_Plot-1.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p id=\"tw-target-text\">\u2026 and in the popup window that appears, click [Plot] and then [Generate Drill Files] \u2026<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/KiCad_Plot.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"585\" data-id=\"7642\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/KiCad_Plot-1024x585.png\" alt=\"\" class=\"wp-image-7642\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/KiCad_Plot-1024x585.png 1024w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/KiCad_Plot-300x171.png 300w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/KiCad_Plot-768x439.png 768w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/KiCad_Plot.png 1069w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/KiCad_Drill.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"585\" data-id=\"7643\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/KiCad_Drill-1024x585.png\" alt=\"\" class=\"wp-image-7643\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/KiCad_Drill-1024x585.png 1024w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/KiCad_Drill-300x171.png 300w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/KiCad_Drill-768x439.png 768w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/KiCad_Drill.png 1069w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/figure>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"304\" height=\"283\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/KiCad_ZIP.png\" alt=\"\" class=\"wp-image-7727\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/KiCad_ZIP.png 304w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/KiCad_ZIP-300x279.png 300w\" sizes=\"auto, (max-width: 304px) 100vw, 304px\" \/><\/figure>\n<\/div>\n\n\n<p id=\"tw-target-text\"><br>All files that have now been created (ending in \u201c.gbr\u201d, \u201c.drl\u201d and the file ending in \u201c.gbrjob\u201d) must be compressed into a single \u201c.zip\u201d file. <br>We will upload this \u201c.zip\u201d file to PCBWay later.<\/p>\n\n\n\n<div style=\"height:4px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignleft is-resized\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/PCBWay_Quota1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"638\" height=\"473\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/PCBWay_Quota1.png\" alt=\"\" class=\"wp-image-7650\" style=\"width:319px;height:237px\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/PCBWay_Quota1.png 638w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/PCBWay_Quota1-300x222.png 300w\" sizes=\"auto, (max-width: 638px) 100vw, 638px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p id=\"tw-target-text\"><br><br><br>PCBWay has a nice website where you can easily order your printed circuit boards. To do this, go to \u201chttps:\/\/www.pcbway.com\/\u201d.<br><br>Start by entering the dimensions of your PCB design and click on [Quote Now] &#8230;<br><\/p>\n\n\n\n<div style=\"height:1px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright is-resized\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/PCBWay_PCB-Specs.png\"><img loading=\"lazy\" decoding=\"async\" width=\"612\" height=\"810\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/PCBWay_PCB-Specs.png\" alt=\"\" class=\"wp-image-7651\" style=\"width:306px;height:405px\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/PCBWay_PCB-Specs.png 612w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/PCBWay_PCB-Specs-227x300.png 227w\" sizes=\"auto, (max-width: 612px) 100vw, 612px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p id=\"tw-target-text\"><br>In the next screen you can provide additional information about how you want the printed circuit board to look. The most commonly used options are the colour of the <em>Solder Mask<\/em> (this sometimes involves extra costs or a longer production time) and the colour of the <em>Silkscreen<\/em>.<\/p>\n\n\n\n<div style=\"height:0px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p id=\"tw-target-text\">If everything is the way you want it, you will see a screen where you can upload the \u201c.zip\u201d file you just created in KiCad. The content is checked by people from PCBWay and if there are no problems, you will see the final costs and you can specify with which courier you want the printed circuit boards sent. There are major differences in price and delivery times. You may also have to deal with import duties\/VAT. If you do not pay this in advance, the couriers charge a considerable fee for the handling. I therefore always choose \u201cFedEx-IP (IOSS)\u201c. You then pay an amount in advance (VAT Fee). After placing and paying for the order, you can follow the progress of production on the PCBWay site. PCBWay also sends a message when the printed circuit boards have been delivered to the courier.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/PCBwayOrder.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1002\" height=\"259\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/PCBwayOrder.png\" alt=\"\" class=\"wp-image-7736\" style=\"width:752px;height:194px\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/PCBwayOrder.png 1002w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/PCBwayOrder-300x78.png 300w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/PCBwayOrder-768x199.png 768w\" sizes=\"auto, (max-width: 1002px) 100vw, 1002px\" \/><\/a><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Gallery<\/h2>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-4 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/Mosfet_Footprint.png\"><img loading=\"lazy\" decoding=\"async\" width=\"552\" height=\"721\" data-id=\"7714\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/Mosfet_Footprint.png\" alt=\"\" class=\"wp-image-7714\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/Mosfet_Footprint.png 552w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/Mosfet_Footprint-230x300.png 230w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/LedStripController_Top.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"855\" data-id=\"7715\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/LedStripController_Top.png\" alt=\"\" class=\"wp-image-7715\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/LedStripController_Top.png 1000w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/LedStripController_Top-300x257.png 300w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/LedStripController_Top-768x657.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/LedStripController_3D.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"714\" data-id=\"7716\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/LedStripController_3D.png\" alt=\"\" class=\"wp-image-7716\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/LedStripController_3D.png 1000w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/LedStripController_3D-300x214.png 300w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/LedStripController_3D-768x548.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/frontBox.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"750\" data-id=\"7718\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/frontBox.png\" alt=\"\" class=\"wp-image-7718\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/frontBox.png 1000w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/frontBox-300x225.png 300w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/frontBox-768x576.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/Meterkast_Nu.png\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"1024\" data-id=\"7719\" src=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/Meterkast_Nu-768x1024.png\" alt=\"\" class=\"wp-image-7719\" srcset=\"https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/Meterkast_Nu-768x1024.png 768w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/Meterkast_Nu-225x300.png 225w, https:\/\/willem.aandewiel.nl\/wp-content\/uploads\/2023\/04\/Meterkast_Nu.png 900w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/a><\/figure>\n<\/figure>\n","protected":false},"excerpt":{"rendered":"<p>[ ] When a friend of my bought his house a few years ago it was mostly wired with KNX. Later &#8220;improvements&#8221; where done by contractors who did not know the beauty of KNX. So by the time he bought &hellip; <a href=\"https:\/\/willem.aandewiel.nl\/index.php\/2023\/04\/06\/rgd-led-strip-controller\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":7712,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[157,10,115,20],"tags":[55,80],"class_list":["post-7675","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-esp32","category-hardware","category-kicad","category-wifi","tag-hardware","tag-pcb"],"views":4144,"_links":{"self":[{"href":"https:\/\/willem.aandewiel.nl\/index.php\/wp-json\/wp\/v2\/posts\/7675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/willem.aandewiel.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/willem.aandewiel.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/willem.aandewiel.nl\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/willem.aandewiel.nl\/index.php\/wp-json\/wp\/v2\/comments?post=7675"}],"version-history":[{"count":45,"href":"https:\/\/willem.aandewiel.nl\/index.php\/wp-json\/wp\/v2\/posts\/7675\/revisions"}],"predecessor-version":[{"id":8201,"href":"https:\/\/willem.aandewiel.nl\/index.php\/wp-json\/wp\/v2\/posts\/7675\/revisions\/8201"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/willem.aandewiel.nl\/index.php\/wp-json\/wp\/v2\/media\/7712"}],"wp:attachment":[{"href":"https:\/\/willem.aandewiel.nl\/index.php\/wp-json\/wp\/v2\/media?parent=7675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/willem.aandewiel.nl\/index.php\/wp-json\/wp\/v2\/categories?post=7675"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/willem.aandewiel.nl\/index.php\/wp-json\/wp\/v2\/tags?post=7675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}