{"product_id":"4886-adafruit-aw9523-gpio-expander-and-led-driver-breakout","title":"Adafruit AW9523 GPIO Expander and LED Driver Breakout STEMMA QT \/ Qwiic","description":"\u003cp\u003eExpand your project possibilities, with the \u003cstrong\u003eAdafruit AW9523 GPIO Expander and LED Driver Breakout\u003c\/strong\u003e - a cute and powerful I2C expander with a lot of tricks up its sleeve.\u003c\/p\u003e\u003cp\u003eGPIO 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. \u003ca href=\"https:\/\/www.adafruit.com\/?q=grand+central\u0026amp;sort=BestMatch\"\u003eYou \u003cem\u003ecould\u003c\/em\u003e upgrade to a board with massive number of GPIO like the Grand Central\u003c\/a\u003e, or you could pop on one of these boards. Connect 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!\u003c\/p\u003e\u003cp\u003eThe AW9523 is a twist on the common I2C expander:\u003c\/p\u003e\u003cul\u003e\n\u003cli\u003eFirst up, its very affordable - who doesn't love that?\u003c\/li\u003e\n\u003cli\u003eIt has 16 I\/O pins, that'll double most boards' pin count\u003c\/li\u003e\n\u003cli\u003eFour I2C address options, so you can connect 4 expanders to one bus\u003c\/li\u003e\n\u003cli\u003eEach pin can be an input or an output\u003c\/li\u003e\n\u003cli\u003eIRQ output can alert you when input pins change value\u003c\/li\u003e\n\u003cli\u003eThis chip \u003cem\u003edoes not\u003c\/em\u003e support internal pull-ups or pull-downs, you will need to add an external resistor if you need one\u003c\/li\u003e\n\u003cli\u003eHowever, it \u003cem\u003edoes\u003c\/em\u003e have 8-bit linear constant-current LED dimming support so you can connect LEDs without resistors and have great looking dimming without PWM\u003c\/li\u003e\n\u003cli\u003eThe first 8 pins can be configured as open drain (as a group)\u003c\/li\u003e\n\u003c\/ul\u003e\u003cp\u003eThe lack of internally-configurable pull's is a bit of a bummer, but we think the expander more than makes up for it with the constant-current LED drive. If you're using an expander to add lots of controllable LEDs, this board will make it very easy. Since its constant-current, you \u003cem\u003edon't\u003c\/em\u003e need resistors in line with each LED (although it won't hurt if you do): simply connect the LED anode to one of the many VIN pads, then connect the cathode to the GPIO pin.\u003c\/p\u003e\u003cp\u003eOf course, you can control any buttons or other I\/O with the pins - we just think this board is particularly suited to LED driving. There's also an interrupt output, you can enable the pin-change IRQ for any pins so you can be notified when its time to read the I\/O states.\u003c\/p\u003e\u003cp\u003eOne oddity about this chip is the default I2C address determines the initial boot-state of the pins. Our libraries immediately soft-reset and configure all the pins to inputs and push-pull so you can expect the same behavior no matter what the I2C address is. However, we recommend you check the datasheet Table 1 to make sure this doesn't affect your hardware.\u003c\/p\u003e\u003cp\u003e\u003ca href=\"https:\/\/github.com\/adafruit\/Adafruit_AW9523\"\u003eWe've written both Arduino\u003c\/a\u003e and \u003ca href=\"https:\/\/github.com\/adafruit\/Adafruit_CircuitPython_AW9523\"\u003eCircuitPython\/Python libraries\u003c\/a\u003e for the AW9523, so you can get started whether you have an Arduino-compatible UNO or a Raspberry Pi 4 - or anything in between.\u003c\/p\u003e\u003cp\u003eTo get you going fast, we spun up a custom made PCB in the\u003ca title=\"STEMMA QT form factor\" href=\"https:\/\/www.adafruit.com\/?q=stemma%20qt%20sensor\"\u003e \u003cstrong\u003eSTEMMA QT\u003c\/strong\u003e form factor\u003c\/a\u003e, making it easy to interface with. The \u003ca href=\"https:\/\/learn.adafruit.com\/introducing-adafruit-stemma-qt\/what-is-stemma-qt\"\u003eSTEMMA QT connectors\u003c\/a\u003e on either side are compatible with the \u003ca href=\"https:\/\/www.sparkfun.com\/qwiic\"\u003eSparkFun Qwiic\u003c\/a\u003e I2C connectors. This allows you to make solderless connections between your development board and the AW9523 or to chain it with a wide range of other sensors and accessories using a \u003ca href=\"https:\/\/www.adafruit.com\/?q=stemma%20qt%20cable\"\u003e\u003cstrong\u003ecompatible cable\u003c\/strong\u003e\u003c\/a\u003e. \u003ca href=\"https:\/\/www.adafruit.com\/?q=stemma+qt+cable\u0026amp;sort=BestMatch\"\u003e\u003cstrong\u003eQT Cable is not included\u003c\/strong\u003e, but we have a variety in the shop\u003c\/a\u003e. \u003c\/p\u003e\u003cp\u003e\u003cstrong\u003e Note:\u003c\/strong\u003e You may get an off-white or black JST connector.\u003c\/p\u003e\u003cp\u003e\u003cimg class=\"video-insert\" alt=\"https:\/\/www.youtube.com\/embed\/8wX7vi4dwgI\" contenteditable=\"false\" allowfullscreen=\"true\" frameborder=\"0\" src=\"https:\/\/img.youtube.com\/vi\/8wX7vi4dwgI\/hqdefault.jpg\"\u003e\u003c\/p\u003e\u003cp\u003e\u003cimg class=\"video-insert\" alt=\"https:\/\/www.youtube.com\/embed\/g5kkykjRT40?start=343\" contenteditable=\"false\" allowfullscreen=\"true\" frameborder=\"0\" src=\"https:\/\/img.youtube.com\/vi\/g5kkykjRT40\/hqdefault.jpg\"\u003e\u003c\/p\u003e\u003cp\u003e\u003cimg class=\"video-insert\" alt=\"https:\/\/www.youtube.com\/embed\/6GXRRuFuFy0\" contenteditable=\"false\" allowfullscreen=\"true\" frameborder=\"0\" src=\"https:\/\/img.youtube.com\/vi\/6GXRRuFuFy0\/hqdefault.jpg\"\u003e\u003c\/p\u003e","brand":"Adafruit","offers":[{"title":"4-6 Giorni","offer_id":47700317700441,"sku":"ADA-4886\/B","price":7.25,"currency_code":"EUR","in_stock":true},{"title":"1 Giorno","offer_id":47886498562393,"sku":"ADA-4886\/A","price":7.25,"currency_code":"EUR","in_stock":false},{"title":"2-4 Settimane","offer_id":47886659649881,"sku":"ADA-4886","price":7.25,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/4886-01.jpg?v=1705517536","url":"https:\/\/xernuqvalzi.pro\/products\/4886-adafruit-aw9523-gpio-expander-and-led-driver-breakout","provider":"Robot Italy","version":"1.0","type":"link"}