Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NCD16Relay library doesn't turn on relays on the PR16-12 Board with Particle Electron #1

Closed
alan707 opened this issue Dec 10, 2020 · 1 comment

Comments

@alan707
Copy link

alan707 commented Dec 10, 2020

Steps to Reproduce:

  1. Disconnect all jumpers
  2. On build.particle.io, select the example loop-test.ino from the NCD16Relay library
  3. Select Photon attached to PR16-12 board
  4. Flash clicking on the lightning bolt

Expected failure:

Relays do not turn on or off

What I've tried to get Bank 1 to work

By modifying the registerAddress on the file NCD16Relay.cpp, I was able to get half of the bank of relays to turn on/off. The address that seemed to work was registerAddress = 0x0A, which doesn't seem to match the documentation for the MCP23017 IC.

@alan707
Copy link
Author

alan707 commented Jan 12, 2021

Turned out it was a bad relay board - replacing it with a new one solved the issue.

@alan707 alan707 closed this as completed Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant