The Adafruit GPIO Expander Bonnet is a versatile and powerful add-on board designed for the Raspberry Pi. This board utilizes the MCP23017 I2C GPIO expander IC to provide an additional 16 GPIO pins, effectively expanding the capabilities of the Raspberry Pi for projects that require more inputs and outputs. It is particularly useful for interfacing with sensors, LEDs, motors, and other electronic components in complex projects.
Pin Number | Description | Notes |
---|---|---|
1-16 | GPIO (0-15) | Bidirectional I/O pins |
A0 | Address Select Pin 0 | Used for I2C address selection |
A1 | Address Select Pin 1 | Used for I2C address selection |
A2 | Address Select Pin 2 | Used for I2C address selection |
VDD | Power Supply | Connect to 3.3V |
VSS | Ground | Connect to GND |
SCL | I2C Clock | Connect to SCL on Raspberry Pi |
SDA | I2C Data | Connect to SDA on Raspberry Pi |
RESET | Reset Pin | Active-low; typically left open |
i2cdetect
command to verify that the Raspberry Pi can detect the MCP23017 on the I2C bus.Q: Can I stack multiple GPIO Expander Bonnets on a Raspberry Pi? A: Yes, you can stack multiple bonnets by configuring each MCP23017 with a unique I2C address using the A0, A1, and A2 pins.
Q: How do I control the GPIO pins on the Expander Bonnet?
A: You can control the GPIO pins by using I2C commands from the Raspberry Pi to interact with the MCP23017 chip. Libraries such as Adafruit_GPIO
can simplify this process.
Q: Is the GPIO Expander Bonnet compatible with all models of Raspberry Pi? A: The bonnet is compatible with any Raspberry Pi model that has a 40-pin GPIO header and supports I2C communication.
Q: What is the maximum voltage and current that can be applied to the GPIO pins? A: The maximum voltage is 3.3V, and the maximum current per pin is 25 mA, with a total chip current of 150 mA.
For further assistance, visit the Adafruit support forums or the Raspberry Pi community forums.
Please note that this documentation is a general guide and may not cover all aspects of the Adafruit GPIO Expander Bonnet. Always refer to the official Adafruit documentation and resources for the most accurate and detailed information.