[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-720128-en":3,"doc-seo-720128-105":50,"detail-sidebar-cat-0-en-105":114,"doc-similar-720128":161},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":11,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":27,"seo_description":14,"update_tm":28,"read_time":29,"preview_page_count":30,"preview_urls":31},720128,962090769052,"Danger Angel","https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc",6,"Technology","74HC595 Shift Register - CircuitPython Shift Register Usage Guide","74HC595 Shift Register documentation explains how to expand microcontroller output capacity using chainable 74HC595 shift registers. It covers the serial-to-parallel concept, how multiple chips can be connected for larger output counts, and practical guidance for driving LEDs and other digital loads. The guide details pinouts from parallel and serial interfaces, explains CircuitPython wiring to an SPI-enabled board, and provides instructions to install the Adafruit CircuitPython 74HC595 library before running example Python control code.","74HC595 Shift Register  \nCreated by Kattni Rembor  \n[https://learn.adafruit.com/74hc595](https://learn.adafruit.com/74hc595)  \nLast updated on 2024-06-03 03:08:58 PM EDT  \n©Adafruit Industries Page 1 of 9  \nTable of Contents  \nOverview 3  \n\n| Pinouts | 4 |\n| --- | --- |\n| Usage | 5 |\n| • CircuitPython Wiring\u003Cbr>• CircuitPython Library Install\u003Cbr>• CircuitPython Usage\u003Cbr>• Full Example Code\u003Cbr>Downloads | 9 |\n\n• Files  \n©Adafruit Industries Page 2 of 9  \nOverview  \nAdd lots more outputs to a microcontroller system with chainable shift registers. These chips take a serial input (kinda like SPI but with a latch pin) of 1 byte (8 bits) and then output those digital bits onto 8 pins. You can chain them together so putting three in a row with the serial output of one plugged into the serial input of another to make 3 x 8 = 24 digital outputs. You can chain pretty much as many as you want. This makes it easy to control a lot of outputs like LEDs from only 3 digital microcontroller pins.  \nThis item ([http://adafru.it/450](http://adafru.it/450)) contains three 74HC595 chips! The chips may be NXPor TI brand, they're cross-compatible pinouts. We don't guarantee which brand you'll receive.  \nThese chips are DIP package so you can easily plug them into any breadboard or perfboard with 0.1\" spacing. The digital outputs are good for about 20mA, which makes them ideal for LEDs or driving power transistors (say for controlling a lot of solenoids) .  \n©Adafruit Industries Page 3 of 9  \n74HC595 Shift Register-3 pack  \nAdd lots more outputs to a microcontroller system with chainable shift registers. These chips take a serial input (SPI) of 1 byte (8 bits) and then output those digital bits onto 8...  \n[https://www.adafruit.com/product/450](https://www.adafruit.com/product/450)  \nPinouts  \nThis image is from a TI datasheet. The datasheet uses letters for the output pins, e.g. QA. The NXP datasheet uses numbers for the output pins, e.g. Q1 .  \nPinouts in order of pin number:  \n• Pins 1-7-Parallel data output pins B-H/2-7  \n• Pin 8-GND (ground)  \n• Pin 9-Serial data output pin H`/7`  \n• Pin 10-CLR/Reset (active LOW)  \n• Pin 11-SRCLK/SHCP (storage register clock pin, SPI clock)  \n• Pin 12-RCLK/STCP (shift register clock input, latch pin)  \n• Pin 13-OE (output enable, active LOW)  \n• Pin 14-SER/DS (serial data input, SPI data)  \n• Pin 15-Parallel data output pin A/1  \n©Adafruit Industries Page 4 of 9  \nUsage  \nUsing the 74HC595 with CircuitPython is simple with the Adafruit CircuitPython 74HC595 ([https://adafru.it/M2E](https://adafru.it/M2E)) library. You can easily write Python code to control multiple output pins from a single SPI connection. This example will control 8 LEDs from the SPI connection on a Feather M4 .  \nCircuitPython Wiring  \nFirst, wire up the 74HC595 to your CircuitPython board. The following shows how to wire it up to a Feather M4 .  \nThe following can be done on a single breadboard in practice, however, the wiring diagram uses two breadboards for readability.  \n©Adafruit Industries Page 5 of 9  \nFeather 3V to power rail on breadboard Feather GND to ground rail on breadboard  \nGround rail on breadboard to ground rail on breadboard  \n74HC595 Pin 16 to power rail on breadboard  \n74HC595 Pin 10 to power rail on breadboard  \n74HC595 Pin 13 to ground rail on breadboard  \n74HC595 Pin 8 to ground rail on breadboard  \n74HC595 Pin 14 to Feather MO  \n74HC595 Pin 12 to Feather D5  \n74HC595 Pin 11 to Feather SCK  \n8 x LED- (negative) to ground rail on breadboard  \n8 x LED + (positive) to breadboard (470Ω resistors)  \n8 x 470Ω resistor FROM LED + (positive) TO 74HC595 output pins  \n74HC595 Pins 1-7, 15 to 8 x 470Ω resistors  \nCircuitPython Library Install  \nYou'll need to install the Adafruit CircuitPython 74HC595 ([https://adafru.it/M2E](https://adafru.it/M2E)) library on your CircuitPython board.  \nFirst make sure you are running the latest version of Adafruit CircuitPython ([https://](https://)[ ](https://)[adafru.it/Amd](adafru.it/Amd)) f","cbCaisZ57D8iJRgT","https://ap.wps.com/l/cbCaisZ57D8iJRgT","pdf",1620817,1,9,"English","en",105,"# Overview\n# Pinouts\n# Usage\n## CircuitPython Wiring\n## CircuitPython Library Install\n## CircuitPython Usage\n## Full Example Code\n## Downloads","[{\"question\":\"How does the 74HC595 expand a microcontroller’s outputs?\",\"answer\":\"The 74HC595 accepts a serial byte (8 bits) and outputs those bits to eight digital pins. By chaining devices, one microcontroller can drive many more outputs.\"},{\"question\":\"What are the key pins for controlling and communicating with the 74HC595?\",\"answer\":\"The document lists pin functions including serial input (SER/DS), output enable (OE), serial/storage register clocks (SRCLK/SHCP and RCLK/STCP), clear/reset (CLR/Reset), and the parallel output pins (A–H).\"},{\"question\":\"How do you use the 74HC595 with CircuitPython?\",\"answer\":\"Wire the chip to a CircuitPython board via SPI and a latch pin, then install the Adafruit CircuitPython 74HC595 library. Example code sets up the shift register object and drives LED patterns using get_pin for each output.\"}]","74HC595 Shift Register - CircuitPython Shift Register Usage Guide | PDF",1795034707,23,4,[32,36,41,46],{"page_no":20,"url":33,"width":34,"height":35},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/fb47a15018cd27532867833ffafefc42.webp",983,1390,{"page_no":37,"url":38,"width":39,"height":40},2,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/429d733cf687d3bbf9695c0dc4dc925d.webp",982,1388,{"page_no":42,"url":43,"width":44,"height":45},3,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/d6152be3c286024be26137b99636507d.webp",981,1387,{"page_no":30,"url":47,"width":48,"height":49},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/28832c5aea4579c15e50ae423691bf49.webp",980,1385,{"code":4,"msg":51,"data":52},"ok",{"site_id":24,"language":23,"slug":53,"title":13,"keywords":54,"description":14,"schema_data":55,"social_meta":109,"head_meta":111,"extra_data":113,"updated_unix":28},"74hc595-shift-register-circuitpython-shift-register-usage-guide","",{"@graph":56,"@context":108},[57,71,91],{"@type":58,"itemListElement":59},"BreadcrumbList",[60,64,67,69],{"item":61,"name":62,"@type":63,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":65,"name":66,"@type":63,"position":37},"https://docshare.wps.com/document/","Document",{"item":68,"name":12,"@type":63,"position":42},"https://docshare.wps.com/document/technology/",{"item":70,"name":13,"@type":63,"position":30},"https://docshare.wps.com/document/74hc595-shift-register-circuitpython-shift-register-usage-guide/720128/",{"url":70,"name":13,"@type":72,"image":73,"author":78,"headline":13,"publisher":80,"fileFormat":83,"inLanguage":23,"description":14,"dateModified":84,"datePublished":85,"encodingFormat":83,"isAccessibleForFree":86,"interactionStatistic":87},"DigitalDocument",{"url":74,"@type":75,"width":76,"height":77},"https://docshare.wps.com/thumbnails/74hc595-shift-register-circuitpython-shift-register-usage-guide/720128.png","ImageObject",300,407,{"name":9,"@type":79},"Person",{"url":61,"name":81,"@type":82},"DocShare","Organization","application/pdf","2026-11-25","2026-11-18",true,{"@type":88,"interactionType":89,"userInteractionCount":11},"InteractionCounter",{"@type":90},"ViewAction",{"@type":92,"mainEntity":93},"FAQPage",[94,100,104],{"name":95,"@type":96,"acceptedAnswer":97},"How does the 74HC595 expand a microcontroller’s outputs?","Question",{"text":98,"@type":99},"The 74HC595 accepts a serial byte (8 bits) and outputs those bits to eight digital pins. By chaining devices, one microcontroller can drive many more outputs.","Answer",{"name":101,"@type":96,"acceptedAnswer":102},"What are the key pins for controlling and communicating with the 74HC595?",{"text":103,"@type":99},"The document lists pin functions including serial input (SER/DS), output enable (OE), serial/storage register clocks (SRCLK/SHCP and RCLK/STCP), clear/reset (CLR/Reset), and the parallel output pins (A–H).",{"name":105,"@type":96,"acceptedAnswer":106},"How do you use the 74HC595 with CircuitPython?",{"text":107,"@type":99},"Wire the chip to a CircuitPython board via SPI and a latch pin, then install the Adafruit CircuitPython 74HC595 library. Example code sets up the shift register object and drives LED patterns using get_pin for each output.","https://schema.org",{"og:url":70,"og:type":110,"og:title":13,"og:site_name":81,"og:description":14},"article",{"robots":112,"canonical":70},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":115},[116,120,124,128,133,136,141,146,150,153,157],{"id":20,"doc_module":4,"doc_module_name":66,"category_name":117,"show_sort_weight":118,"slug":119},"Story & Novel",90,"story-novel",{"id":37,"doc_module":4,"doc_module_name":66,"category_name":121,"show_sort_weight":122,"slug":123},"Literature",80,"literature",{"id":30,"doc_module":4,"doc_module_name":66,"category_name":125,"show_sort_weight":126,"slug":127},"Exam",70,"exam",{"id":129,"doc_module":4,"doc_module_name":66,"category_name":130,"show_sort_weight":131,"slug":132},5,"Comic",60,"comic",{"id":11,"doc_module":4,"doc_module_name":66,"category_name":12,"show_sort_weight":134,"slug":135},50,"technology",{"id":137,"doc_module":4,"doc_module_name":66,"category_name":138,"show_sort_weight":139,"slug":140},7,"Healthcare",40,"healthcare",{"id":142,"doc_module":4,"doc_module_name":66,"category_name":143,"show_sort_weight":144,"slug":145},8,"Research & Report",30,"research-report",{"id":21,"doc_module":4,"doc_module_name":66,"category_name":147,"show_sort_weight":148,"slug":149},"Religion & Spirituality",20,"religion-spirituality",{"id":148,"doc_module":4,"doc_module_name":66,"category_name":151,"show_sort_weight":148,"slug":152},"World Cup","world-cup",{"id":154,"doc_module":4,"doc_module_name":66,"category_name":155,"show_sort_weight":154,"slug":156},10,"Lifestyle","lifestyle",{"id":158,"doc_module":4,"doc_module_name":66,"category_name":159,"show_sort_weight":129,"slug":160},19,"General","general",{"list":162,"token":54},[163,169,176,182,188,194,200,207,213,219],{"doc_id":164,"doc_title":165,"file_type":18,"home_preview_img_url":166,"slug":167,"view_count":137,"category_name":12,"create_tm":168},720131,"74HC595 - Shift Register Datasheet - Operating and Electrical Characteristics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024384365/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=VbUa5iI%2FapXfbd4EbqWrm20yGSA%3D","74hc595-shift-register-datasheet-operating-and-electrical-characteristics",1795034713,{"doc_id":170,"doc_title":171,"file_type":18,"home_preview_img_url":172,"slug":173,"view_count":174,"category_name":12,"create_tm":175},690357,"Adafruit LIS3DH Triple-Axis Accelerometer Breakout - Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002631446/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=pGNOgSKC7mntsDv8pH6J7x%2F2EY0%3D","adafruit-lis3dh-triple-axis-accelerometer-breakout-guide",12,1794164631,{"doc_id":177,"doc_title":178,"file_type":18,"home_preview_img_url":179,"slug":180,"view_count":137,"category_name":12,"create_tm":181},720403,"Adafruit Metro RP2350 - Board setup and CircuitPython guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023673595/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=C7FO0%2Fnla6YOhUG7JqIjuOntddM%3D","adafruit-metro-rp2350-board-setup-and-circuitpython-guide",1795037124,{"doc_id":183,"doc_title":184,"file_type":18,"home_preview_img_url":185,"slug":186,"view_count":11,"category_name":12,"create_tm":187},700225,"Adafruit STM32F405 Feather Express","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011564446/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=zp3ZcBynIGHeUK7OoEWG6C8zs5o%3D","adafruit-stm32f405-feather-express",1794517354,{"doc_id":189,"doc_title":190,"file_type":18,"home_preview_img_url":191,"slug":192,"view_count":129,"category_name":12,"create_tm":193},699701,"MC74HC595A - 8-Bit Serial-Input/Serial or Parallel-Output Shift Register","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010871852/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=qZ4ytKHa1afk9djGxUSoUqSZ6TQ%3D","mc74hc595a-8-bit-serial-inputserial-or-parallel-output-shift-register",1794490208,{"doc_id":195,"doc_title":196,"file_type":18,"home_preview_img_url":197,"slug":198,"view_count":137,"category_name":12,"create_tm":199},721112,"Adafruit MAX98357 I2S Class-D Amps - Stereo and Mono","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024419629/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=uTNO6zSaz4M6GSmH3zVdq1fywi4%3D","adafruit-max98357-i2s-class-d-amps-stereo-and-mono",1795041842,{"doc_id":201,"doc_title":202,"file_type":18,"home_preview_img_url":203,"slug":204,"view_count":205,"category_name":12,"create_tm":206},510194,"CLUE Dice Roller - Overview - Set up CircuitPython Quick Start! - Code","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229935336813/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=ILWvibaAsVpAPWyls4Y31vV9h9I%3D","clue-dice-roller-overview-set-up-circuitpython-quick-start-code",13,1791239608,{"doc_id":208,"doc_title":209,"file_type":18,"home_preview_img_url":210,"slug":211,"view_count":11,"category_name":12,"create_tm":212},690360,"CircuitPython Hardware - LIS3DH Accelerometer","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002023999/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=HAUzoffYvbKjsD7ysdDXJE0oVx8%3D","circuitpython-hardware-lis3dh-accelerometer",1794164677,{"doc_id":214,"doc_title":215,"file_type":18,"home_preview_img_url":216,"slug":217,"view_count":137,"category_name":12,"create_tm":218},720615,"Adafruit 4-Channel ADC Breakouts","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023676115/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=%2F%2BcA3%2BTs4BRhVXI2OacCZzAhJkE%3D","adafruit-4-channel-adc-breakouts",1795038464,{"doc_id":220,"doc_title":221,"file_type":18,"home_preview_img_url":222,"slug":223,"view_count":21,"category_name":12,"create_tm":224},689952,"Adafruit DRV8833 DC/Stepper Motor Driver Breakout Board - Overview - Wiring - Software - Python & CircuitPython","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002316631/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=0%2BfmrG68dOT4MTh5LvIVlSdtWww%3D","adafruit-drv8833-dcstepper-motor-driver-breakout-board-overview-wiring-software-python-circuitpython",1794139880]