[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-689933-105":59,"doc-detail-689933-en":130,"doc-similar-689933":158},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","adafruit-pcf8574-i2c-gpio-expander-overview-wiring","Adafruit PCF8574 I2C GPIO Expander - Overview - Wiring","","Adafruit PCF8574 I2C GPIO Expander overview explains how GPIO expanders add input/output capability to projects that need more pins. It describes the PCF8574’s 8 I/O pins, I2C address jumpers for multiple devices, and the open-drain style behavior without a direction register. Practical guidance covers button and LED wiring, LED/logic-level caveats, default address, and power and I2C pin connections, plus references to Arduino and CircuitPython/Python libraries for quicker setup.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/adafruit-pcf8574-i2c-gpio-expander-overview-wiring/689933/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/adafruit-pcf8574-i2c-gpio-expander-overview-wiring/689933.png","ImageObject",300,407,{"name":92,"@type":93},"hdkawk","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-29","2026-11-08",true,{"@type":102,"interactionType":103,"userInteractionCount":29},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"How many I/O pins does the PCF8574 provide and how are they addressed on the I2C bus?","Question",{"text":112,"@type":113},"The PCF8574 provides 8 I/O pins. Three I2C address select jumpers let you address up to 8 expanders on one bus, for a total of 64 GPIO.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"Why doesn’t the PCF8574 use a direction register, and what does that mean for inputs and outputs?",{"text":117,"@type":113},"The chip has no pin direction register; each pin uses two possible states. You set pins using “light pull-up input” or “strong ground output,” which effectively controls whether the pin reads high or low.",{"name":119,"@type":110,"acceptedAnswer":120},"What is the correct wiring approach for reading a button and controlling an LED?",{"text":121,"@type":113},"For a button, connect one side to the expander pin and the other side to ground, then use the light pull-up input so pressed reads low and released reads high. For an LED, wire the anode to positive voltage through a resistor; use light pull-up input to keep it off and strong ground output to turn it on.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},689933,1794136907,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":29,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":81,"preview_urls":145},3985747859855,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","Adafruit PCF8574 I2C GPIO Expander  \nCreated by Kattni Rembor  \n[https://learn.adafruit.com/adafruit-pcf8574](https://learn.adafruit.com/adafruit-pcf8574)  \nLast updated on 2024-06-03 03:40:12 PM EDT  \n©Adafruit Industries Page 1 of 21  \nTable of Contents  \nOverview 3  \n\n| Pinouts | 7 |\n| --- | --- |\n| • Power Pins\u003Cbr>• I2C Logic Pins\u003Cbr>• Expander Pins\u003Cbr>• Address Pin and Jumpers\u003Cbr>• INT Pin\u003Cbr>• On LED and LED Jumper\u003Cbr>Python & CircuitPython | 11 |\n| • CircuitPython Microcontroller Wiring\u003Cbr>• Python Computer Wiring\u003Cbr>• Python Installation of PCF8574 Library\u003Cbr>• CircuitPython Usage\u003Cbr>• Python Usage\u003Cbr>• Example Code\u003Cbr>Python Docs | 16 |\n| Arduino | 16 |\n| • Wiring\u003Cbr>• Library Installation\u003Cbr>• Load Example\u003Cbr>Arduino Docs | 20 |\n| Downloads | 20 |\n\n• Files  \n• Schematic and Fab Print  \n©Adafruit Industries Page 2 of 21  \nOverview  \nGPIO expanders work like this: you have a board with some number of GPIO but not enough for your project-maybe you need more buttons or LEDs. You could upgrade to a board with massive number of GPIO like the Grand Central ([https://adafru.it/17VD](https://adafru.it/17VD)), or you could pop on one of these boards.  \nConnect it over I2C and then you can send/receive I2C commands to control the GPIO pins to write and read them. It's going to be slower than direct GPIO access, but maybe that doesn't matter if it takes a millisecond instead of a microsecond. You only need the two I2C pins, and you can even share the I2C port with other sensors and devices. Heck, you can even add more expanders for massive I/O control!  \n©Adafruit Industries Page 3 of 21  \nThe PCF8574 is a common, and slightly unusual I2C expander for folks who are used to the MCP230xx series ([https://adafru.it/10kC](https://adafru.it/10kC)):  \n• First up, its very affordable-who doesn't love that?  \n• It has 8 I/O pins  \n• Three I2C address select jumpers mean up to 8 expanders to one bus for 64 total GPIO added  \n• Each pin can be an input with light pull-up or an output sink  \n• IRQ output will automatically alert you when input pins change value  \n• This chip does not have a pin direction register. You cannot set the pins to be  \ninput or output- instead each pin has two possible states. Basically you can think of it as an open-drain output with a 100K resistor pull-up built in.  \n• Option one: Lightly pulled up 'input' - by default it will read as a high logic level, but connecting the GPIO to ground will cause it to read as a low logic level.  \n• Option two: Strong 20mA low-driving transistor sink output. This means the output is 'forced' to be low and will always read as a low logic level.  \n©Adafruit Industries Page 4 of 21  \nThe pin direction / state thing is a little odd but it actually works fine for many purposes as long as you know what to expect.  \nFor example, if you want to read a button or switch, connect one side to the PCF and the other side to ground. Then set the pin to 'light pull-up input' When the button is pressed it will read low, when released it will read high.  \nIf you want to control an LED, connect the anode to positive voltage through a resistor. When the PCF pin is set to 'light pull-up input' the LED will be off. When the PCF pin is set to 'strong ground output' the LED will connect to ground and turn on.  \nIf you want to send a GPIO output logic level to some other device or peripheral, the light pull-up acts as high logic out, the strong ground output acts as low logic out.  \nIf you want to receive a GPIO input logic level, set the pin to light pull-up and then read the pin to determine if the GPIO input is high or low.  \n©Adafruit Industries Page 5 of 21  \nBasically, the only thing to watch for is you cannot drive an LED that is expecting the expander GPIO to go high to turn on the LED, or connect a button input to a positive voltage without adding an additional pull-down resistor. If this is a bit confusing, worry not-all this stuff is taken care of for you in our Arduino PCF8574 library ([","cbCailQJzqJuTjJl","https://ap.wps.com/l/cbCailQJzqJuTjJl","pdf",3619049,21,"English","# Overview\n## Pinouts\n## Python & CircuitPython\n## Arduino\n## Downloads","[{\"question\":\"How many I/O pins does the PCF8574 provide and how are they addressed on the I2C bus?\",\"answer\":\"The PCF8574 provides 8 I/O pins. Three I2C address select jumpers let you address up to 8 expanders on one bus, for a total of 64 GPIO.\"},{\"question\":\"Why doesn’t the PCF8574 use a direction register, and what does that mean for inputs and outputs?\",\"answer\":\"The chip has no pin direction register; each pin uses two possible states. You set pins using “light pull-up input” or “strong ground output,” which effectively controls whether the pin reads high or low.\"},{\"question\":\"What is the correct wiring approach for reading a button and controlling an LED?\",\"answer\":\"For a button, connect one side to the expander pin and the other side to ground, then use the light pull-up input so pressed reads low and released reads high. For an LED, wire the anode to positive voltage through a resistor; use light pull-up input to keep it off and strong ground output to turn it on.\"}]","Adafruit PCF8574 I2C GPIO Expander - Overview - Wiring | PDF",53,[146,150,154],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/cc31500753e53492440734af55c89512.webp",983,1390,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/bac14f91a9bbe47ac53dd819a05529b3.webp",982,1388,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/957aeca8007a4fc80592e85c961db3ae.webp",981,1387,{"list":159,"token":66},[160,166,172,178,184,190,196,202,208,213],{"doc_id":161,"doc_title":162,"file_type":137,"home_preview_img_url":163,"slug":164,"view_count":24,"category_name":30,"create_tm":165},690039,"Adafruit MCP23017 I2C GPIO Expander Breakout","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001921785/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111579&Signature=7%2BoOsqwQwXMGkVynjPlzZsam%2FGk%3D","adafruit-mcp23017-i2c-gpio-expander-breakout",1794145753,{"doc_id":167,"doc_title":168,"file_type":137,"home_preview_img_url":169,"slug":170,"view_count":29,"category_name":30,"create_tm":171},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=1796111579&Signature=K2%2Fb%2FNMIWyadPcBmVCRpNH6Bka4%3D","adafruit-stm32f405-feather-express",1794517354,{"doc_id":173,"doc_title":174,"file_type":137,"home_preview_img_url":175,"slug":176,"view_count":34,"category_name":30,"create_tm":177},720588,"MCP4725 12-Bit DAC Tutorial","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024400689/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111579&Signature=inOMHOuZxuO68KSGMdh6Ao6YKpk%3D","mcp4725-12-bit-dac-tutorial-720588",1795038320,{"doc_id":179,"doc_title":180,"file_type":137,"home_preview_img_url":181,"slug":182,"view_count":34,"category_name":30,"create_tm":183},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=1796111579&Signature=uwHk%2ByllkEbvXW6BzqLxhB2iyiY%3D","adafruit-4-channel-adc-breakouts",1795038464,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":19,"category_name":30,"create_tm":189},689930,"PCF8574 Remote 8-Bit I/O Expander for I2C Bus - Features, Applications, and Description","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001466287/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111579&Signature=wYxQ9uKmB8uVt55ur8Ue0li4aXE%3D","pcf8574-remote-8-bit-io-expander-for-i2c-bus-features-applications-and-description",1794136899,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":24,"category_name":30,"create_tm":195},689934,"UMW PCF8574 - 8-Bit I/O Expander for I2C Bus - Specification Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001466319/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111579&Signature=0EZ%2BkHjhum5IJ2UdsNfnRA6n9PU%3D","umw-pcf8574-8-bit-io-expander-for-i2c-bus-specification-overview",1794136908,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":44,"category_name":30,"create_tm":201},690042,"MCP23017 IO Expansion Board - User Manual","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001921843/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111579&Signature=EhD8G4sRNusGib0u6YyC9bku1Gk%3D","mcp23017-io-expansion-board-user-manual",1794145755,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":39,"category_name":30,"create_tm":207},690044,"Adafruit I2C to 8 Channel Solenoid Driver - Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002438306/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111579&Signature=iKURpB8QpxQqtaYdh0IczzSaLoY%3D","adafruit-i2c-to-8-channel-solenoid-driver-overview",1794145761,{"doc_id":209,"doc_title":174,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":29,"category_name":30,"create_tm":212},720580,"https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023675645/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111579&Signature=R8obSIKKD3pTeqZ2WUBE56QZ%2F4s%3D","mcp4725-12-bit-dac-tutorial",1795038301,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":34,"category_name":30,"create_tm":218},720517,"Adafruit BNO055 Absolute Orientation Sensor - Setup, Orientation Data, and Calibration Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024397763/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111579&Signature=ec1I7crSUMv0iIjqIUB%2B%2BiZOUXs%3D","adafruit-bno055-absolute-orientation-sensor-setup-orientation-data-and-calibration-guide",1795037682]