{"id":1248,"date":"2021-02-06T18:47:23","date_gmt":"2021-02-06T18:47:23","guid":{"rendered":"https:\/\/www.adrian-smith31.co.uk\/blog\/?p=1248"},"modified":"2021-03-11T17:22:57","modified_gmt":"2021-03-11T17:22:57","slug":"the-dm134b-16-bit-shift-register-with-constant-current-led-drivers","status":"publish","type":"post","link":"https:\/\/www.adrian-smith31.co.uk\/blog\/2021\/02\/the-dm134b-16-bit-shift-register-with-constant-current-led-drivers\/","title":{"rendered":"The DM134B 16 bit shift register with constant current LED drivers"},"content":{"rendered":"<p>I have quite a few DM134B IC&#8217;s which are 16 bit shift registers complete with constant current LED drivers built in so I decided to make something useful from them. The chips require minimal components; LED current is simply set via an external resistor which is far better than having to use 16 individual resistors. The snag with these chips is that they are surface mount in the SOP-24 package. So to fit them into a prototype board I bought a SOP-24 to DIP converter and soldered one to it and began to experiment with an Arduino and found that they work just fine with the shiftout and direct SPI functions. Just like any other latched shift register.<\/p>\n<p><a href=\"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/PXL_20210203_202826471-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-1246\" src=\"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/PXL_20210203_202826471-300x169.jpg\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/PXL_20210203_202826471-300x169.jpg 300w, https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/PXL_20210203_202826471-1024x576.jpg 1024w, https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/PXL_20210203_202826471-768x432.jpg 768w, https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/PXL_20210203_202826471-1536x864.jpg 1536w, https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/PXL_20210203_202826471-2048x1152.jpg 2048w, https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/PXL_20210203_202826471-600x338.jpg 600w, https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/PXL_20210203_202826471-1040x585.jpg 1040w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>One chip behaves like two 74HC595&#8217;s in series albeit the output enable is active low instead of active high like the &#8216;595. I wrote a small demo program that counts from 0-999.9 seconds to test them and had some sample breakout PCB&#8217;s made in which an Arduino Nano could be fitted to. They worked well so they will definitely be useful for future projects. The demo board contains two DM134B&#8217;s daisy chained driving four 7 segment displays which can be used as a voltmeter, temperature readout or indeed any project that needs a 4 digit display. As mentioned above the demo board has space for an Arduino Nano and pins are broke out onto adjacent headers so that they can be used for another purpose such as analog inputs etc.<\/p>\n<p>Here&#8217;s the schematic and photos of the demo board. I&#8217;ve kept one but the other four I&#8217;ve put on eBay as I&#8217;m sure they will be useful to someone. The firmware for the demo board can be downloaded <a href=\"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/DM134B_Nano.zip\" target=\"_blank\" rel=\"noopener\">here.<\/a><\/p>\n<p>Link to Ebay UK where you can purchase these <a href=\"https:\/\/www.ebay.co.uk\/itm\/193904797643\" target=\"_blank\" rel=\"noopener\">https:\/\/www.ebay.co.uk\/itm\/193904797643<\/a><\/p>\n<p>Electronic tape measure using HC-SR04 ultrasonic sensor <a href=\"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/Tape_Measure.zip\" target=\"_blank\" rel=\"noopener\">demo code<\/a><\/p>\n<p>Also available on my Tindie store <a href=\"https:\/\/www.tindie.com\/products\/22759\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.tindie.com\/products\/22759\/<\/a><\/p>\n<p>Instructions (PDF describing the operation and pinouts) <a href=\"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/DM134B-PCB-instructions.pdf\" target=\"_blank\" rel=\"noopener\">DM134B PCB instructions<\/a><\/p>\n<p>Video <a href=\"https:\/\/youtu.be\/-rPsJusRiV0\" target=\"_blank\" rel=\"noopener\">https:\/\/youtu.be\/-rPsJusRiV0<\/a><\/p>\n<p>Schematic:-<\/p>\n<p><a href=\"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/DM134B-demo-schematic.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-1245\" src=\"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/DM134B-demo-schematic-300x212.jpg\" alt=\"\" width=\"300\" height=\"212\" srcset=\"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/DM134B-demo-schematic-300x212.jpg 300w, https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/DM134B-demo-schematic-1024x724.jpg 1024w, https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/DM134B-demo-schematic-768x543.jpg 768w, https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/DM134B-demo-schematic-1536x1086.jpg 1536w, https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/DM134B-demo-schematic-2048x1448.jpg 2048w, https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/DM134B-demo-schematic-600x424.jpg 600w, https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/DM134B-demo-schematic-1040x735.jpg 1040w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>A photo of it working:-<\/p>\n<p><a href=\"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/PXL_20210203_202900728.MP_-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-1247\" src=\"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/PXL_20210203_202900728.MP_-300x169.jpg\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/PXL_20210203_202900728.MP_-300x169.jpg 300w, https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/PXL_20210203_202900728.MP_-1024x576.jpg 1024w, https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/PXL_20210203_202900728.MP_-768x432.jpg 768w, https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/PXL_20210203_202900728.MP_-1536x864.jpg 1536w, https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/PXL_20210203_202900728.MP_-2048x1152.jpg 2048w, https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/PXL_20210203_202900728.MP_-600x338.jpg 600w, https:\/\/www.adrian-smith31.co.uk\/blog\/wp-content\/uploads\/2021\/02\/PXL_20210203_202900728.MP_-1040x585.jpg 1040w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have quite a few DM134B IC&#8217;s which are 16 bit shift registers complete with constant current LED drivers built in so I decided to make something useful from them. The chips require minimal components; LED current is simply set via an external resistor which is far better than having to use 16 individual resistors. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"The DM134B 16 bit shift register with constant current LED drivers - Adrian's electronics blog","description":"I have quite a few DM134B IC's which are 16 bit shift registers complete with constant current LED drivers built in so I decided to make something useful from t"},"footnotes":""},"categories":[1,4],"tags":[],"class_list":["post-1248","post","type-post","status-publish","format-standard","hentry","category-uncategorized","category-microcontrollers"],"_links":{"self":[{"href":"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-json\/wp\/v2\/posts\/1248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=1248"}],"version-history":[{"count":9,"href":"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-json\/wp\/v2\/posts\/1248\/revisions"}],"predecessor-version":[{"id":1320,"href":"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-json\/wp\/v2\/posts\/1248\/revisions\/1320"}],"wp:attachment":[{"href":"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=1248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=1248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.adrian-smith31.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=1248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}