Skip to content

com.pi4j.exception.Pi4JException: Failed to execute action for device XXX on bus YYY #276

Answered by taartspi
razorne asked this question in Q&A
Discussion options

You must be logged in to vote

I got a MCP23017 module like yours.

CQRobot MCP23017

Pi SCL Blue
Pi SDA Green
Pi Gnd Black
Pi 3.3 Red

PA0 ++++LED--//////---- Gnd pin

I did no Ax jumpers i2cdetect -y 1 shows I2C device address 0x27

Per CQRobot spec
/*the param can be 0 to 7,the default param is 7.means the dafault device address 0x27.

Test case executes and LED blinks on/off as expected.
I can only assume you have a Hardware Problem. If other I2C devices function correctly I think your MCP23017 module is the problem.

Replies: 7 comments 20 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@taartspi
Comment options

@razorne
Comment options

Comment options

You must be logged in to vote
1 reply
@razorne
Comment options

Comment options

You must be logged in to vote
7 replies
@taartspi
Comment options

Answer selected by razorne
@razorne
Comment options

@taartspi
Comment options

@razorne
Comment options

@taartspi
Comment options

Comment options

You must be logged in to vote
8 replies
@taartspi
Comment options

@razorne
Comment options

@razorne
Comment options

@razorne
Comment options

@taartspi
Comment options

Comment options

You must be logged in to vote
1 reply
@taartspi
Comment options

Comment options

You must be logged in to vote
1 reply
@FDelporte
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants