Connecting Buttons to MCP23S17


Below is a summary of the connections:

Table


ButtonMCP23S17 Pin (U1)
SW4GPA0
SW3GPA1
SW2GPA2
SW1GPA3
SW8GPA4
SW7GPA5
SW6GPA6
SW5GPA7
All eight tactile switches are now wired as inputs to the MCP23S17 (U1).
As a next step, you might consider adding pull-up resistors on these lines (if not using internal pull-ups) to ensure stable logic levels.
Add pull-up resistors for each button input to ensure stable logic levels when they're not being pressed.
Below is a summary of the added pull-up resistor connections:

Table


ButtonMCP23S17 Pin (U1)Pull-up Resistor DesignatorResistor Value
SW4GPA0R110 kΩ
SW3GPA1R210 kΩ
SW2GPA2R310 kΩ
SW1GPA3R410 kΩ
SW8GPA4R510 kΩ
SW7GPA5R610 kΩ
SW6GPA6R710 kΩ
SW5GPA7R810 kΩ
Each pull-up resistor is connected between the respective MCP23S17 input and the supply (VCC). This ensures that the digital inputs remain at a stable logic high when the corresponding tactile switches are not pressed.
A recommended next step is to verify that the voltage level for VCC matches the operating range specified in the MCP23S17 datasheet.
Power section passive components
Schematic finalization
Additional components

SW2 1-1 - U1 GPA2
SW4 1-1 - U1 GPA0
SW8 1-1 - U1 GPA4
SW8 1-1 - U1 GPA4
SW3 1-1 - U1 GPA1
SW1 1-1 - U1 GPA3
SW4 1-1 - U1 GPA0
SW1 1-1 - U1 GPA3
SW7 1-1 - U1 GPA5
SW3 1-1 - U1 GPA1
SW6 1-1 - U1 GPA6
SW7 1-1 - U1 GPA5
SW5 1-1 - U1 GPA7
SW6 1-1 - U1 GPA6
SW2 1-1 - U1 GPA2
SW5 1-1 - U1 GPA7
SW4
SW2
SW8
SW3
SW7
SW1
SW6
SW5
U1

Royal Emerald Robot Maid

Royal Emerald Robot Maid thumbnail