{"id":731,"date":"2016-07-17T17:22:48","date_gmt":"2016-07-17T17:22:48","guid":{"rendered":"https:\/\/einhugur.com\/blog\/?page_id=731"},"modified":"2016-10-05T21:08:43","modified_gmt":"2016-10-05T21:08:43","slug":"led-orientation","status":"publish","type":"page","link":"https:\/\/einhugur.net\/blog\/index.php\/basic-electronics\/led-orientation\/","title":{"rendered":"LED orientation"},"content":{"rendered":"<h3>Orientation of a LED is important since a LED will not work if its oriented wrong.<\/h3>\n<p>&nbsp;<\/p>\n<p>If we first look at normal LED in the picture bellow then you can see that you have two ways to identify the + and \u2013 or anode vs cathode. Its the length of the pins where the longer wire is the anode and the shorter is the cathode. If wires have been trimmed then you can usually also see it on the LED it self the flat side on the edge is the cathode or \u2013 as is shown on the picture to right here.<\/p>\n<p><a href=\"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/10\/LED-Explained.png?ssl=1\"><img data-attachment-id=\"225\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/working-with-leds-and-wiring-4-pin-rgb-led-to-raspberry-pi\/led-explained\/\" data-orig-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/LED-Explained.png?fit=278%2C168&amp;ssl=1\" data-orig-size=\"278,168\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"LED Explained\" data-image-description=\"\" data-medium-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/LED-Explained.png?fit=278%2C168&amp;ssl=1\" data-large-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/LED-Explained.png?fit=278%2C168&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-225\" src=\"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/10\/LED-Explained.png?resize=278%2C168&amp;ssl=1\" alt=\"LED Explained\" width=\"278\" height=\"168\" \/><\/a><\/p>\n<p>For RGB led then things get a bit more complicated. RGB leds usually share common cathode (black which would be the longest wire or you can see it inside the glass by the shape there if the wire has been shortened), and then three anodes, red on the left then greed right of the cathode and then blue on far right.<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/10\/RGBLed-Explained.png?ssl=1\"><img data-attachment-id=\"228\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/working-with-leds-and-wiring-4-pin-rgb-led-to-raspberry-pi\/rgbled-explained\/\" data-orig-file=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/RGBLed-Explained.png?fit=84%2C231&amp;ssl=1\" data-orig-size=\"84,231\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"RGBLed Explained\" data-image-description=\"\" data-medium-file=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/RGBLed-Explained.png?fit=84%2C231&amp;ssl=1\" data-large-file=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/RGBLed-Explained.png?fit=84%2C231&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-228\" src=\"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/10\/RGBLed-Explained.png?resize=84%2C231&amp;ssl=1\" alt=\"RGBLed Explained\" width=\"84\" height=\"231\" \/><\/a><\/p>\n<p><em>(To complicate it a bit then I have seen RGB led where the anode was shared and there were three cathodes)<\/em><\/p>\n<p>For surface mounted LEDs then it can vary greatly. Here are some common ways\u00a0to mark\u00a0the Cathode on surface mounted LED&#8217;s:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/07\/CathodeMarkersImage-1.png?ssl=1\"><img data-attachment-id=\"801\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/basic-electronics\/led-orientation\/cathodemarkersimage-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/07\/CathodeMarkersImage-1.png?fit=500%2C591&amp;ssl=1\" data-orig-size=\"500,591\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"cathodemarkersimage\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/07\/CathodeMarkersImage-1.png?fit=254%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/07\/CathodeMarkersImage-1.png?fit=474%2C560&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-801\" src=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/07\/CathodeMarkersImage-1.png?resize=474%2C560&#038;ssl=1\" alt=\"cathodemarkersimage\" width=\"474\" height=\"560\" srcset=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/07\/CathodeMarkersImage-1.png?w=500&amp;ssl=1 500w, https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/07\/CathodeMarkersImage-1.png?resize=254%2C300&amp;ssl=1 254w\" sizes=\"(max-width: 474px) 100vw, 474px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>If you cannot find cathode marker on your surface mounted LED then you may have to look up its data-sheet.<\/p>\n<hr \/>\n<p><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<!-- Ad1 --><br \/>\n<ins class=\"adsbygoogle\" style=\"display: inline-block; width: 728px; height: 90px;\" data-ad-client=\"ca-pub-7239804524988398\" data-ad-slot=\"3151898264\"><\/ins><br \/>\n<script>\n(adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Orientation of a LED is important since a LED will not work if its oriented wrong. &nbsp; If we first look at normal LED in the picture bellow then you can see that you have two ways to identify the + and \u2013 or anode vs cathode. Its the length of the pins where the &hellip; <a href=\"https:\/\/einhugur.net\/blog\/index.php\/basic-electronics\/led-orientation\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">LED orientation<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":473,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"spay_email":""},"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/Pd75nk-bN","jetpack-related-posts":[{"id":224,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/working-with-leds-and-wiring-4-pin-rgb-led-to-raspberry-pi\/","url_meta":{"origin":731,"position":0},"title":"Working with LED's - And Wiring 4 pin RGB led to Raspberry PI","date":"October 12, 2015","format":false,"excerpt":"In this example we are going\u00a0learn some basics on how to calculate the resistor for LED, and we will take a look at how to wire up a 4 pin RGB LED. Disclaimer: We do not take any responsibility for possible errors in the guide or errors that you might\u2026","rel":"","context":"Similar post","img":{"alt_text":"RGBLedMutimeterTestNew","src":"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/10\/RGBLedMutimeterTestNew.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":311,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/putting-the-gpio-pin-behind-transistor-to-get-more-current\/","url_meta":{"origin":731,"position":1},"title":"Putting the GPIO pin behind transistor to get more current","date":"October 23, 2015","format":false,"excerpt":"In this example we are going to let the GPIO pin control a transistor so that we can draw more power when controlling a LED than what the GPIO pin can supply. We will be using a simple LED in this example where we aim to draw 16 mA power\u2026","rel":"","context":"Similar post","img":{"alt_text":"TransistorExperimentbb","src":"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/10\/TransistorExperimentbb.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":421,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/optocouplers\/","url_meta":{"origin":731,"position":2},"title":"Optocouplers","date":"April 18, 2016","format":false,"excerpt":"In this example we are going to take a look at Optocouplers. Disclaimer: We do not take any responsibility for possible errors in the guide or errors that you might do wiring it up. Incorrect wiring can result in damaged sensor or damaged Raspberry PI. Prerequisites: We hight recommend that\u2026","rel":"","context":"Similar post","img":{"alt_text":"Optocoupler","src":"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/04\/Optocoupler.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":473,"url":"https:\/\/einhugur.net\/blog\/index.php\/basic-electronics\/","url_meta":{"origin":731,"position":3},"title":"Basic electronics","date":"April 22, 2016","format":false,"excerpt":"LED orientation Resistor color codings Understanding transistor specification sheets Understanding your breadboard and placement of Raspberry cobbler Coding of small bodied capacitors Voltage dividers","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":853,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/hd44780-based-lcd-display-part-2-non-standard-sizes\/","url_meta":{"origin":731,"position":4},"title":"HD44780 BASED LCD DISPLAY - Part 2 (Non standard sizes)","date":"April 15, 2017","format":false,"excerpt":"In this example we are going to connect to some specialized HD44780 based displays. This article is followup on our previous article called\u00a0HD44780 based LCD display. The standard 16 x 2, or 20 x 2 or even 20 x 4 are great for many purposes, and cheap as well. But\u00a0sometimes\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2017\/04\/8x2Display.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":288,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/connecting-max7219_led_matrix-with-spi-bus\/","url_meta":{"origin":731,"position":5},"title":"Connecting MAX7219_LED_MATRIX with SPI bus","date":"October 21, 2015","format":false,"excerpt":"In this example we going to connect a\u00a0MAX7219_LED_MATRIX and control it with the SPI bus on the Raspberry PI. 8. Nov 2015 Important !! When I was working on next step in this to daisy chain more than one on same bus then I measured some extreme power usage at\u2026","rel":"","context":"Similar post","img":{"alt_text":"MAX7219_LED_MATRIX","src":"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX-e1445384705632.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/731"}],"collection":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=731"}],"version-history":[{"count":4,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/731\/revisions"}],"predecessor-version":[{"id":802,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/731\/revisions\/802"}],"up":[{"embeddable":true,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/473"}],"wp:attachment":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}