SX1509 analogWrite not working

Have questions about a SparkFun product or board? This is the place to be.

Moderators: phalanx, TS-Tim

Post Reply
mamama1
Posts: 1
Joined: Fri Jul 21, 2017 6:44 am

SX1509 analogWrite not working

Post by mamama1 » Fri Jul 21, 2017 6:51 am

Hi

i have just hooked up a SX1509 board to an ESP8266.
Breathe seems to work, but analogWrite does not.

I'm not sinking current but I'm sourcing it, as I have hooked up NPN Mosfets (IRL3708) and then subsequently the LEDs.
When I set a pin to analogWrite, it has about like half of the LED brightness and doesn't change, no matter what value I set analogWrite to.

Should analogWrite work with NPN MOSFET setups and sourcing current? The example specifically mentions that analogWrite expects sourcing current. Do I have to modify the library in any way?

Thanks

Post Reply