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

LEDs never fully turn off #76

Open
jmagers opened this issue May 27, 2019 · 1 comment
Open

LEDs never fully turn off #76

jmagers opened this issue May 27, 2019 · 1 comment

Comments

@jmagers
Copy link
Contributor

jmagers commented May 27, 2019

I'm using LEDs with the PCA9685 as a current sink and can't get them to fully turn off. LEDs are very dim but still on.

I would expect that when using PCA9685_setPWMVals with onVals all set to zeros and offVals all set to 4095 then all LEDs would be completely off.

After some googling I found that there is a special value for this chip, 4096, for setting a channel to completely off but could not get this to work either.
https://forums.adafruit.com/viewtopic.php?f=22&t=52817

@edlins
Copy link
Owner

edlins commented Jul 7, 2019

Hmmm, unfortunately I'm using the PCA9685 as a source to drive MOSFETs so I can't easily recreate current sink issues without building a new circuit. An unsigned int off value of 4096 should set the off low register to 0x00 and the off high register to 0x10 which is full off. You can enable _PCA9685_DEBUG mode to confirm the registers are getting these values. If the correct values are confirmed I would take a close look at your circuit design and see if there is any way current could be sinking elsewhere.

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

2 participants