{"id":329,"date":"2024-08-17T02:01:30","date_gmt":"2024-08-16T19:01:30","guid":{"rendered":"http:\/\/www.tneutron.net\/mikro\/?p=329"},"modified":"2024-08-13T07:55:54","modified_gmt":"2024-08-13T00:55:54","slug":"microcontroller-interface-with-led-and-rele","status":"publish","type":"post","link":"https:\/\/www.tneutron.net\/mikro\/microcontroller-interface-with-led-and-rele\/","title":{"rendered":"Microcontroller Interface with LED and Rele"},"content":{"rendered":"<p><span class=\"notranslate\"><strong>Connect the parallel port with LED<\/strong><\/span><br \/>\n<span class=\"notranslate\"> General configuration for connecting an LED to a microcontroller is as shown in Figure 1:21 (a) LED lights up when the pin microcontroller given sinya LOW and will die when the pin microcontroller is HIGH.<\/span> <span class=\"notranslate\"> Prisoners are mounted on angkaian used to limit the current flowing through the LED.<\/span><br \/>\n<span class=\"notranslate\"> Resistance value is determined by the equation<\/span><br \/>\n<span class=\"notranslate\"> R = (VCC &#8211; VLED) \/ I<\/span><\/p>\n<p><span class=\"notranslate\"> Where VLED is the voltage across the LED and the first current flowing through the LED.<\/span><br \/>\n<span class=\"notranslate\"> In general VLED and I is 1.5 V and 20 mA.<\/span> <span class=\"notranslate\"> If the current source microcontroller enough ability to directly control the LED, the LED connected to the microcontroller as shown in Figure 1:21 (b).<\/span> <span class=\"notranslate\"> In this case the LED will light when the pin on the microcontroller is HIGH.<\/span><\/p>\n<p><a href=\"http:\/\/i0.wp.com\/www.tneutron.net\/mikro\/wp-content\/uploads\/sites\/5\/2015\/08\/image5.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" src=\"http:\/\/i1.wp.com\/www.tneutron.net\/mikro\/wp-content\/uploads\/sites\/5\/2015\/08\/image_thumb5.png?resize=181%2C188\" alt=\"image\" width=\"181\" height=\"188\" border=\"0\" \/><\/a><\/p>\n<p><span class=\"notranslate\"> Figure 21 (a) Active Low<\/span><\/p>\n<p><a href=\"http:\/\/i0.wp.com\/www.tneutron.net\/mikro\/wp-content\/uploads\/sites\/5\/2015\/08\/image8.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" src=\"http:\/\/i1.wp.com\/www.tneutron.net\/mikro\/wp-content\/uploads\/sites\/5\/2015\/08\/image_thumb10.png?resize=180%2C222\" alt=\"image\" width=\"180\" height=\"222\" border=\"0\" \/><\/a><\/p>\n<p><span class=\"notranslate\"> Figure 22 (b) Active High<\/span><\/p>\n<p><span class=\"notranslate\"> <strong>Interfaces with Rele<\/strong><\/span><br \/>\n<span class=\"notranslate\"> Figure 1:22 shows the connection diagrams for relay interface with a microcontroller.<\/span> <span class=\"notranslate\"> NPN transistor is used to provide the desired current to the relay coil because the microcontroller can not be directly connected to the microcontroller pins.<\/span> <span class=\"notranslate\"> When the pin microcontroller in the set HIGH transistor will be ON, then a current flows through the coil and contact will be closed.<\/span> <span class=\"notranslate\"> When the microcontroller pin is LOW, transistor OFF and the inductor current now flowing through the diode will drop to zero and the contact will open.<\/span><\/p>\n<p><a href=\"http:\/\/i1.wp.com\/www.tneutron.net\/mikro\/wp-content\/uploads\/sites\/5\/2015\/08\/image12.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" src=\"http:\/\/i1.wp.com\/www.tneutron.net\/mikro\/wp-content\/uploads\/sites\/5\/2015\/08\/image_thumb11.png?resize=253%2C192\" alt=\"image\" width=\"253\" height=\"192\" border=\"0\" \/><\/a><\/p>\n<p><span class=\"notranslate\"> Figure 23 Interface relay with microcontroller<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Connect the parallel port with LED General configuration for connecting an LED to a microcontroller is as shown in Figure<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[1238],"tags":[332,338,333,337,341,339,334,335,336,340],"class_list":["post-329","post","type-post","status-publish","format-standard","hentry","category-english","tag-microcontroller-interface","tag-microcontroller-interface-board","tag-microcontroller-interface-circuits","tag-microcontroller-interface-to-relays-by-uln2003","tag-microcontroller-interface-with-gsm-modem","tag-microcontroller-interface-with-labview","tag-microcontroller-interface-with-lcd","tag-microcontroller-interface-with-pc","tag-microcontroller-interface-with-stepper-motor","tag-microcontroller-interfaces-part-1"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Microcontroller Interface with LED and Rele - TN Mikro<\/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:\/\/www.tneutron.net\/mikro\/microcontroller-interface-with-led-and-rele\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Microcontroller Interface with LED and Rele - TN Mikro\" \/>\n<meta name=\"twitter:description\" content=\"Connect the parallel port with LED General configuration for connecting an LED to a microcontroller is as shown in Figure\" \/>\n<meta name=\"twitter:image\" content=\"http:\/\/i1.wp.com\/www.tneutron.net\/mikro\/wp-content\/uploads\/sites\/5\/2015\/08\/image_thumb5.png?resize=181%2C188\" \/>\n<meta name=\"twitter:creator\" content=\"@t_neutron\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Taufiqullah\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tneutron.net\\\/mikro\\\/microcontroller-interface-with-led-and-rele\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tneutron.net\\\/mikro\\\/microcontroller-interface-with-led-and-rele\\\/\"},\"author\":{\"name\":\"Taufiqullah\",\"@id\":\"https:\\\/\\\/www.tneutron.net\\\/mikro\\\/#\\\/schema\\\/person\\\/b57f791b694136047454bb6ac5cbe375\"},\"headline\":\"Microcontroller Interface with LED and Rele\",\"datePublished\":\"2024-08-16T19:01:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tneutron.net\\\/mikro\\\/microcontroller-interface-with-led-and-rele\\\/\"},\"wordCount\":237,\"image\":{\"@id\":\"https:\\\/\\\/www.tneutron.net\\\/mikro\\\/microcontroller-interface-with-led-and-rele\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/i1.wp.com\\\/www.tneutron.net\\\/mikro\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2015\\\/08\\\/image_thumb5.png?resize=181%2C188\",\"keywords\":[\"Microcontroller Interface\",\"microcontroller interface board\",\"microcontroller interface circuits\",\"microcontroller interface to relays by uln2003\",\"microcontroller interface with gsm modem\",\"microcontroller interface with labview\",\"microcontroller interface with lcd\",\"microcontroller interface with pc\",\"microcontroller interface with stepper motor\",\"microcontroller interfaces part 1\"],\"articleSection\":[\"English\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tneutron.net\\\/mikro\\\/microcontroller-interface-with-led-and-rele\\\/\",\"url\":\"https:\\\/\\\/www.tneutron.net\\\/mikro\\\/microcontroller-interface-with-led-and-rele\\\/\",\"name\":\"Microcontroller Interface with LED and Rele - TN Mikro\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tneutron.net\\\/mikro\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.tneutron.net\\\/mikro\\\/microcontroller-interface-with-led-and-rele\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.tneutron.net\\\/mikro\\\/microcontroller-interface-with-led-and-rele\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/i1.wp.com\\\/www.tneutron.net\\\/mikro\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2015\\\/08\\\/image_thumb5.png?resize=181%2C188\",\"datePublished\":\"2024-08-16T19:01:30+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.tneutron.net\\\/mikro\\\/#\\\/schema\\\/person\\\/b57f791b694136047454bb6ac5cbe375\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tneutron.net\\\/mikro\\\/microcontroller-interface-with-led-and-rele\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.tneutron.net\\\/mikro\\\/microcontroller-interface-with-led-and-rele\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.tneutron.net\\\/mikro\\\/microcontroller-interface-with-led-and-rele\\\/#primaryimage\",\"url\":\"http:\\\/\\\/i1.wp.com\\\/www.tneutron.net\\\/mikro\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2015\\\/08\\\/image_thumb5.png?resize=181%2C188\",\"contentUrl\":\"http:\\\/\\\/i1.wp.com\\\/www.tneutron.net\\\/mikro\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2015\\\/08\\\/image_thumb5.png?resize=181%2C188\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tneutron.net\\\/mikro\\\/microcontroller-interface-with-led-and-rele\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tneutron.net\\\/mikro\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Microcontroller Interface with LED and Rele\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tneutron.net\\\/mikro\\\/#website\",\"url\":\"https:\\\/\\\/www.tneutron.net\\\/mikro\\\/\",\"name\":\"TN Mikro\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.tneutron.net\\\/mikro\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tneutron.net\\\/mikro\\\/#\\\/schema\\\/person\\\/b57f791b694136047454bb6ac5cbe375\",\"name\":\"Taufiqullah\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/dcdf36434717ce57bea7f17eb3c140a2ff8def45941b720aa8fc1cccd6cdd505?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/dcdf36434717ce57bea7f17eb3c140a2ff8def45941b720aa8fc1cccd6cdd505?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/dcdf36434717ce57bea7f17eb3c140a2ff8def45941b720aa8fc1cccd6cdd505?s=96&d=mm&r=g\",\"caption\":\"Taufiqullah\"},\"description\":\"Taufiqullah\",\"sameAs\":[\"http:\\\/\\\/www.tneutron.net\",\"https:\\\/\\\/x.com\\\/t_neutron\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Microcontroller Interface with LED and Rele - TN Mikro","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:\/\/www.tneutron.net\/mikro\/microcontroller-interface-with-led-and-rele\/","twitter_card":"summary_large_image","twitter_title":"Microcontroller Interface with LED and Rele - TN Mikro","twitter_description":"Connect the parallel port with LED General configuration for connecting an LED to a microcontroller is as shown in Figure","twitter_image":"http:\/\/i1.wp.com\/www.tneutron.net\/mikro\/wp-content\/uploads\/sites\/5\/2015\/08\/image_thumb5.png?resize=181%2C188","twitter_creator":"@t_neutron","twitter_misc":{"Written by":"Taufiqullah","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tneutron.net\/mikro\/microcontroller-interface-with-led-and-rele\/#article","isPartOf":{"@id":"https:\/\/www.tneutron.net\/mikro\/microcontroller-interface-with-led-and-rele\/"},"author":{"name":"Taufiqullah","@id":"https:\/\/www.tneutron.net\/mikro\/#\/schema\/person\/b57f791b694136047454bb6ac5cbe375"},"headline":"Microcontroller Interface with LED and Rele","datePublished":"2024-08-16T19:01:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.tneutron.net\/mikro\/microcontroller-interface-with-led-and-rele\/"},"wordCount":237,"image":{"@id":"https:\/\/www.tneutron.net\/mikro\/microcontroller-interface-with-led-and-rele\/#primaryimage"},"thumbnailUrl":"http:\/\/i1.wp.com\/www.tneutron.net\/mikro\/wp-content\/uploads\/sites\/5\/2015\/08\/image_thumb5.png?resize=181%2C188","keywords":["Microcontroller Interface","microcontroller interface board","microcontroller interface circuits","microcontroller interface to relays by uln2003","microcontroller interface with gsm modem","microcontroller interface with labview","microcontroller interface with lcd","microcontroller interface with pc","microcontroller interface with stepper motor","microcontroller interfaces part 1"],"articleSection":["English"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.tneutron.net\/mikro\/microcontroller-interface-with-led-and-rele\/","url":"https:\/\/www.tneutron.net\/mikro\/microcontroller-interface-with-led-and-rele\/","name":"Microcontroller Interface with LED and Rele - TN Mikro","isPartOf":{"@id":"https:\/\/www.tneutron.net\/mikro\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.tneutron.net\/mikro\/microcontroller-interface-with-led-and-rele\/#primaryimage"},"image":{"@id":"https:\/\/www.tneutron.net\/mikro\/microcontroller-interface-with-led-and-rele\/#primaryimage"},"thumbnailUrl":"http:\/\/i1.wp.com\/www.tneutron.net\/mikro\/wp-content\/uploads\/sites\/5\/2015\/08\/image_thumb5.png?resize=181%2C188","datePublished":"2024-08-16T19:01:30+00:00","author":{"@id":"https:\/\/www.tneutron.net\/mikro\/#\/schema\/person\/b57f791b694136047454bb6ac5cbe375"},"breadcrumb":{"@id":"https:\/\/www.tneutron.net\/mikro\/microcontroller-interface-with-led-and-rele\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.tneutron.net\/mikro\/microcontroller-interface-with-led-and-rele\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.tneutron.net\/mikro\/microcontroller-interface-with-led-and-rele\/#primaryimage","url":"http:\/\/i1.wp.com\/www.tneutron.net\/mikro\/wp-content\/uploads\/sites\/5\/2015\/08\/image_thumb5.png?resize=181%2C188","contentUrl":"http:\/\/i1.wp.com\/www.tneutron.net\/mikro\/wp-content\/uploads\/sites\/5\/2015\/08\/image_thumb5.png?resize=181%2C188"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tneutron.net\/mikro\/microcontroller-interface-with-led-and-rele\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.tneutron.net\/mikro\/"},{"@type":"ListItem","position":2,"name":"Microcontroller Interface with LED and Rele"}]},{"@type":"WebSite","@id":"https:\/\/www.tneutron.net\/mikro\/#website","url":"https:\/\/www.tneutron.net\/mikro\/","name":"TN Mikro","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.tneutron.net\/mikro\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.tneutron.net\/mikro\/#\/schema\/person\/b57f791b694136047454bb6ac5cbe375","name":"Taufiqullah","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/dcdf36434717ce57bea7f17eb3c140a2ff8def45941b720aa8fc1cccd6cdd505?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/dcdf36434717ce57bea7f17eb3c140a2ff8def45941b720aa8fc1cccd6cdd505?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dcdf36434717ce57bea7f17eb3c140a2ff8def45941b720aa8fc1cccd6cdd505?s=96&d=mm&r=g","caption":"Taufiqullah"},"description":"Taufiqullah","sameAs":["http:\/\/www.tneutron.net","https:\/\/x.com\/t_neutron"]}]}},"_links":{"self":[{"href":"https:\/\/www.tneutron.net\/mikro\/wp-json\/wp\/v2\/posts\/329","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tneutron.net\/mikro\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tneutron.net\/mikro\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tneutron.net\/mikro\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tneutron.net\/mikro\/wp-json\/wp\/v2\/comments?post=329"}],"version-history":[{"count":1,"href":"https:\/\/www.tneutron.net\/mikro\/wp-json\/wp\/v2\/posts\/329\/revisions"}],"predecessor-version":[{"id":2859,"href":"https:\/\/www.tneutron.net\/mikro\/wp-json\/wp\/v2\/posts\/329\/revisions\/2859"}],"wp:attachment":[{"href":"https:\/\/www.tneutron.net\/mikro\/wp-json\/wp\/v2\/media?parent=329"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tneutron.net\/mikro\/wp-json\/wp\/v2\/categories?post=329"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tneutron.net\/mikro\/wp-json\/wp\/v2\/tags?post=329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}