{"product_id":"593-mcp23008-i2c-8-input-output-port-expander","title":"MCP23008 - i2c 8 input\/output port expander","description":"\u003cp\u003eAdd another 8 pins to your microcontroller using an MCP23008 port expander. The MCP23008 uses two i2c pins (these can be shared with other i2c devices), and in exchange gives you 8 general purpose pins. You can set each of 8 pins to be input, output, or input with a pullup. There's even the ability to get an interrupt via an external pin when any of the inputs change so you don't have to keep polling the chip.\u003cbr\u003e\u003cbr\u003eUse this chip from 2.7-5.5V (good for any 3.3V or 5V setup), and you can sink\/source up to 20mA from any of the I\/O pins so this will work for LEDs and such. Team it up with a high-power MOSFET if you need more juice. DIP package means it will plug into any breadboard or perfboard.\u003cbr\u003e\u003cbr\u003eYou can set the i2c address by tying the ADDR0-2 pins to power or ground, for up to 8 unique addresses. That means 8 chips can share a single i2c bus - that's 64 I\/O pins!\u003cbr\u003e\u003cbr\u003eWe used this chip in our SPI\/i2c backpack and found it to be very reliable and easy to get up and running. \u003ca href=\"https:\/\/github.com\/adafruit\/Adafruit-MCP23008-library\"\u003eWe even have an Arduino library with example code written which will set pin state, read and write from individual pins, and set the pullups.\u003c\/a\u003e\u003c\/p\u003e\u003cp\u003e\u003cimg class=\"video-insert\" alt=\"https:\/\/www.youtube.com\/embed\/ouhHKlIrG-I\" contenteditable=\"false\" allowfullscreen=\"true\" frameborder=\"0\" src=\"https:\/\/img.youtube.com\/vi\/ouhHKlIrG-I\/hqdefault.jpg\"\u003e\u003c\/p\u003e\u003cp\u003e\u003cimg class=\"video-insert\" alt=\"https:\/\/www.youtube.com\/embed\/EC1X_Jj68Xo\" contenteditable=\"false\" allowfullscreen=\"true\" frameborder=\"0\" src=\"https:\/\/img.youtube.com\/vi\/EC1X_Jj68Xo\/hqdefault.jpg\"\u003e\u003c\/p\u003e\u003cp\u003e\u003cimg class=\"video-insert\" alt=\"https:\/\/www.youtube.com\/embed\/vxDZktaVE_M?start=566\" contenteditable=\"false\" allowfullscreen=\"true\" frameborder=\"0\" src=\"https:\/\/img.youtube.com\/vi\/vxDZktaVE_M\/hqdefault.jpg\"\u003e\u003c\/p\u003e\u003cp\u003e\u003cimg class=\"video-insert\" alt=\"https:\/\/www.youtube.com\/embed\/rUuwO3Q8N6o?start=566\" contenteditable=\"false\" allowfullscreen=\"true\" frameborder=\"0\" src=\"https:\/\/img.youtube.com\/vi\/rUuwO3Q8N6o\/hqdefault.jpg\"\u003e\u003c\/p\u003e","brand":"Adafruit","offers":[{"title":"4-6 Giorni","offer_id":47700356923737,"sku":"ADA-593\/B","price":2.85,"currency_code":"EUR","in_stock":true},{"title":"1 Giorno","offer_id":47886515700057,"sku":"ADA-593\/A","price":2.85,"currency_code":"EUR","in_stock":false},{"title":"2-4 Settimane","offer_id":47886679408985,"sku":"ADA-593","price":2.85,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/593-01.jpg?v=1705518270","url":"https:\/\/xernuqvalzi.pro\/products\/593-mcp23008-i2c-8-input-output-port-expander","provider":"Robot Italy","version":"1.0","type":"link"}