{"id":7666,"date":"2013-07-26T17:08:29","date_gmt":"2013-07-26T21:08:29","guid":{"rendered":"http:\/\/embedded-lab.com\/blog\/?p=7666"},"modified":"2013-07-26T17:09:09","modified_gmt":"2013-07-26T21:09:09","slug":"spi7segdisp4-40-1r-led-displays-are-back-in-stock","status":"publish","type":"post","link":"https:\/\/embedded-lab.com\/blog\/spi7segdisp4-40-1r-led-displays-are-back-in-stock\/","title":{"rendered":"SPI7SEGDISP4.40-1R LED displays are back in stock"},"content":{"rendered":"<p><strong><a href=\"http:\/\/embedded-lab.com\/blog\/?p=4935\" target=\"_blank\">SPI7SEGDISP4.40-1R<\/a><\/strong> is a serial 4-digit seven segment LED display based on MAXIM&#8217;s MAX7219 device. This display module can be interfaced with any microcontroller that has 3 I\/O pins available. If the microcontroller features a built-in hardware SPI, then the display module can be interfaced as a SPI slave device. In that case the SPI signal lines SDO (serial data out), SCLK (serial clock), and SS (slave select) from the microcontroller can be directly connected to the DIN, CLK, and LOAD pins labeled on the display module. CS is active low signal.<\/p>\n<p>In case the host microcontroller doesn\u2019t have a hardware SPI module, the interface can be implemented in software. <strong><a href=\"http:\/\/embedded-lab.com\/blog\/?p=4935\">Click here<\/a><\/strong> for an example that illustrates how to write a software SPI routine to drive the display module with three general purpose I\/O pins of the PIC12F683 microcontroller.<\/p>\n<p><div id=\"attachment_7670\" style=\"width: 575px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2013\/07\/SPI7SEGDISP4.401R_3.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7670\" class=\"size-full wp-image-7670\" title=\"SPI7SEGDISP4.401R_3\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2013\/07\/SPI7SEGDISP4.401R_3.jpg\" alt=\"\" width=\"565\" height=\"414\" srcset=\"https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2013\/07\/SPI7SEGDISP4.401R_3.jpg 565w, https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2013\/07\/SPI7SEGDISP4.401R_3-550x403.jpg 550w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/a><p id=\"caption-attachment-7670\" class=\"wp-caption-text\">SPI7SEGDISP4.40-1R LED display module<\/p><\/div><br \/>\n<!--more--><\/p>\n<h3>Features:<\/h3>\n<ul>\n<li>based on MAX7219 display driver<\/li>\n<li>SPI interface (3 pins)<\/li>\n<li>operates at +5V supply<\/li>\n<li>individual control of all digits and decimal points<\/li>\n<li>display brightness control through software<\/li>\n<li>dimensions 1.95? x 1.4? (50mm x 36mm)<\/li>\n<li>high quality LTC-4727JS display (0.40&#8243;) module that emits bright yellow light<\/li>\n<li>colon segments for displaying time (MM:SS or HH:MM)<\/li>\n<li>fully assembled and tested board<\/li>\n<\/ul>\n<div>The SPI7SEGDISP4.40-1R module can also be interfaced with an Arduino board using the <strong><a href=\"http:\/\/arduino.cc\/playground\/Main\/LedControl\" target=\"_blank\">LedControl<\/a><\/strong> library. See an example below.<\/div>\n\n<div class=\"wp_syntax\"><table><tr><td class=\"code\"><pre class=\"c\" style=\"font-family:monospace;\"><span style=\"color: #339933;\">#include &quot;LedControl.h&quot;<\/span>\n<span style=\"color: #666666; font-style: italic;\">\/\/ Arduino Pin 7 to DIN, 6 to Clk, 5 to LOAD, no.of devices is 1<\/span>\nLedControl lc<span style=\"color: #339933;\">=<\/span>LedControl<span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #0000dd;\">7<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000dd;\">6<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000dd;\">5<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000dd;\">1<\/span><span style=\"color: #009900;\">&#41;<\/span><span style=\"color: #339933;\">;<\/span>\n<span style=\"color: #993333;\">void<\/span> setup<span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #009900;\">&#41;<\/span>\n<span style=\"color: #009900;\">&#123;<\/span>\n <span style=\"color: #666666; font-style: italic;\">\/\/ Initialize the MAX7219 device<\/span>\n  lc.<span style=\"color: #202020;\">shutdown<\/span><span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #0000dd;\">0<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #000000; font-weight: bold;\">false<\/span><span style=\"color: #009900;\">&#41;<\/span><span style=\"color: #339933;\">;<\/span>   <span style=\"color: #666666; font-style: italic;\">\/\/ Enable display<\/span>\n  lc.<span style=\"color: #202020;\">setIntensity<\/span><span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #0000dd;\">0<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000dd;\">15<\/span><span style=\"color: #009900;\">&#41;<\/span><span style=\"color: #339933;\">;<\/span>  <span style=\"color: #666666; font-style: italic;\">\/\/ Set brightness level (0 is min, 15 is max)<\/span>\n  lc.<span style=\"color: #202020;\">clearDisplay<\/span><span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #0000dd;\">0<\/span><span style=\"color: #009900;\">&#41;<\/span><span style=\"color: #339933;\">;<\/span>     <span style=\"color: #666666; font-style: italic;\">\/\/ Clear display register<\/span>\n<span style=\"color: #009900;\">&#125;<\/span>\n<span style=\"color: #993333;\">void<\/span> loop<span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #009900;\">&#41;<\/span>\n<span style=\"color: #009900;\">&#123;<\/span>\n  lc.<span style=\"color: #202020;\">setDigit<\/span><span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #0000dd;\">0<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000dd;\">0<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000dd;\">4<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #000000; font-weight: bold;\">true<\/span><span style=\"color: #009900;\">&#41;<\/span><span style=\"color: #339933;\">;<\/span> <span style=\"color: #666666; font-style: italic;\">\/\/ Display 4 to Digit 4, and turn DP on<\/span>\n  lc.<span style=\"color: #202020;\">setDigit<\/span><span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #0000dd;\">0<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000dd;\">1<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000dd;\">3<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #000000; font-weight: bold;\">true<\/span><span style=\"color: #009900;\">&#41;<\/span><span style=\"color: #339933;\">;<\/span> <span style=\"color: #666666; font-style: italic;\">\/\/ Display 3 to Digit 3, &quot; &quot;<\/span>\n  lc.<span style=\"color: #202020;\">setDigit<\/span><span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #0000dd;\">0<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000dd;\">2<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000dd;\">2<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #000000; font-weight: bold;\">true<\/span><span style=\"color: #009900;\">&#41;<\/span><span style=\"color: #339933;\">;<\/span> <span style=\"color: #666666; font-style: italic;\">\/\/ Display 2 to Digit 2, &quot; &quot; <\/span>\n  lc.<span style=\"color: #202020;\">setDigit<\/span><span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #0000dd;\">0<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000dd;\">3<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000dd;\">1<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #000000; font-weight: bold;\">true<\/span><span style=\"color: #009900;\">&#41;<\/span><span style=\"color: #339933;\">;<\/span> <span style=\"color: #666666; font-style: italic;\">\/\/ Display 1 to Digit 1, &quot; &quot;<\/span>\n  lc.<span style=\"color: #202020;\">setDigit<\/span><span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #0000dd;\">0<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000dd;\">4<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000dd;\">3<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #000000; font-weight: bold;\">true<\/span><span style=\"color: #009900;\">&#41;<\/span><span style=\"color: #339933;\">;<\/span> <span style=\"color: #666666; font-style: italic;\">\/\/ Turns L1, L2, and L3 on<\/span>\n  delay<span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #0000dd;\">1000<\/span><span style=\"color: #009900;\">&#41;<\/span><span style=\"color: #339933;\">;<\/span>\n<span style=\"color: #009900;\">&#125;<\/span><\/pre><\/td><\/tr><\/table><\/div>\n\n<div>\n<div id=\"attachment_7672\" style=\"width: 575px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2013\/07\/SPI7SEGDISP4.401R_21.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7672\" class=\"size-full wp-image-7672\" title=\"SPI7SEGDISP4.401R_2\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2013\/07\/SPI7SEGDISP4.401R_21.jpg\" alt=\"\" width=\"565\" height=\"427\" srcset=\"https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2013\/07\/SPI7SEGDISP4.401R_21.jpg 565w, https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2013\/07\/SPI7SEGDISP4.401R_21-550x415.jpg 550w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/a><p id=\"caption-attachment-7672\" class=\"wp-caption-text\">Arduino and SPI7SEGDISP4.40-1R<\/p><\/div>\n<p><strong><a href=\"https:\/\/www.tindie.com\/products\/rajbex\/spi-4-digit-seven-segment-led-display\/\" target=\"_blank\">Buy SPI7SEG4.40-1R Display Board for $11.99 on Tindie!<\/a><\/strong><\/div>\n","protected":false},"excerpt":{"rendered":"<p>SPI7SEGDISP4.40-1R is a serial 4-digit seven segment LED display based on MAXIM&#8217;s MAX7219 device. This display module can be interfaced with any microcontroller that has 3 I\/O pins available. If the microcontroller features a built-in hardware SPI, then the display module can be interfaced as a SPI slave device. In that case the SPI signal lines SDO (serial data out), SCLK (serial clock), and SS (slave select) from the microcontroller can be directly connected to the DIN, CLK, and LOAD pins labeled on the display module. CS is active low signal. In case the host microcontroller doesn\u2019t have a hardware<\/p>\n","protected":false},"author":1,"featured_media":7670,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[150,437],"tags":[148,1317,439],"class_list":["post-7666","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino-2","category-products","tag-arduino","tag-led-display","tag-max7219"],"_links":{"self":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/7666","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=7666"}],"version-history":[{"count":5,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/7666\/revisions"}],"predecessor-version":[{"id":7677,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/7666\/revisions\/7677"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media\/7670"}],"wp:attachment":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media?parent=7666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/categories?post=7666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/tags?post=7666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}