Hello,
Trying to muddle through setting up a PCA9686 PWM driver using plugdata and custom .json. I am able to compile to the daisy, and i have set an audio oscillator in the patch to make sure it is up and running (it sings properly), but the PCA9685 just turns all the leds on and isn’t seeming to communicate with the daisy or the patch….
Are there any tricks anyone has found to get I2C working through Pd patch and custom .json? I copied the .json I2C parts from the field .json, and am sending 0-1 range float outputs [s led1 @hvparamhvparamhvparamhvparamhvparamhvparamhvparamhvparam] from within the Pd patch. But its not working. Are there any other steps to set up the PCA9685, like addressing within the Pd patch, setting PWM rate, .json settings I need to assign, or other I2C settings….?
I have the .json link below if anyone can look it over sometime…. or is it better if i paste it into the post?
Thanks so much - can’t seem to work out what I am doing wrong. ….so much to learn!!!
{
"name": "ledtrial",
"som": "seed",
"audio": {
"channels": 2
},
"parents": {
"i2c": {
"component": "i2c",
"pin": {
"scl": 11,
"sda": 12
}
},
"led_driver": {
"component": "PCA9685",
"address": "{0x40}",
"parent": "i2c",
"driver_count": 1
}
},
"components": {
"lfo1": {
"component": "AnalogControl",
"pin": 15
},
"led1": {
"component": "PCA9685Led",
"index": 0,
"parent": "led_driver"
},
"led2": {
"component": "PCA9685Led",
"index": 1,
"parent": "led_driver"
},
"led3": {
"component": "PCA9685Led",
"index": 2,
"parent": "led_driver"
},
"led4": {
"component": "PCA9685Led",
"index": 3,
"parent": "led_driver"
},
"led5": {
"component": "PCA9685Led",
"index": 4,
"parent": "led_driver"
},
"led6": {
"component": "PCA9685Led",
"index": 5,
"parent": "led_driver"
},
"led7": {
"component": "PCA9685Led",
"index": 6,
"parent": "led_driver"
},
"led8": {
"component": "PCA9685Led",
"index": 7,
"parent": "led_driver"
},
"led9": {
"component": "PCA9685Led",
"index": 8,
"parent": "led_driver"
},
"led10": {
"component": "PCA9685Led",
"index": 9,
"parent": "led_driver"
},
"led11": {
"component": "PCA9685Led",
"index": 10,
"parent": "led_driver"
},
"led12": {
"component": "PCA9685Led",
"index": 11,
"parent": "led_driver"
},
"led13": {
"component": "PCA9685Led",
"index": 12,
"parent": "led_driver"
},
"led14": {
"component": "PCA9685Led",
"index": 13,
"parent": "led_driver"
},
"led15": {
"component": "PCA9685Led",
"index": 14,
"parent": "led_driver"
},
"led16": {
"component": "PCA9685Led",
"index": 15,
"parent": "led_driver"
}
}
}