{"id":12127,"date":"2016-10-11T21:48:19","date_gmt":"2016-10-12T01:48:19","guid":{"rendered":"http:\/\/embedded-lab.com\/blog\/?p=12127"},"modified":"2016-10-11T21:48:19","modified_gmt":"2016-10-12T01:48:19","slug":"universal-motor-driver-pic16f-mcus","status":"publish","type":"post","link":"https:\/\/embedded-lab.com\/blog\/universal-motor-driver-pic16f-mcus\/","title":{"rendered":"Universal motor driver for PIC16F MCUs"},"content":{"rendered":"<p>This <strong><a href=\"http:\/\/ww1.microchip.com\/downloads\/jp\/AppNotes\/jp587377.pdf\" target=\"_blank\">application note<\/a><\/strong> from Microchip presents the design of an\u00a0open-loop speed control TRIAC-driven universal motor\u00a0driver board. An\u00a0interesting thing about this design is it\u00a0uses\u00a0Core Independent Peripheral\u00a0(CIP) on an 8-bit microcontroller to optimize the processing speed and free\u00a0up the CPU usage.\u00a0The complete\u00a0source code and reference design material are\u00a0included.<\/p>\n<div id=\"attachment_12130\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2016\/10\/block.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-12130\" class=\"size-full wp-image-12130\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2016\/10\/block.jpg\" alt=\"Block diagram of motor controller\" width=\"600\" height=\"215\" srcset=\"https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2016\/10\/block.jpg 600w, https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2016\/10\/block-580x208.jpg 580w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><p id=\"caption-attachment-12130\" class=\"wp-caption-text\">Block diagram of motor controller<\/p><\/div>\n<blockquote><p>The universal motor used in this application note runs\u00a0from 120V-240V AC power and is driven from a TRIAC.\u00a0A bench test for running a 220V universal motor has\u00a0been done. The circuit is powered off the line from an\u00a0non-isolated AC supply; therefore, safety precautions\u00a0should be taken when working with this type of system.\u00a0An isolated on-board UART connection is available for\u00a0debugging on a live circuit.\u00a0The low-cost design and its type of motor are suitable\u00a0for high-torque motor applications commonly used in\u00a0blenders, food processors, drills and other home\u00a0appliances.<\/p>\n<p>&nbsp;<\/p>\n<p>As shown in Figure 2, the system consists of an AC\u00a0 supply as an input to a passive EMI filter. A selectable\u00a0capacitive or resistive power supply creates a DC\u00a0voltage for the microcontroller and its associated input\u00a0controls. An isolated UART bridge connects to the\u00a0microcontroller for debug purposes.<br \/>\nA single potentiometer (POT) controls the firing angle\u00a0of the TRIAC. The Zero-Cross Detection (ZCD)\u00a0hardware module provides the required\u00a0synchronization. The TRIAC is pulse driven from\u00a0multiple pins on the PIC16F1618. A few LEDs indicate\u00a0the firing angle. A momentary switch toggles the motor\u00a0ON or OFF.<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This application note from Microchip presents the design of an\u00a0open-loop speed control TRIAC-driven universal motor\u00a0driver board. An\u00a0interesting thing about this design is it\u00a0uses\u00a0Core Independent Peripheral\u00a0(CIP) on an 8-bit microcontroller to optimize the processing speed and free\u00a0up the CPU usage.\u00a0The complete\u00a0source code and reference design material are\u00a0included. The universal motor used in this application note runs\u00a0from 120V-240V AC power and is driven from a TRIAC.\u00a0A bench test for running a 220V universal motor has\u00a0been done. The circuit is powered off the line from an\u00a0non-isolated AC supply; therefore, safety precautions\u00a0should be taken when working with this type of system.\u00a0An isolated on-board UART<\/p>\n","protected":false},"author":1,"featured_media":12130,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,227],"tags":[],"class_list":["post-12127","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pic-projects","category-news"],"_links":{"self":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/12127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/comments?post=12127"}],"version-history":[{"count":4,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/12127\/revisions"}],"predecessor-version":[{"id":12132,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/12127\/revisions\/12132"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media\/12130"}],"wp:attachment":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media?parent=12127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/categories?post=12127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/tags?post=12127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}