{"id":814,"date":"2021-06-27T21:13:27","date_gmt":"2021-06-27T21:13:27","guid":{"rendered":"https:\/\/mc.scsiraidguru.com\/?page_id=814"},"modified":"2024-03-03T16:31:39","modified_gmt":"2024-03-03T16:31:39","slug":"cascading-sipo-and-piso","status":"publish","type":"page","link":"https:\/\/mc.scsiraidguru.com\/index.php\/arduino\/shift-registers\/165-and-595\/cascading-sipo-and-piso\/","title":{"rendered":"cascading SIPO and PISO"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"814\" class=\"elementor elementor-814\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-439a584 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"439a584\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b2fd40e\" data-id=\"b2fd40e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-526e4fc elementor-widget elementor-widget-text-editor\" data-id=\"526e4fc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><span id=\"calcstardate\"><b class=\"heading\">Stardate<\/b> 98788.27<\/span><\/p><p>Day 5 trapped in my broken spaceship.\u00a0\u00a0 I managed to cascade two SN74HC595 SIPO modules together to get 16 lights working front to back.\u00a0\u00a0 The I2C computer is functioning.\u00a0<\/p><p>I placed two 100\u03bcf capacitors on the 5V power bus just outside the 5V connections of slave 1 and 4 to clean up the DC power.\u00a0<\/p><p>7 connections to Slave 1 for SN74HC165 and SN74HC595.\u00a0 16 dip switches going to 16 LEDs.\u00a0 So 7 connections controls 32 things.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-cd2f9f3 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"cd2f9f3\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d20b3fe\" data-id=\"d20b3fe\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b685375 elementor-widget elementor-widget-image\" data-id=\"b685375\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/2xSN74HC59516LEDs-scaled.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"2xSN74HC595+16LEDs\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6ODIwLCJ1cmwiOiJodHRwczpcL1wvbWMuc2NzaXJhaWRndXJ1LmNvbVwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDZcLzJ4U043NEhDNTk1MTZMRURzLXNjYWxlZC5qcGcifQ%3D%3D\">\n\t\t\t\t\t\t\t<img data-opt-id=616967164  fetchpriority=\"high\" decoding=\"async\" width=\"225\" height=\"300\" src=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:225\/h:300\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/2xSN74HC59516LEDs-scaled.jpg\" class=\"attachment-medium size-medium wp-image-820\" alt=\"\" srcset=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:810\/h:1080\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/2xSN74HC59516LEDs-scaled.jpg 1920w, https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:225\/h:300\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/2xSN74HC59516LEDs-scaled.jpg 225w, https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:768\/h:1024\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/2xSN74HC59516LEDs-scaled.jpg 768w, https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:810\/h:1080\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/2xSN74HC59516LEDs-scaled.jpg 1152w, https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:810\/h:1080\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/2xSN74HC59516LEDs-scaled.jpg 1536w\" sizes=\"(max-width: 225px) 100vw, 225px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d6457a4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d6457a4\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a23f8fa\" data-id=\"a23f8fa\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ee253ae elementor-widget elementor-widget-text-editor\" data-id=\"ee253ae\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The two SN74HC595N SIPO Shift Registers are cascaded together.\u00a0<\/p><p>Master\u00a0 &#8211;\u00a0 Slave HC74HC595N<br \/>Pin 9 to pin 13: Black<br \/>Pin 11 to pin 11: Blue: <br \/>Pin 12 to pin 12: White<\/p><p>Grounds and 5V are on the same buses.\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-26bfe22 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"26bfe22\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-64a1d1f\" data-id=\"64a1d1f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6e7d2e4 elementor-widget elementor-widget-image\" data-id=\"6e7d2e4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/SN74HC595Nx2-with-16-leds-draw1.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"SN74HC595Nx2 with 16 leds draw1\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6ODI3LCJ1cmwiOiJodHRwczpcL1wvbWMuc2NzaXJhaWRndXJ1LmNvbVwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDZcL1NONzRIQzU5NU54Mi13aXRoLTE2LWxlZHMtZHJhdzEuanBnIn0%3D\">\n\t\t\t\t\t\t\t<img data-opt-id=1794947774  fetchpriority=\"high\" decoding=\"async\" width=\"300\" height=\"158\" src=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:300\/h:158\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/SN74HC595Nx2-with-16-leds-draw1.jpg\" class=\"attachment-medium size-medium wp-image-827\" alt=\"\" srcset=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:1472\/h:775\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/SN74HC595Nx2-with-16-leds-draw1.jpg 1472w, https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:300\/h:158\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/SN74HC595Nx2-with-16-leds-draw1.jpg 300w, https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:1024\/h:539\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/SN74HC595Nx2-with-16-leds-draw1.jpg 1024w, https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:768\/h:404\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/SN74HC595Nx2-with-16-leds-draw1.jpg 768w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-fbd58c1 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"fbd58c1\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-350f700\" data-id=\"350f700\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-427208e elementor-widget elementor-widget-text-editor\" data-id=\"427208e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>I found in the back of the ship some 8 dip switches and SN74HC165 PISO shift registers.\u00a0 In order to save power in the ship, I connected each LED to a dip switch.<\/p><p>Dip switch 1 : front Red LED<br \/>Dip switch 2: front Blue LED<\/p><p>Dip switch 8: back Green LED<\/p><p>SN74HC165<br \/>A : switch 8<br \/>B:\u00a0 switch 7<br \/>C: switch 6<br \/>D: switch 5<br \/>E: switch 4<br \/>F: switch 3<br \/>G: switch 2<br \/>H: switch 1<\/p><p>Both of the SN74HC595 and SN74HC165 are cascaded so it was a 16 bit Byte.\u00a0\u00a0<\/p><p>SH74HC165 to Arduino<br \/>Pin 1 to Pin 7<br \/>Pin 2 to Pin 6<br \/>Pin 7 to Pin 5<br \/>Pin 15 to Pin 4<\/p><p>Master Arduino to Slave Arduino<br \/>Pin 10 to Pin 9<\/p><p>SN74HC165<br \/>A : switch 8<br \/>B:\u00a0 switch 7<br \/>C: switch 6<br \/>D: switch 5<br \/>E: switch 4<br \/>F: switch 3<br \/>G: switch 2<br \/>H: switch 1<\/p><p>switch<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c34432e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c34432e\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2570dc9\" data-id=\"2570dc9\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a9b9c34 elementor-widget elementor-widget-image-gallery\" data-id=\"a9b9c34\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image-gallery.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-image-gallery\">\n\t\t\t<div id='gallery-1' class='gallery galleryid-814 gallery-columns-4 gallery-size-thumbnail'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"a9b9c34\" data-elementor-lightbox-title=\"20210313_153356\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6ODM1LCJ1cmwiOiJodHRwczpcL1wvbWMuc2NzaXJhaWRndXJ1LmNvbVwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDZcLzIwMjEwMzEzXzE1MzM1Ni1zY2FsZWQuanBnIiwic2xpZGVzaG93IjoiYTliOWMzNCJ9\" href='https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/20210313_153356-scaled.jpg'><img data-opt-id=1367618229  fetchpriority=\"high\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:150\/h:150\/q:mauto\/rt:fill\/g:ce\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/20210313_153356-scaled.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"a9b9c34\" data-elementor-lightbox-title=\"20210313_153409\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6ODM2LCJ1cmwiOiJodHRwczpcL1wvbWMuc2NzaXJhaWRndXJ1LmNvbVwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDZcLzIwMjEwMzEzXzE1MzQwOS1zY2FsZWQuanBnIiwic2xpZGVzaG93IjoiYTliOWMzNCJ9\" href='https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/20210313_153409-scaled.jpg'><img data-opt-id=1436100127  data-opt-src=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:150\/h:150\/q:mauto\/rt:fill\/g:ce\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/20210313_153409-scaled.jpg\"  loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%20150%20150%22%20width%3D%22150%22%20height%3D%22150%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20width%3D%22150%22%20height%3D%22150%22%20fill%3D%22transparent%22%2F%3E%3C%2Fsvg%3E\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"a9b9c34\" data-elementor-lightbox-title=\"20210313_153414\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6ODM3LCJ1cmwiOiJodHRwczpcL1wvbWMuc2NzaXJhaWRndXJ1LmNvbVwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDZcLzIwMjEwMzEzXzE1MzQxNC1zY2FsZWQuanBnIiwic2xpZGVzaG93IjoiYTliOWMzNCJ9\" href='https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/20210313_153414-scaled.jpg'><img data-opt-id=1380473060  data-opt-src=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:150\/h:150\/q:mauto\/rt:fill\/g:ce\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/20210313_153414-scaled.jpg\"  loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%20150%20150%22%20width%3D%22150%22%20height%3D%22150%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20width%3D%22150%22%20height%3D%22150%22%20fill%3D%22transparent%22%2F%3E%3C%2Fsvg%3E\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"a9b9c34\" data-elementor-lightbox-title=\"20210313_153420\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6ODM4LCJ1cmwiOiJodHRwczpcL1wvbWMuc2NzaXJhaWRndXJ1LmNvbVwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDZcLzIwMjEwMzEzXzE1MzQyMC1zY2FsZWQuanBnIiwic2xpZGVzaG93IjoiYTliOWMzNCJ9\" href='https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/20210313_153420-scaled.jpg'><img data-opt-id=1051219054  data-opt-src=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:150\/h:150\/q:mauto\/rt:fill\/g:ce\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/20210313_153420-scaled.jpg\"  loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%20150%20150%22%20width%3D%22150%22%20height%3D%22150%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20width%3D%22150%22%20height%3D%22150%22%20fill%3D%22transparent%22%2F%3E%3C%2Fsvg%3E\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"a9b9c34\" data-elementor-lightbox-title=\"20210313_153439\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6ODM5LCJ1cmwiOiJodHRwczpcL1wvbWMuc2NzaXJhaWRndXJ1LmNvbVwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDZcLzIwMjEwMzEzXzE1MzQzOS1zY2FsZWQuanBnIiwic2xpZGVzaG93IjoiYTliOWMzNCJ9\" href='https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/20210313_153439-scaled.jpg'><img data-opt-id=2100169764  data-opt-src=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:150\/h:150\/q:mauto\/rt:fill\/g:ce\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/20210313_153439-scaled.jpg\"  loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%20150%20150%22%20width%3D%22150%22%20height%3D%22150%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20width%3D%22150%22%20height%3D%22150%22%20fill%3D%22transparent%22%2F%3E%3C%2Fsvg%3E\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"a9b9c34\" data-elementor-lightbox-title=\"20210313_153446\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6ODQwLCJ1cmwiOiJodHRwczpcL1wvbWMuc2NzaXJhaWRndXJ1LmNvbVwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDZcLzIwMjEwMzEzXzE1MzQ0Ni1zY2FsZWQuanBnIiwic2xpZGVzaG93IjoiYTliOWMzNCJ9\" href='https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/20210313_153446-scaled.jpg'><img data-opt-id=2021087513  data-opt-src=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:150\/h:150\/q:mauto\/rt:fill\/g:ce\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/20210313_153446-scaled.jpg\"  loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%20150%20150%22%20width%3D%22150%22%20height%3D%22150%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20width%3D%22150%22%20height%3D%22150%22%20fill%3D%22transparent%22%2F%3E%3C%2Fsvg%3E\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"a9b9c34\" data-elementor-lightbox-title=\"20210313_153455\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6ODQxLCJ1cmwiOiJodHRwczpcL1wvbWMuc2NzaXJhaWRndXJ1LmNvbVwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDZcLzIwMjEwMzEzXzE1MzQ1NS1zY2FsZWQuanBnIiwic2xpZGVzaG93IjoiYTliOWMzNCJ9\" href='https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/20210313_153455-scaled.jpg'><img data-opt-id=68553103  data-opt-src=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:150\/h:150\/q:mauto\/rt:fill\/g:ce\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/20210313_153455-scaled.jpg\"  loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%20150%20150%22%20width%3D%22150%22%20height%3D%22150%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20width%3D%22150%22%20height%3D%22150%22%20fill%3D%22transparent%22%2F%3E%3C%2Fsvg%3E\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"a9b9c34\" data-elementor-lightbox-title=\"20210313_153500\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6ODQyLCJ1cmwiOiJodHRwczpcL1wvbWMuc2NzaXJhaWRndXJ1LmNvbVwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDZcLzIwMjEwMzEzXzE1MzUwMC1zY2FsZWQuanBnIiwic2xpZGVzaG93IjoiYTliOWMzNCJ9\" href='https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/20210313_153500-scaled.jpg'><img data-opt-id=1160690308  data-opt-src=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:150\/h:150\/q:mauto\/rt:fill\/g:ce\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/20210313_153500-scaled.jpg\"  loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%20150%20150%22%20width%3D%22150%22%20height%3D%22150%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20width%3D%22150%22%20height%3D%22150%22%20fill%3D%22transparent%22%2F%3E%3C%2Fsvg%3E\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"a9b9c34\" data-elementor-lightbox-title=\"20210313_153506\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6ODQzLCJ1cmwiOiJodHRwczpcL1wvbWMuc2NzaXJhaWRndXJ1LmNvbVwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDZcLzIwMjEwMzEzXzE1MzUwNi1zY2FsZWQuanBnIiwic2xpZGVzaG93IjoiYTliOWMzNCJ9\" href='https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/20210313_153506-scaled.jpg'><img data-opt-id=1829520680  data-opt-src=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:150\/h:150\/q:mauto\/rt:fill\/g:ce\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/20210313_153506-scaled.jpg\"  loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%20150%20150%22%20width%3D%22150%22%20height%3D%22150%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20width%3D%22150%22%20height%3D%22150%22%20fill%3D%22transparent%22%2F%3E%3C%2Fsvg%3E\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure>\n\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4839dd1 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4839dd1\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bf6f743\" data-id=\"bf6f743\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-458c7b0 elementor-widget elementor-widget-text-editor\" data-id=\"458c7b0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3 style=\"text-align: center;\">Master<\/h3>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-bfd5aa6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"bfd5aa6\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-429d5c3\" data-id=\"429d5c3\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-dc09a4f elementor-widget elementor-widget-text-editor\" data-id=\"dc09a4f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<pre>\/\/ Include the required Wire library for I2C\n\/\/ Include the libraries:\n\/\/ LiquidCrystal_I2C.h: https:\/\/github.com\/johnrickman\/LiquidCrystal_I2C\n#include &lt;Wire.h&gt; \/\/ Library for I2C communication\n#include &lt;LiquidCrystal_I2C.h&gt; \/\/ Library for LCD\n\n\/\/ Wiring: SDA pin is connected to A4 and SCL pin to A5.\n\/\/ Connect to LCD via I2C, default address 0x27 (A0-A2 not jumpered)\nLiquidCrystal_I2C lcd16x2_23 = LiquidCrystal_I2C(0x23, 16, 2); \/\/ Change to (0x23,16,2) for 16x2 LCD.\nLiquidCrystal_I2C lcd20x4_27 = LiquidCrystal_I2C(0x27, 20, 4); \/\/ Change to (0x27,20,4) for 20x4 LCD.\n\n\nint x = 0;\nint LED = 13;\n\nvoid HeartOfStainlessSteel_20x4_27() {\nlcd20x4_27.init();\nlcd20x4_27.backlight();\n\nlcd20x4_27.setCursor(3, 0); \/\/ 4th column 1st row\nlcd20x4_27.print(\"Welcome aboard\");\n\nlcd20x4_27.setCursor(8, 1); \/\/ 9th column 2nd row\nlcd20x4_27.print(\"the\");\n\nlcd20x4_27.setCursor(6, 2); \/\/ 7th column 3rd row\nlcd20x4_27.print(\"Heart of\");\n\nlcd20x4_27.setCursor(2, 3); \/\/ 3rd column 4th row\nlcd20x4_27.print(\"Stainless Steel\");\n}\n\nvoid LCD16x2_23() {\nlcd16x2_23.init();\nlcd16x2_23.backlight();\n\n\/\/LCD I2C 160X2_23\nlcd16x2_23.setCursor(3, 0); \/\/ 4th column 1st row\nlcd16x2_23.print(\"I am 0x23\");\n\/\/LCD I2C 160X2_23\n}\n\nvoid I2C_Begin() {\n\/\/ I2C Scanner Code\nSerial.begin(9600);\nwhile (!Serial); \/\/ wait for serial monitor\nSerial.println(\"\\nI2C Scanner\");\n\/\/ I2C Scanner Code\n}\n\nvoid I2C_Find_Address() {\n\/\/ I2C Scanner Code\nbyte error, address;\nint nDevices;\n\nSerial.println(\"Scanning...\");\n\nnDevices = 0;\nfor(address = 1; address &lt; 127; address++ )\n{\n\/\/ The i2c_scanner uses the return value of\n\/\/ the Write.endTransmisstion to see if\n\/\/ a device did acknowledge to the address.\nWire.beginTransmission(address);\nerror = Wire.endTransmission();\n\nif (error == 0)\n{\nSerial.print(\"I2C device found at address 0x\");\nif (address&lt;16)\nSerial.print(\"0\");\nSerial.print(address,HEX);\nSerial.println(\" !\");\n\nnDevices++;\n}\nelse if (error==4)\n{\nSerial.print(\"Unknown error at address 0x\");\nif (address&lt;16)\nSerial.print(\"0\");\nSerial.println(address,HEX);\n}\n}\nif (nDevices == 0)\nSerial.println(\"No I2C devices found\\n\");\nelse\nSerial.println(\"done\\n\");\n\ndelay(5000); \/\/ wait 5 seconds for next scan\n\/\/ I2C Scanner Code\n}\n\nvoid setup() {\n\n\/\/ comment out to stop the I2C find address\n\/\/I2C_Begin();\n\/\/ comment out to stop the I2C find address\n\n\/\/ These control the LCD displays\nLCD16x2_23();\nHeartOfStainlessSteel_20x4_27();\n\n\/\/ I2C counter for LEDs\npinMode (LED, OUTPUT);\n\/\/ Start the I2C Bus as Master\nWire.begin();\n\/\/ I2C counter for LEDs\n}\n\nvoid loop() {\n\n\/\/ comment out to stop the I2C find address\n\/\/ I2C_Find_Address();\n\/\/ comment out to stop the I2C find address\n\n\/\/ I2C counter for LEDs\nx++; \/\/ Increment x\n\n\/\/From Left to Right\n\/\/ First UNO\nWire.beginTransmission(1); \/\/ transmit to device #1\nWire.write(x); \/\/ sends x\nWire.endTransmission(); \/\/ stop transmitting\n\n\/\/Second UNO\nWire.beginTransmission(2); \/\/ transmit to device #2\nWire.write(x); \/\/ sends x\nWire.endTransmission(); \/\/ stop transmitting\n\n\/\/Mega in the Middle\n\n\/\/Third UNO\nWire.beginTransmission(3); \/\/ transmit to device #3\nWire.write(x); \/\/ sends x\nWire.endTransmission(); \/\/ stop transmitting\n\n\/\/Fourth UNO\nWire.beginTransmission(4); \/\/ transmit to device #4\nWire.write(x); \/\/ sends x\nWire.endTransmission(); \/\/ stop transmitting\n\nif ( (x == 3) || (x == 6)) {\ndigitalWrite(LED, HIGH);\n}\nelse {\ndigitalWrite(LED, LOW);\n}\n\nif (x == 7) x = 0; \/\/ `reset x once it gets 6\ndelay(1000);\n\/\/ I2C counter for LEDs\n\n}<\/pre>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b1fc0b2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b1fc0b2\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5a5ce15\" data-id=\"5a5ce15\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2e10930 elementor-widget elementor-widget-text-editor\" data-id=\"2e10930\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3 style=\"text-align: center;\">Slave 1<\/h3>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1c91994 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1c91994\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3153fb0\" data-id=\"3153fb0\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-83a85f5 elementor-widget elementor-widget-text-editor\" data-id=\"83a85f5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<pre>#include &lt;Wire.h&gt;\n\n\/*\n* SN74HC165N_shift_reg\n*\n* Program to shift in the bit values from a SN74HC165N 8-bit\n* parallel-in\/serial-out shift register.\n*\n* This sketch demonstrates reading in 16 digital states from a\n* pair of daisy-chained SN74HC165N shift registers while using\n* only 4 digital pins on the Arduino.\n*\n* You can daisy-chain these chips by connecting the serial-out\n* (Q7 pin) on one shift register to the serial-in (Ds pin) of\n* the other.\n*\n* Of course you can daisy chain as many as you like while still\n* using only 4 Arduino pins (though you would have to process\n* them 4 at a time into separate unsigned long variables).\n*\n*\/\n\nuint8_t bytes_right;\nuint8_t bytes_left;\nuint8_t hex_left;\nuint8_t hex_right;\n\/* How many shift register chips are daisy-chained.\n*\/\n#define NUMBER_OF_SHIFT_CHIPS 2\n\n\/* Width of data (how many ext lines).\n*\/\n#define DATA_WIDTH NUMBER_OF_SHIFT_CHIPS * 8\n\n\/* Width of pulse to trigger the shift register to read and latch.\n*\/\n#define PULSE_WIDTH_USEC 5\n\n\/* Optional delay between shift register reads.\n*\/\n#define POLL_DELAY_MSEC 1\n\n\/* You will need to change the \"int\" to \"long\" If the\n* NUMBER_OF_SHIFT_CHIPS is higher than 2.\n*\/\n#define BYTES_VAL_T unsigned int\n\n\/\/SN74HC595\nint LED = 13;\nint num = 0;\nint Slave1_PR[1][2];\n\n\/\/ ST_CP pin 12\nint latchPin=10; \/\/ white\n\/\/ SH_CP pin 11\nint clockIn=11; \/\/ blue\n\/\/ DS pin 14\nint dataIn=12; \/\/ black\n\n\/\/I2C\nint x = 0;\nint dt=250;\n\n\/\/SN74HC165\nint ploadPin = 7; \/\/ Connects to Parallel load pin the 165\nint clockEnablePin = 4; \/\/ Connects to Clock Enable pin the 165\nint dataPin = 5; \/\/ Connects to the Q7 pin the 165\nint clockPin = 6; \/\/ Connects to the Clock pin the 165\n\nbyte dataArrayLeft;\nbyte dataArrayRight;\n\nBYTES_VAL_T pinValues;\nBYTES_VAL_T oldPinValues;\n\n\/* This function is essentially a \"shift-in\" routine reading the\n* serial Data from the shift register chips and representing\n* the state of those pins in an unsigned integer (or long).\n*\/\nBYTES_VAL_T read_shift_regs()\n{\nlong bitVal;\nBYTES_VAL_T bytesVal = 0;\n\n\/* Trigger a parallel Load to latch the state of the data lines,\n*\/\ndigitalWrite(clockEnablePin, HIGH);\ndigitalWrite(ploadPin, LOW);\ndelayMicroseconds(PULSE_WIDTH_USEC);\ndigitalWrite(ploadPin, HIGH);\ndigitalWrite(clockEnablePin, LOW);\n\n\/* Loop to read each bit value from the serial out line\n* of the SN74HC165N.\n*\/\nfor(int i = 0; i &lt; DATA_WIDTH; i++)\n{\nbitVal = digitalRead(dataPin);\n\n\/* Set the corresponding bit in bytesVal.\n*\/\nbytesVal |= (bitVal &lt;&lt; ((DATA_WIDTH-1) - i));\n\n\/* Pulse the Clock (rising edge shifts the next bit).\n*\/\ndigitalWrite(clockPin, HIGH);\ndelayMicroseconds(PULSE_WIDTH_USEC);\ndigitalWrite(clockPin, LOW);\n}\n\nreturn(bytesVal);\n}\n\n\/* Dump the list of zones along with their current status.\n*\/\nvoid display_pin_values()\n{\n\/\/Serial.print(\"PinValues:\\r\\n\");\n\/\/Serial.print(pinValues, HEX);\n\/\/Serial.print(\"\\r\\n\");\n\n\/\/Serial.print(\"\\nInvert PinValues:\\r\\n\");\n\/\/Serial.print(~pinValues, HEX);\n\/\/Serial.print(\"\\r\\n\");\n}\n\nvoid setup()\n{\nSerial.begin(9600);\n\npinMode (LED, OUTPUT);\n\/\/ Start the I2C Bus as Slave on address 2\nWire.begin(1);\n\/\/ Attach a function to trigger when something is received.\nWire.onReceive(receiveEvent);\n\n\/\/ Serial.begin(9600);\n\n\/* Initialize our digital pins...\n*\/\n\/\/ 74HC165 pins\npinMode(ploadPin, OUTPUT);\npinMode(clockEnablePin, OUTPUT);\npinMode(clockPin, OUTPUT);\npinMode(dataPin, INPUT);\n\n\/\/ 74HC595 pins\npinMode(latchPin,OUTPUT);\npinMode(dataIn,OUTPUT);\npinMode(clockIn,OUTPUT);\n\ndigitalWrite(latchPin, LOW);\ndigitalWrite(clockPin, LOW);\ndigitalWrite(ploadPin, HIGH);\n\n\/* Read in and display the pin states at startup.\n*\/\npinValues = read_shift_regs();\ndisplay_pin_values();\noldPinValues = pinValues;\n\n\/\/send photoresistor data to master\npinMode(A0, INPUT);\n}\n\nvoid I2C_Counter() {\nif (x == 1) {\ndigitalWrite(LED, HIGH);\n}\nelse {\ndigitalWrite(LED, LOW);\n}\n\nif (x == 6) {\ndigitalWrite(LED, HIGH);\ndelay(500);\ndigitalWrite(LED, LOW);\n}\n\n}\n\n\/\/I2C counter that blinks LED 13 for the devices in order 1 to 5. All 5 come on when x == 6\nvoid receiveEvent(int bytes) {\nx = Wire.read(); \/\/ read one character from the I2C\n\n}\n\nvoid loop()\n{\nI2C_Counter();\n\n\/\/ send photoresistor data to master\n\n\/* Read the state of all zones.\n*\/\npinValues = read_shift_regs();\n\nbytes_right = ~pinValues &gt;&gt; 8;\nbytes_left = ~pinValues &amp; 0x00FF;\n\/\/Serial.print(\"Bytes Right\\r\\n\");\n\/\/Serial.print(bytes_right, HEX);\n\/\/Serial.print(\"\\r\\n\");\n\/\/Serial.print(\"Bytes Left\\r\\n\");\n\/\/Serial.print(bytes_left, HEX);\n\/\/Serial.print(\"\\r\\n\");\n\n\/\/Serial.print(pinValues, HEX);\n\/\/Serial.print(\"\\r\\n\");\n\nuint8_t hex_left = (bytes_left);\nuint8_t hex_right = (bytes_right);\n\/\/Serial.print(\"Hex Right\\r\\n\");\n\/\/Serial.print(hex_right);\n\/\/Serial.print(\"\\r\\n\");\n\/\/Serial.print(\"Hex Left\\r\\n\");\n\/\/Serial.print(hex_left);\n\/\/Serial.print(\"\\r\\n\");\n\nif(pinValues != oldPinValues)\n{\n\/\/ Serial.print(\"*Pin value change detected*\\r\\n\");\ndisplay_pin_values();\noldPinValues = pinValues;\n\ndelay(POLL_DELAY_MSEC);\n}\n\n\/\/Write to LEDs\ndigitalWrite(latchPin, LOW);\nshiftOut(dataIn, clockIn, LSBFIRST, hex_right);\ndigitalWrite(latchPin, LOW);\nshiftOut(dataIn, clockIn, LSBFIRST, hex_left );\n\n\/\/ST_CP HIGH change LEDs\ndigitalWrite(latchPin, HIGH);\n\n\/\/Photoresistor A0\nint valueA0 = analogRead(A0);\nSerial.println(\"Analog value A0 : \");\nSerial.println(valueA0);\ndelay(3000);\n\n}<\/pre>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a4ebb47 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a4ebb47\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5f50df4\" data-id=\"5f50df4\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9fcd837 elementor-widget elementor-widget-text-editor\" data-id=\"9fcd837\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3 style=\"text-align: center;\">Slave 2<\/h3>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-442a9a4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"442a9a4\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-cca9d56\" data-id=\"cca9d56\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-72be1e2 elementor-widget elementor-widget-text-editor\" data-id=\"72be1e2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<pre>#include &lt;Wire.h&gt;\nint LED = 13;\nint x = 0;\n\nvoid setup() {\npinMode (LED, OUTPUT);\n\/\/ Start the I2C Bus as Slave on address 2\nWire.begin(2);\n\/\/ Attach a function to trigger when something is received.\nWire.onReceive(receiveEvent);\n}\n\nvoid receiveEvent(int bytes) {\nx = Wire.read(); \/\/ read one character from the I2C\nif (x == 2) {\ndigitalWrite(LED, HIGH);\n}\nelse {\ndigitalWrite(LED, LOW);\n}\n\nif (x == 6) {\ndigitalWrite(LED, HIGH);\ndelay(500);\ndigitalWrite(LED, LOW);\n}\n\n}\n\nvoid loop() {\n\n}<\/pre>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-fe580f2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"fe580f2\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-73c42a5\" data-id=\"73c42a5\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b0f7ee8 elementor-widget elementor-widget-text-editor\" data-id=\"b0f7ee8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3 style=\"text-align: center;\">Slave 3<\/h3>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-aaa1e15 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"aaa1e15\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ea450e8\" data-id=\"ea450e8\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9ed1fcf elementor-widget elementor-widget-text-editor\" data-id=\"9ed1fcf\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<pre>#include &lt;Wire.h&gt; \/\/ Library for I2C communication\n#include &lt;LiquidCrystal.h&gt; \/\/ Library for LCD\nLiquidCrystal lcd(5);\n\n\/\/ int LED = 13;\nint x = 0;\n\nvoid setup() {\n\n\/\/ Start the I2C Bus as Slave on address 2\nWire.begin(3);\n\/\/ Attach a function to trigger when something is received.\nWire.onReceive(receiveEvent);\n\n\/\/ set up the LCD's number of columns and rows:\nlcd.begin(16, 2);\n\/\/ Print a message to the LCD.\nlcd.print(\"hello, world!\");\n\n}\n\nvoid receiveEvent(int bytes) {\nx = Wire.read(); \/\/ read one character from the I2C\n\n}\n\nvoid loop() {\n\n\/\/ set the cursor to column 0, line 1\n\/\/ (note: line 1 is the second row, since counting begins with 0):\nlcd.setCursor(0, 1);\n\/\/ print the number of seconds since reset:\nlcd.print(millis()\/1000);\n\n}<\/pre>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-613832d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"613832d\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-20c70b4\" data-id=\"20c70b4\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e81b688 elementor-widget elementor-widget-text-editor\" data-id=\"e81b688\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3 style=\"text-align: center;\">Slave 4<\/h3>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-53fa783 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"53fa783\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e9f3b0b\" data-id=\"e9f3b0b\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e12bc5a elementor-widget elementor-widget-text-editor\" data-id=\"e12bc5a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<pre>#include &lt;Wire.h&gt;\nint LED = 13;\n\n\/\/ 8 segment LED for x counter\nint latchPin_7Segment=11; \/\/white 595 pin 12\nint clockPin_8Segment=9; \/\/blue 595 pin 11\nint dataPin_8Segment=12; \/\/black 595 pin 14\n\/\/ 8 segment LED for x counter\n\n\/\/ i2c counter\nint x = 0;\nint dt=250;\n\/\/ i2c counter\n\n\/\/ 8 segment LED for x counter\nbyte LEDsOff=0b00000000;\nbyte LEDsOn=0b11111111;\nbyte LEDs1=0b10000000;\nbyte LEDs2=0b01000000;\nbyte LEDs3=0b00100000;\nbyte LEDs4=0b00010000;\nbyte LEDs5=0b00001000;\nbyte LEDs6=0b00000100;\nbyte LEDs7=0b00000010;\nbyte LEDs8=0b00000001;\n\nbyte LEDZero = 0b11111100;\nbyte LEDOne = 0b01100000;\nbyte LEDTwo = 0b11011010;\nbyte LEDThree = 0b11110010;\nbyte LEDFour = 0b01100110;\nbyte LEDFive = 0b10110110;\nbyte LEDSix = 0b00111110;\n\/\/ 8 segment LED for x counter\n\nvoid setup() {\n\npinMode (LED, OUTPUT);\npinMode (latchPin_7Segment,OUTPUT);\npinMode (dataPin_8Segment,OUTPUT);\npinMode (clockPin_8Segment,OUTPUT);\n\n\/\/ Start the I2C Bus as Slave on address 4\nWire.begin(4);\n\/\/ Attach a function to trigger when something is received.\nWire.onReceive(receiveEvent);\n}\nvoid receiveEvent(int bytes) {\nx = Wire.read(); \/\/ read one character from the I2C\n}\n\/\/ i2c counter\n\nvoid loop() {\n\n\/*\n\/\/ test all LED display\ndigitalWrite(latchPin_7Segment,LOW);\nshiftOut(dataPin_8Segment,clockPin_8Segment,LSBFIRST,LEDsOn);\ndigitalWrite(latchPin_7Segment,HIGH);\ndelay(dt);\n*\/\n\n\/\/ i2c counter\nif (x == 1) {\n\/\/LED display\ndigitalWrite(latchPin_7Segment,LOW);\nshiftOut(dataPin_8Segment,clockPin_8Segment,LSBFIRST,LEDOne);\ndigitalWrite(latchPin_7Segment,HIGH);\n}\n\nif (x == 2) {\n\ndigitalWrite(latchPin_7Segment,LOW);\nshiftOut(dataPin_8Segment,clockPin_8Segment,LSBFIRST,LEDTwo);\ndigitalWrite(latchPin_7Segment,HIGH);\n}\n\nif (x == 3) {\n\n\/\/LED display\ndigitalWrite(latchPin_7Segment,LOW);\nshiftOut(dataPin_8Segment,clockPin_8Segment,LSBFIRST,LEDThree);\ndigitalWrite(latchPin_7Segment,HIGH);\n}\n\nif (x == 4) {\n\ndigitalWrite(latchPin_7Segment,LOW);\nshiftOut(dataPin_8Segment,clockPin_8Segment,LSBFIRST,LEDFour);\ndigitalWrite(latchPin_7Segment,HIGH);\n}\n\nif (x == 5) {\ndigitalWrite(LED, HIGH);\n\/\/LED display\ndigitalWrite(latchPin_7Segment,LOW);\nshiftOut(dataPin_8Segment,clockPin_8Segment,LSBFIRST,LEDFive);\ndigitalWrite(latchPin_7Segment,HIGH);\n}\nelse {\ndigitalWrite(LED, LOW);\n}\n\nif (x == 6) {\ndigitalWrite(LED, HIGH);\n\/\/ i2c counter\n\n\/\/ 8 segment LED for x counter\ndigitalWrite(latchPin_7Segment,LOW);\nshiftOut(dataPin_8Segment,clockPin_8Segment,LSBFIRST,LEDSix);\ndigitalWrite(latchPin_7Segment,HIGH);\n}\n\n}<\/pre>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Stardate 98788.27 Day 5 trapped in my broken spaceship.\u00a0\u00a0 I managed to cascade two SN74HC595 SIPO modules together to get 16 lights working front to back.\u00a0\u00a0 The I2C computer is functioning.\u00a0 I placed two 100\u03bcf capacitors on the 5V power bus just outside the 5V connections of slave 1 and 4 to clean up the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":809,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"custom","ocean_center_header_left_menu":"0","ocean_custom_header_template":"7124","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","osh_disable_topbar_sticky":"default","osh_disable_header_sticky":"default","osh_sticky_header_style":"default","osh_sticky_header_effect":"","osh_custom_sticky_logo":0,"osh_custom_retina_sticky_logo":0,"osh_custom_sticky_logo_height":0,"osh_background_color":"","osh_links_color":"","osh_links_hover_color":"","osh_links_active_color":"","osh_links_bg_color":"","osh_links_hover_bg_color":"","osh_links_active_bg_color":"","osh_menu_social_links_color":"","osh_menu_social_hover_links_color":"","footnotes":""},"class_list":["post-814","page","type-page","status-publish","hentry","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>cascading SIPO and PISO -<\/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:\/\/mc.scsiraidguru.com\/index.php\/arduino\/shift-registers\/165-and-595\/cascading-sipo-and-piso\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"cascading SIPO and PISO -\" \/>\n<meta property=\"og:description\" content=\"Stardate 98788.27 Day 5 trapped in my broken spaceship.\u00a0\u00a0 I managed to cascade two SN74HC595 SIPO modules together to get 16 lights working front to back.\u00a0\u00a0 The I2C computer is functioning.\u00a0 I placed two 100\u03bcf capacitors on the 5V power bus just outside the 5V connections of slave 1 and 4 to clean up the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mc.scsiraidguru.com\/index.php\/arduino\/shift-registers\/165-and-595\/cascading-sipo-and-piso\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-03T16:31:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:225\/h:300\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/2xSN74HC59516LEDs.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/index.php\\\/arduino\\\/shift-registers\\\/165-and-595\\\/cascading-sipo-and-piso\\\/\",\"url\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/index.php\\\/arduino\\\/shift-registers\\\/165-and-595\\\/cascading-sipo-and-piso\\\/\",\"name\":\"cascading SIPO and PISO -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/index.php\\\/arduino\\\/shift-registers\\\/165-and-595\\\/cascading-sipo-and-piso\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/index.php\\\/arduino\\\/shift-registers\\\/165-and-595\\\/cascading-sipo-and-piso\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\/\\/mc.scsiraidguru.com\\/wp-content\\/uploads\\/2021\\/06\\/2xSN74HC59516LEDs-225x300.jpg\",\"datePublished\":\"2021-06-27T21:13:27+00:00\",\"dateModified\":\"2024-03-03T16:31:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/index.php\\\/arduino\\\/shift-registers\\\/165-and-595\\\/cascading-sipo-and-piso\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/mc.scsiraidguru.com\\\/index.php\\\/arduino\\\/shift-registers\\\/165-and-595\\\/cascading-sipo-and-piso\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/index.php\\\/arduino\\\/shift-registers\\\/165-and-595\\\/cascading-sipo-and-piso\\\/#primaryimage\",\"url\":\"https:\\/\\/mc.scsiraidguru.com\\/wp-content\\/uploads\\/2021\\/06\\/2xSN74HC59516LEDs-scaled.jpg\",\"contentUrl\":\"https:\\/\\/mc.scsiraidguru.com\\/wp-content\\/uploads\\/2021\\/06\\/2xSN74HC59516LEDs-scaled.jpg\",\"width\":1920,\"height\":2560},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/index.php\\\/arduino\\\/shift-registers\\\/165-and-595\\\/cascading-sipo-and-piso\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Arduino\",\"item\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/index.php\\\/arduino\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Shift Registers Arduino\",\"item\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/index.php\\\/arduino\\\/shift-registers\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"165 and 595\",\"item\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/index.php\\\/arduino\\\/shift-registers\\\/165-and-595\\\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"cascading SIPO and PISO\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/#website\",\"url\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/\",\"name\":\"SCSIraidGURU MC World\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/#\\\/schema\\\/person\\\/f21e3238456a7c2adea5944cb376cddc\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/#\\\/schema\\\/person\\\/f21e3238456a7c2adea5944cb376cddc\",\"name\":\"Michael McKenney\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\/\\/mc.scsiraidguru.com\\/wp-content\\/uploads\\/2021\\/09\\/20210925_105558.jpg\",\"url\":\"https:\\/\\/mc.scsiraidguru.com\\/wp-content\\/uploads\\/2021\\/09\\/20210925_105558.jpg\",\"contentUrl\":\"https:\\/\\/mc.scsiraidguru.com\\/wp-content\\/uploads\\/2021\\/09\\/20210925_105558.jpg\",\"width\":2560,\"height\":1440,\"caption\":\"Michael McKenney\"},\"logo\":{\"@id\":\"https:\\/\\/mc.scsiraidguru.com\\/wp-content\\/uploads\\/2021\\/09\\/20210925_105558.jpg\"},\"sameAs\":[\"http:\\\/\\\/mc.scsiraidguru.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"cascading SIPO and PISO -","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:\/\/mc.scsiraidguru.com\/index.php\/arduino\/shift-registers\/165-and-595\/cascading-sipo-and-piso\/","og_locale":"en_US","og_type":"article","og_title":"cascading SIPO and PISO -","og_description":"Stardate 98788.27 Day 5 trapped in my broken spaceship.\u00a0\u00a0 I managed to cascade two SN74HC595 SIPO modules together to get 16 lights working front to back.\u00a0\u00a0 The I2C computer is functioning.\u00a0 I placed two 100\u03bcf capacitors on the 5V power bus just outside the 5V connections of slave 1 and 4 to clean up the [&hellip;]","og_url":"https:\/\/mc.scsiraidguru.com\/index.php\/arduino\/shift-registers\/165-and-595\/cascading-sipo-and-piso\/","article_modified_time":"2024-03-03T16:31:39+00:00","og_image":[{"url":"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:225\/h:300\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/2xSN74HC59516LEDs.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/mc.scsiraidguru.com\/index.php\/arduino\/shift-registers\/165-and-595\/cascading-sipo-and-piso\/","url":"https:\/\/mc.scsiraidguru.com\/index.php\/arduino\/shift-registers\/165-and-595\/cascading-sipo-and-piso\/","name":"cascading SIPO and PISO -","isPartOf":{"@id":"https:\/\/mc.scsiraidguru.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mc.scsiraidguru.com\/index.php\/arduino\/shift-registers\/165-and-595\/cascading-sipo-and-piso\/#primaryimage"},"image":{"@id":"https:\/\/mc.scsiraidguru.com\/index.php\/arduino\/shift-registers\/165-and-595\/cascading-sipo-and-piso\/#primaryimage"},"thumbnailUrl":"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:225\/h:300\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/2xSN74HC59516LEDs.jpg","datePublished":"2021-06-27T21:13:27+00:00","dateModified":"2024-03-03T16:31:39+00:00","breadcrumb":{"@id":"https:\/\/mc.scsiraidguru.com\/index.php\/arduino\/shift-registers\/165-and-595\/cascading-sipo-and-piso\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mc.scsiraidguru.com\/index.php\/arduino\/shift-registers\/165-and-595\/cascading-sipo-and-piso\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mc.scsiraidguru.com\/index.php\/arduino\/shift-registers\/165-and-595\/cascading-sipo-and-piso\/#primaryimage","url":"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/2xSN74HC59516LEDs-scaled.jpg","contentUrl":"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/06\/2xSN74HC59516LEDs-scaled.jpg","width":1920,"height":2560},{"@type":"BreadcrumbList","@id":"https:\/\/mc.scsiraidguru.com\/index.php\/arduino\/shift-registers\/165-and-595\/cascading-sipo-and-piso\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mc.scsiraidguru.com\/"},{"@type":"ListItem","position":2,"name":"Arduino","item":"https:\/\/mc.scsiraidguru.com\/index.php\/arduino\/"},{"@type":"ListItem","position":3,"name":"Shift Registers Arduino","item":"https:\/\/mc.scsiraidguru.com\/index.php\/arduino\/shift-registers\/"},{"@type":"ListItem","position":4,"name":"165 and 595","item":"https:\/\/mc.scsiraidguru.com\/index.php\/arduino\/shift-registers\/165-and-595\/"},{"@type":"ListItem","position":5,"name":"cascading SIPO and PISO"}]},{"@type":"WebSite","@id":"https:\/\/mc.scsiraidguru.com\/#website","url":"https:\/\/mc.scsiraidguru.com\/","name":"SCSIraidGURU MC World","description":"","publisher":{"@id":"https:\/\/mc.scsiraidguru.com\/#\/schema\/person\/f21e3238456a7c2adea5944cb376cddc"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mc.scsiraidguru.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/mc.scsiraidguru.com\/#\/schema\/person\/f21e3238456a7c2adea5944cb376cddc","name":"Michael McKenney","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/20210925_105558.jpg","url":"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/20210925_105558.jpg","contentUrl":"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/20210925_105558.jpg","width":2560,"height":1440,"caption":"Michael McKenney"},"logo":{"@id":"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/20210925_105558.jpg"},"sameAs":["http:\/\/mc.scsiraidguru.com"]}]}},"_links":{"self":[{"href":"https:\/\/mc.scsiraidguru.com\/index.php\/wp-json\/wp\/v2\/pages\/814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mc.scsiraidguru.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mc.scsiraidguru.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mc.scsiraidguru.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mc.scsiraidguru.com\/index.php\/wp-json\/wp\/v2\/comments?post=814"}],"version-history":[{"count":92,"href":"https:\/\/mc.scsiraidguru.com\/index.php\/wp-json\/wp\/v2\/pages\/814\/revisions"}],"predecessor-version":[{"id":7535,"href":"https:\/\/mc.scsiraidguru.com\/index.php\/wp-json\/wp\/v2\/pages\/814\/revisions\/7535"}],"up":[{"embeddable":true,"href":"https:\/\/mc.scsiraidguru.com\/index.php\/wp-json\/wp\/v2\/pages\/809"}],"wp:attachment":[{"href":"https:\/\/mc.scsiraidguru.com\/index.php\/wp-json\/wp\/v2\/media?parent=814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}