{"product_id":"adafruit-gpio-expander-bonnet-16-additional-i-o-over-i2c","title":"Adafruit GPIO Expander Bonnet - 16 Additional I\/O over I2C","description":"\u003cp\u003eThe Raspberry Pi is an amazing single board computer - and one of the best parts is that GPIO connector! 40 pins of digital goodness you can twiddle to control LEDs, sensors, buttons, radios, displays - just about any device you can imagine. This Adafruit GPIO Expander Bonnet will give you \u003cem\u003eeven more \u003c\/em\u003edigital deliciousness - 16 more digital input\/output pins are yours for any desire you have.\u003c\/p\u003e\n\u003cp\u003eThe outputs are grouped into two 16-pin connectors that have a matching ground pin. You can set each pin to be a digital output (high or low) or as an input, with an internal pull-up if you like!\u003c\/p\u003e\n\u003cp\u003eSimply pop the Bonnet on top of your Pi, the circuitry connects to the SDA\/SCL I2C pins for control. The MCP23017 chip converts our Python commands to pin instructions.\u003c\/p\u003e\n\u003cp\u003eWhen used as an output, each pin can supply up to 20mA (current clamped) - so you can drive LEDs directly. The datasheet recommends you keep the total current draw to under 125mA for the whole chip. We set up the expander chip for 5V logic by default (the I2C is level shifted so that's 3V logic). We did that so you can drive white, blue or green LEDs that sometimes aren't too happy with 3.3V logic. Or, you can cut\/solder a jumper to change it to 3.3V logic.\u003c\/p\u003e\n\u003cp\u003eWhen used as an input, you can set up a pull-up resistor so buttons and switches don't need extra resistors - just wire the pin to one side and ground to the other! There's interrupt capabilities on the chip, and two IRQ pins (INTA and INTB) you can solder a wire to, if you want to have a quick way of telling if any of the GPIO's changed.\u003c\/p\u003e\n\u003cp\u003eBy soldering close the address select jumpers, you can change the address from 0x20 up to 0x27. So, if you wanted to, you could have up to 8 bonnets for 128 total GPIO.\u003c\/p\u003e\n\u003cp\u003eComes as an assembled and tested Bonnet with slim 2x20 header connector on the bottom. Adafruit provide 2 sets of 16-pin IDC sockets, you can solder these in or leave them off for a slim setup. \u003ca href=\"https:\/\/learn.adafruit.com\/gpio-expander-bonnet\/overview\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eFollow the guide to use the CircuitPython library with Python 3 for fast and easy setup and configuration, you'll be running in under 5 minutes.\u003c\/a\u003e\u003c\/p\u003e\n\u003ch2\u003eTECHNICAL DETAILS\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/learn.adafruit.com\/gpio-expander-bonnet\/overview\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eSchematics, diagrams, code examples and more in the Learning System Guide\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003eProduct Dimensions: 65.0mm x 30.6mm x 5.6mm \/ 2.6\" x 1.2\" x 0.2\"\u003c\/li\u003e\n\u003cli\u003eProduct Weight: 10.4g \/ 0.4oz\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003eLEARN\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003ca href=\"https:\/\/learn.adafruit.com\/gpio-expander-bonnet\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ePrimary Guide: Adafruit GPIO Expander Bonnet for Raspberry Pi\u003c\/a\u003e - Easily add SIXTEEN additional I\/O over I2C!\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Adafruit","offers":[{"title":"Default Title","offer_id":21768708653139,"sku":"ADA4132","price":1800.0,"currency_code":"JPY","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0174\/1800\/products\/4132-06.jpg?v=1552306665","url":"https:\/\/shop.pimoroni.com\/en-jp\/products\/adafruit-gpio-expander-bonnet-16-additional-i-o-over-i2c","provider":"Pimoroni Ltd","version":"1.0","type":"link"}