[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-690042-105":59,"doc-detail-690042-en":130,"doc-similar-690042":154},{"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","mcp23017-io-expansion-board-user-manual","MCP23017 IO Expansion Board - User Manual","","MCP23017 I/O expansion board user manual describes an I2C-based GPIO expansion module providing 16 general-purpose pins. It explains key features including hardware-configurable I2C address via A0/A1/A2, level conversion for 3.3V and 5V compatibility, and interrupt pins INTA/INTB with support for connecting multiple modules. The guide includes electrical specifications and detailed wiring/interface pin mapping for Arduino Uno, STM32F407, and Raspberry Pi, plus step-by-step setup and demo code instructions and expected test results.",{"@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/mcp23017-io-expansion-board-user-manual/690042/",{"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/mcp23017-io-expansion-board-user-manual/690042.png","ImageObject",300,407,{"name":92,"@type":93},"Genevieve","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-25","2026-11-08",true,{"@type":102,"interactionType":103,"userInteractionCount":44},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What interface and how many I/O pins does the MCP23017 expansion board provide?","Question",{"text":112,"@type":113},"It uses an I2C interface and provides 16 GPIO expansion pins.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How is the I2C slave address configured?",{"text":117,"@type":113},"The I2C address is hardware configurable by changing A0/A1/A2. By default A2/A1/A0 are High without welding; short the welding points to set them Low.",{"name":119,"@type":110,"acceptedAnswer":120},"What are the interrupt pins used for and how do you test them?",{"text":121,"@type":113},"Interrupt pins INTA and INTB signal interrupt events. In the demo, interrupt information is printed to the console, with PA0–PA7 mapped to 0–7 and PB0–PB7 mapped to 8–15.","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},690042,1794145755,{"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":44,"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":14,"preview_urls":145},1374391974585,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","MCP23017 IO Expansion Board  \nUser Manual  \nOVERVIEW  \nThis is an I/O expansion module uses I2C interface, gives you 16 GPIO. Supports using  \n8 expansion modules at the same for up to 128 general purpose pins. Compatible with 3.3V and 5V voltage.  \nFEATURES  \n􀁺 Use two i2c pins, expands up to 16 pins I/O  \n􀁺 I2C address is hardware configurable by changing A0/A1/A2  \n􀁺 PH2.0 terminal and weld pad, supports parallelly connecting multiple I2C  \nmodules.  \n􀁺 Integrates level conversion circuit, compatible with 3.3V and 5V.  \n􀁺 Comes with development resources and manual (for  \nRaspberryPi/micro:bit/Arduino/STM32)  \nSPECIFICATIONS  \nOperating voltage: 5V/3.3V  \nInterface: I2C  \nInterrupt pin: INTA, INTB  \nExpansion I/O: 16  \nDimension: 38mmx23mm  \nHoles size: 2.0mm  \nINTERFACE  \n| PIN | Description | Arduino Uno | STM32F407 | Raspberry Pi |\n| --- | --- | --- | --- | --- |\n| Vcc | Voltage | 3. 3V/5V | 3. 3V/5V | 3. 3V/5V |\n| GND | Ground | GND | GND | GND |\n| SDA | I2C data line | SDA | PB7 | SDA |\n| SCL | I2C clock line | SCL | PB6 | SCL |\n| INTA1 | Interrupt pin | 3 | PA0 | 0(WiringPi) |\n| INTB2 | Interrupt pin | 3 | PA0 | 0(WiringPi) |\n\n1 You can just connect one interrupt pin when using.  \n2 You can just connect one interrupt pin when using.  \nHOW TO USE  \nWORKING WITH RASPBERRY PI  \nLIBRARIES INSTALLATION  \nTo use the Raspberry Pi demo code, you need to install WiringPi libraries. Please refer to the page: [https://www.waveshare.com/wiki/Libraries_Installation_for_RPi](https://www.waveshare.com/wiki/Libraries_Installation_for_RPi)  \n[Download demo code from Waveshare Wiki and extract it to get the demo code.](Download demo code from Waveshare Wiki and extract it to get the demo code.)  \nCopy Raspberry PI folder to your Raspberry Pi. (generally copy to boot of the SD card  \nwhich has Raspbian installed)  \nRUNNING THE CODE  \nSetting  \n1. Configuration  \nsudo raspi-config  \n2. Choose Interfacing Options- > I2C->yes to enable I2C interface  \n3. Save and reboot Raspberry Pi  \nsudo reboot  \n4. After rebooting, you can check if I2C module is enabled by command:  \nlsmod  \nI2C module is enabled normally if you get the information as below,  \n5. Connecting MCP23017 module to Raspberry Pi according to interfaces  \n6. You can just connect one of the two interrupt pins to 0(wiringPi) as INTA and INTB  \nare configured to interconnecting by code  \nDefault address of module is 0x27, you can also change its device address by welding A2, A0, A1 . By default, A2, A1, A0 are all High without welded. If you want to turn them to Low, you should short these welding points. According to datasheet, slave address can be configured as below:  \n7. Install i2c-tools for inquiring slave address of i2c modules  \nsudo apt-get install i2c-tools  \n8. Inquiring i2c devices connected  \ni2cdetect-y 1  \nIf you didn’t change the slave address of MCP23017 module, you will get the information as above, the slave address is 0x27 inquired as we expected. You can  \nalso change the address by welding A2/A1/A0 points, however, you need to make sure there are not other modules which have the same address first.  \nRunning  \n1. Copy the demo code (we have copied to boot) to /home/pi/ directory.  \n2. Enter the directory of demo code  \ncd MCP23017-Raspberry-PI-Library  \n3. Open main.c file  \nvim main.c  \n4. Check the slave address first. If you once changed the address, you should change  \nthe parameter of mcp_begin() .  \nThen, enable macro for corresponding testing.  \n\\#define debug: 1: print registers’value to console  \n\\#define outputTest: 1: Output testing  \n\\#define inputTest: 1: Input testing  \n\\#define interruptTest: 1; Interrupt output testing  \n【Note】  \nOutput testing: set outputTest to 1; inputTest and interruptTest to 0;  \nInput testing: set inputTest to 1; outputTest and interruptTest to 0;  \nInterrupt testing: set interruptTest to 1; outputTest and inputTest to 0  \n5. After modifying, save and exit.  \n6. Compiling demo code  \nmake  \n7. running the code  \n./mymcp2","cbCairq7y6Exuxxi","https://ap.wps.com/l/cbCairq7y6Exuxxi","pdf",696497,11,"English","# Overview\n# Features\n# Specifications\n# Interface\n# How to Use\n## Working with Raspberry Pi\n## Working with Arduino\n## Working with STM32","[{\"question\":\"What interface and how many I/O pins does the MCP23017 expansion board provide?\",\"answer\":\"It uses an I2C interface and provides 16 GPIO expansion pins.\"},{\"question\":\"How is the I2C slave address configured?\",\"answer\":\"The I2C address is hardware configurable by changing A0/A1/A2. By default A2/A1/A0 are High without welding; short the welding points to set them Low.\"},{\"question\":\"What are the interrupt pins used for and how do you test them?\",\"answer\":\"Interrupt pins INTA and INTB signal interrupt events. In the demo, interrupt information is printed to the console, with PA0–PA7 mapped to 0–7 and PB0–PB7 mapped to 8–15.\"}]","MCP23017 IO Expansion Board - User Manual | PDF",28,[146,150],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/d560adb814658c53fbb7f19e7ac9fa48.webp",983,1390,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/1da284f86ddfd8b9d661e58fa618ad7c.webp",982,1388,{"list":155,"token":66},[156,162,168,174,180,186,192,198,203,209],{"doc_id":157,"doc_title":158,"file_type":137,"home_preview_img_url":159,"slug":160,"view_count":24,"category_name":30,"create_tm":161},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=1796110199&Signature=s8STFuD0ZgnDt0kpBro9UrFAnl0%3D","adafruit-mcp23017-i2c-gpio-expander-breakout",1794145753,{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":34,"category_name":30,"create_tm":167},690040,"MCP23017/MCP23S17 - 16-Bit I/O Expander with Serial Interface","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002438213/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=Lsa58UxJqWLqo6L%2Bk8zo0m0o%2B4Q%3D","mcp23017mcp23s17-16-bit-io-expander-with-serial-interface",1794145754,{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":29,"category_name":30,"create_tm":173},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=1796110199&Signature=haV5ACSKhnZ9Sryv%2FoU%2BVQXUrUA%3D","adafruit-stm32f405-feather-express",1794517354,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":24,"category_name":30,"create_tm":179},720638,"4-Digit 8-Segment Display - TelePort - Product Details - Technical Specifications - Test Code","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023676679/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=GbWwLKEg%2BKLbKEiBUF1r7LibCgY%3D","4-digit-8-segment-display-teleport-product-details-technical-specifications-test-code",1795038592,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":39,"category_name":30,"create_tm":185},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=1796110199&Signature=wq7pjOMMQPbwkJKtU56M8YPLBIM%3D","adafruit-i2c-to-8-channel-solenoid-driver-overview",1794145761,{"doc_id":187,"doc_title":188,"file_type":137,"home_preview_img_url":189,"slug":190,"view_count":29,"category_name":30,"create_tm":191},689933,"Adafruit PCF8574 I2C GPIO Expander - Overview - Wiring","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002264255/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=DHiwQP6%2BvfHMRM5lRwtj8PtTwTI%3D","adafruit-pcf8574-i2c-gpio-expander-overview-wiring",1794136907,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":34,"category_name":30,"create_tm":197},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=1796110199&Signature=nJJsjk5CHIuOBfjuSQ%2BtywG7HWg%3D","mcp4725-12-bit-dac-tutorial-720588",1795038320,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":29,"category_name":30,"create_tm":167},690041,"MCP23017/MCP23S17 - 16-Bit I/O Expander with Serial Interface - Features","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002438212/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=bt2LR7xCMFkoHZ8LPBk8HIZ6A7c%3D","mcp23017mcp23s17-16-bit-io-expander-with-serial-interface-features",{"doc_id":204,"doc_title":205,"file_type":137,"home_preview_img_url":206,"slug":207,"view_count":29,"category_name":30,"create_tm":208},720550,"ADXL345 Digital Accelerometer","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023675277/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=HD1XZaHwPu3AYTvB0IHSvpph8Oc%3D","adxl345-digital-accelerometer",1795038174,{"doc_id":210,"doc_title":211,"file_type":137,"home_preview_img_url":212,"slug":213,"view_count":39,"category_name":30,"create_tm":214},689891,"PCA9685 - ENG","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002212486/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=jBTu7LlzRnZAuuQQIKWesy18mZw%3D","pca9685-eng",1794133095]