{"id":2538,"date":"2025-07-08T13:53:18","date_gmt":"2025-07-08T13:53:18","guid":{"rendered":"https:\/\/learnbydoing.dev\/?p=2538"},"modified":"2026-01-10T22:26:51","modified_gmt":"2026-01-10T22:26:51","slug":"understanding-pwm-in-robotics","status":"publish","type":"post","link":"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/","title":{"rendered":"Understanding PWM in Robotics"},"content":{"rendered":"<div data-elementor-type=\"wp-post\" data-elementor-id=\"2538\" class=\"elementor elementor-2538\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e28ab35 e-flex e-con-boxed e-con e-parent\" data-id=\"e28ab35\" data-element_type=\"container\" data-e-type=\"container\" id=\"content\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-62ab6e3 e-con-full e-flex e-con e-child\" data-id=\"62ab6e3\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-62ab203 elementor-align-center elementor-widget elementor-widget-post-info\" data-id=\"62ab203\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"post-info.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ul class=\"elementor-inline-items elementor-icon-list-items elementor-post-info\">\n\t\t\t\t\t\t\t\t<li class=\"elementor-icon-list-item elementor-repeater-item-2c98363 elementor-inline-item\" itemprop=\"about\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text elementor-post-info__item elementor-post-info__item--type-terms\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-post-info__terms-list\">\n\t\t\t\t<span class=\"elementor-post-info__terms-list-item\">Arduino<\/span>, <span class=\"elementor-post-info__terms-list-item\">Electronics<\/span>, <span class=\"elementor-post-info__terms-list-item\">Tutoriales<\/span>\t\t\t\t<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t<\/ul>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-0650e10 e-con-full e-flex e-con e-child\" data-id=\"0650e10\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-ac19582 elementor-view-default elementor-widget elementor-widget-icon\" data-id=\"ac19582\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<div class=\"elementor-icon\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"75\" height=\"75\" viewbox=\"0 0 75 75\" fill=\"none\"><path d=\"M74.9999 75H13.1889V73.0002H71.5859L0.460938 1.87521L1.87515 0.460999L73.0001 71.586V13.1889H74.9999V75Z\" fill=\"white\"><\/path><\/svg>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-47aa245d e-flex e-con-boxed e-con e-parent\" data-id=\"47aa245d\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-206a001 elementor-widget elementor-widget-image\" data-id=\"206a001\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"1350\" height=\"1080\" src=\"https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/Workspace-4.webp\" class=\"attachment-full size-full wp-image-2547\" alt=\"\" srcset=\"https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/Workspace-4.webp 1350w, https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/Workspace-4-300x240.webp 300w, https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/Workspace-4-1024x819.webp 1024w, https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/Workspace-4-768x614.webp 768w, https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/Workspace-4-15x12.webp 15w\" sizes=\"(max-width: 1350px) 100vw, 1350px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4bc31ca3 elementor-widget elementor-widget-text-editor\" data-id=\"4bc31ca3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p data-start=\"385\" data-end=\"543\">In robotics, controlling how fast a motor spins or how bright an LED shines is essential. PWM \u2014 Pulse Width Modulation \u2014 is the tool that makes this possible.<\/p><p data-start=\"545\" data-end=\"640\">Let\u2019s dive into what PWM is, how it works, and how you can use it in your own robotic projects.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-12a4ca0 elementor-widget elementor-widget-text-editor\" data-id=\"12a4ca0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3 data-start=\"1857\" data-end=\"1885\">\ud83d\udd0d <strong>What is a PWM?<\/strong><\/h3><p data-start=\"667\" data-end=\"844\">PWM is a technique to <strong data-start=\"689\" data-end=\"715\">simulate analog output<\/strong> using digital signals. Instead of sending a fixed voltage, you <strong data-start=\"779\" data-end=\"819\">rapidly switch the signal on and off<\/strong> at a specific frequency.<\/p><p data-start=\"846\" data-end=\"957\">The key concept is the <strong data-start=\"869\" data-end=\"883\">duty cycle<\/strong>, which is the percentage of time the signal stays high during each cycle.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c983314 elementor-widget elementor-widget-text-editor\" data-id=\"c983314\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3 data-start=\"1857\" data-end=\"1885\">\ud83d\udcd1 <strong>How it Works<\/strong><\/h3><p data-start=\"1093\" data-end=\"1147\">Think of PWM like flipping a light switch really fast:<\/p><ul data-start=\"1149\" data-end=\"1265\"><li data-start=\"1149\" data-end=\"1211\"><p data-start=\"1151\" data-end=\"1211\">If it\u2019s ON half the time, it looks like <strong data-start=\"1191\" data-end=\"1210\">half brightness<\/strong>.<\/p><\/li><li data-start=\"1212\" data-end=\"1265\"><p data-start=\"1214\" data-end=\"1265\">If it\u2019s ON most of the time, it looks <strong data-start=\"1252\" data-end=\"1264\">brighter<\/strong>.<\/p><\/li><\/ul><p data-start=\"1267\" data-end=\"1343\">The faster the switch (higher frequency), the smoother the perceived output.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e625dc8 elementor-widget elementor-widget-image\" data-id=\"e625dc8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"815\" height=\"227\" src=\"https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/pwm-signal.png\" class=\"attachment-full size-full wp-image-2540\" alt=\"\" srcset=\"https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/pwm-signal.png 815w, https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/pwm-signal-300x84.png 300w, https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/pwm-signal-768x214.png 768w, https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/pwm-signal-18x5.png 18w\" sizes=\"(max-width: 815px) 100vw, 815px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-324d52d elementor-widget elementor-widget-text-editor\" data-id=\"324d52d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3 data-start=\"1857\" data-end=\"1885\">\ud83e\uddee <strong>How to Calculate PWM<\/strong><\/h3><p>\u00a0<\/p><h4 data-start=\"1857\" data-end=\"1885\">\ud83d\udcd0 <strong>Formula<\/strong><\/h4><p>\u00a0<\/p><p>The duty cycle is calculated with:<\/p><p>\u00a0<\/p><p>Duty Cycle (%) = (TON \/ T) * 100<\/p><p data-start=\"1885\" data-end=\"1891\">Where:<\/p><p data-start=\"1885\" data-end=\"1891\">\u00a0<\/p><ul data-start=\"1893\" data-end=\"1979\"><li data-start=\"1893\" data-end=\"1928\"><p data-start=\"1895\" data-end=\"1928\"><code data-start=\"1895\" data-end=\"1900\">TON<\/code> = Time the signal is HIGH<br \/><br \/><\/p><\/li><li data-start=\"1929\" data-end=\"1979\"><p data-start=\"1931\" data-end=\"1979\"><code data-start=\"1931\" data-end=\"1934\">T<\/code> = Total period of one PWM cycle (HIGH + LOW)<br \/><br \/><\/p><\/li><\/ul><p>The frequency of the PWM signal is:<\/p><p>\u00a0<\/p><p>Frequency (Hz) = 1 \/ T<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1bda844 elementor-widget elementor-widget-image\" data-id=\"1bda844\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"800\" height=\"640\" src=\"https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/Workspace-3-1024x819.png\" class=\"attachment-large size-large wp-image-2543\" alt=\"\" srcset=\"https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/Workspace-3-1024x819.png 1024w, https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/Workspace-3-300x240.png 300w, https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/Workspace-3-768x614.png 768w, https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/Workspace-3-15x12.png 15w, https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/Workspace-3.png 1350w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e1ef5c9 elementor-widget elementor-widget-text-editor\" data-id=\"e1ef5c9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3 data-start=\"1857\" data-end=\"1885\">\ud83e\udd16 <strong>PWM in Robotics<\/strong><\/h3><p data-start=\"1922\" data-end=\"2017\">PWM is everywhere in robotic systems. Here are some of the most common use cases:<\/p><h5 data-start=\"2597\" data-end=\"2619\"><strong>\ud83c\udf00 Motor Control<\/strong><\/h5><p data-start=\"2620\" data-end=\"2657\">Control how fast your DC motors spin.<\/p><h5 data-start=\"2659\" data-end=\"2685\"><strong>\ud83c\udf9a Servo Positioning<\/strong><\/h5><p data-start=\"2686\" data-end=\"2748\">Servos use PWM where the <strong data-start=\"2711\" data-end=\"2726\">pulse width<\/strong> determines the angle.<\/p><h5 data-start=\"2750\" data-end=\"2773\"><strong>\ud83d\udca1 LED Brightness<\/strong><\/h5><p data-start=\"2774\" data-end=\"2827\">Dimming LEDs with PWM is energy-efficient and simple.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-1bbd266 e-flex e-con-boxed e-con e-parent\" data-id=\"1bbd266\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>In robotics, controlling how fast a motor spins or how bright an LED shines is essential. PWM \u2014 Pulse Width Modulation \u2014 is the tool that makes this possible. Let\u2019s dive into what PWM is, how it works, and how you can use it in your own robotic projects. \ud83d\udd0d What is a PWM? PWM [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":2547,"comment_status":"closed","ping_status":"open","sticky":false,"template":"elementor_header_footer","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[68,69,43],"tags":[95,94,59,199,84,67,83,198,197,195,87,196,82,66,200,77,64,194],"class_list":["post-2538","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-electronics","category-tutorials","tag-adc","tag-analog","tag-arduino","tag-brightness","tag-c","tag-complete","tag-cpp","tag-duty-cycle","tag-dutycycle","tag-frequency","tag-guide","tag-hz","tag-ide","tag-learn-by-doing","tag-pwm","tag-servo","tag-tutorial","tag-voltage"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Understanding PWM in Robotics - Learn by Doing!<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/learnbydoing.dev\/es\/understanding-pwm-in-robotics\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installing ROS 2 Jazzy on Ubuntu 24.04: Step-by-Step Tutorial\" \/>\n<meta property=\"og:description\" content=\"In robotics, controlling how fast a motor spins or how bright an LED shines is essential. PWM \u2014 Pulse Width Modulation \u2014 is the tool that makes this possible. Let\u2019s dive into what PWM is, how it works, and how you can use it in your own robotic projects. \ud83d\udd0d What is a PWM? PWM [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learnbydoing.dev\/es\/understanding-pwm-in-robotics\/\" \/>\n<meta property=\"og:site_name\" content=\"Learn by Doing!\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-08T13:53:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-10T22:26:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/06\/Progetto-senza-titolo-14.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/\"},\"author\":{\"name\":\"\",\"@id\":\"\"},\"headline\":\"Understanding PWM in Robotics\",\"datePublished\":\"2025-07-08T13:53:18+00:00\",\"dateModified\":\"2026-01-10T22:26:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/\"},\"wordCount\":240,\"publisher\":{\"@id\":\"https:\/\/learnbydoing.dev\/es\/#organization\"},\"image\":{\"@id\":\"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/Workspace-4.webp\",\"keywords\":[\"adc\",\"analog\",\"Arduino\",\"brightness\",\"c++\",\"complete\",\"cpp\",\"duty cycle\",\"dutycycle\",\"frequency\",\"Guide\",\"hz\",\"ide\",\"learn by doing\",\"pwm\",\"servo\",\"tutorial\",\"voltage\"],\"articleSection\":[\"Arduino\",\"Electronics\",\"Tutorials\"],\"inLanguage\":\"es\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/\",\"url\":\"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/\",\"name\":\"Understanding PWM in Robotics - Learn by Doing!\",\"isPartOf\":{\"@id\":\"https:\/\/learnbydoing.dev\/es\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/Workspace-4.webp\",\"datePublished\":\"2025-07-08T13:53:18+00:00\",\"dateModified\":\"2026-01-10T22:26:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/#primaryimage\",\"url\":\"https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/Workspace-4.webp\",\"contentUrl\":\"https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/Workspace-4.webp\",\"width\":1350,\"height\":1080},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/learnbydoing.dev\/es\/learn-by-doing-es\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Understanding PWM in Robotics\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learnbydoing.dev\/es\/#website\",\"url\":\"https:\/\/learnbydoing.dev\/es\/\",\"name\":\"Learn by Doing!\",\"description\":\"Learn Robotics the fun way\",\"publisher\":{\"@id\":\"https:\/\/learnbydoing.dev\/es\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learnbydoing.dev\/es\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/learnbydoing.dev\/es\/#organization\",\"name\":\"Learn by Doing!\",\"url\":\"https:\/\/learnbydoing.dev\/es\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/learnbydoing.dev\/es\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/06\/cropped-cropped-cropped-Progetto-senza-titolo-6-1.png\",\"contentUrl\":\"https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/06\/cropped-cropped-cropped-Progetto-senza-titolo-6-1.png\",\"width\":512,\"height\":512,\"caption\":\"Learn by Doing!\"},\"image\":{\"@id\":\"https:\/\/learnbydoing.dev\/es\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/antonio-brandi-512166bb\/\"]},{\"@type\":\"Person\",\"@id\":\"\",\"url\":\"https:\/\/learnbydoing.dev\/es\/author\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Understanding PWM in Robotics - Learn by Doing!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/learnbydoing.dev\/es\/understanding-pwm-in-robotics\/","og_locale":"es_ES","og_type":"article","og_title":"Installing ROS 2 Jazzy on Ubuntu 24.04: Step-by-Step Tutorial","og_description":"In robotics, controlling how fast a motor spins or how bright an LED shines is essential. PWM \u2014 Pulse Width Modulation \u2014 is the tool that makes this possible. Let\u2019s dive into what PWM is, how it works, and how you can use it in your own robotic projects. \ud83d\udd0d What is a PWM? PWM [&hellip;]","og_url":"https:\/\/learnbydoing.dev\/es\/understanding-pwm-in-robotics\/","og_site_name":"Learn by Doing!","article_published_time":"2025-07-08T13:53:18+00:00","article_modified_time":"2026-01-10T22:26:51+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/06\/Progetto-senza-titolo-14.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"","Tiempo de lectura":"4 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/#article","isPartOf":{"@id":"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/"},"author":{"name":"","@id":""},"headline":"Understanding PWM in Robotics","datePublished":"2025-07-08T13:53:18+00:00","dateModified":"2026-01-10T22:26:51+00:00","mainEntityOfPage":{"@id":"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/"},"wordCount":240,"publisher":{"@id":"https:\/\/learnbydoing.dev\/es\/#organization"},"image":{"@id":"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/#primaryimage"},"thumbnailUrl":"https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/Workspace-4.webp","keywords":["adc","analog","Arduino","brightness","c++","complete","cpp","duty cycle","dutycycle","frequency","Guide","hz","ide","learn by doing","pwm","servo","tutorial","voltage"],"articleSection":["Arduino","Electronics","Tutorials"],"inLanguage":"es"},{"@type":"WebPage","@id":"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/","url":"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/","name":"Understanding PWM in Robotics - Learn by Doing!","isPartOf":{"@id":"https:\/\/learnbydoing.dev\/es\/#website"},"primaryImageOfPage":{"@id":"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/#primaryimage"},"image":{"@id":"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/#primaryimage"},"thumbnailUrl":"https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/Workspace-4.webp","datePublished":"2025-07-08T13:53:18+00:00","dateModified":"2026-01-10T22:26:51+00:00","breadcrumb":{"@id":"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/#primaryimage","url":"https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/Workspace-4.webp","contentUrl":"https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/07\/Workspace-4.webp","width":1350,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/learnbydoing.dev\/understanding-pwm-in-robotics\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/learnbydoing.dev\/es\/learn-by-doing-es\/"},{"@type":"ListItem","position":2,"name":"Understanding PWM in Robotics"}]},{"@type":"WebSite","@id":"https:\/\/learnbydoing.dev\/es\/#website","url":"https:\/\/learnbydoing.dev\/es\/","name":"Learn by Doing!","description":"Learn Robotics the fun way","publisher":{"@id":"https:\/\/learnbydoing.dev\/es\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learnbydoing.dev\/es\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/learnbydoing.dev\/es\/#organization","name":"Learn by Doing!","url":"https:\/\/learnbydoing.dev\/es\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/learnbydoing.dev\/es\/#\/schema\/logo\/image\/","url":"https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/06\/cropped-cropped-cropped-Progetto-senza-titolo-6-1.png","contentUrl":"https:\/\/learnbydoing.dev\/wp-content\/uploads\/2025\/06\/cropped-cropped-cropped-Progetto-senza-titolo-6-1.png","width":512,"height":512,"caption":"Learn by Doing!"},"image":{"@id":"https:\/\/learnbydoing.dev\/es\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.linkedin.com\/in\/antonio-brandi-512166bb\/"]},{"@type":"Person","@id":"","url":"https:\/\/learnbydoing.dev\/es\/author\/"}]}},"_links":{"self":[{"href":"https:\/\/learnbydoing.dev\/es\/wp-json\/wp\/v2\/posts\/2538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/learnbydoing.dev\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learnbydoing.dev\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learnbydoing.dev\/es\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/learnbydoing.dev\/es\/wp-json\/wp\/v2\/comments?post=2538"}],"version-history":[{"count":13,"href":"https:\/\/learnbydoing.dev\/es\/wp-json\/wp\/v2\/posts\/2538\/revisions"}],"predecessor-version":[{"id":5568,"href":"https:\/\/learnbydoing.dev\/es\/wp-json\/wp\/v2\/posts\/2538\/revisions\/5568"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/learnbydoing.dev\/es\/wp-json\/wp\/v2\/media\/2547"}],"wp:attachment":[{"href":"https:\/\/learnbydoing.dev\/es\/wp-json\/wp\/v2\/media?parent=2538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learnbydoing.dev\/es\/wp-json\/wp\/v2\/categories?post=2538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learnbydoing.dev\/es\/wp-json\/wp\/v2\/tags?post=2538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}