Hello friends! This week I will check the compatibility of the Adafruit library for multi-channel PWM if I can quickly find the required chip (PCA9685). Unfortunately, I don’t have such a shield in my collection.
PS.
UOOU To clarify, draw how you connected the shield to the w80x board
Thank you. Please take a look
@UOOU I received the long-awaited multi-channel PWM shield from AliExp. The first test showed compatibility with the Adafruit_PWMServoDriver library at an MCU clock speed of 80 MHz. All tests were successful. I don’t know yet why it doesn’t work at 160/240 MHz. But I'll try to figure out this soon.
![image.png image.png](/uploads/20231119/5c8058c584f10a34642ba082efa8aed2.png)
@UOOU Second method... Use any pins for SDA, SCL signals. To do this you need to edit the file like this
![image.png image.png](/uploads/20231119/95d65f00d53052c192e1982e9456cabd.png)
In this case, software emulation of the I2C protocol will work. This works stably at all MCU frequencies with acceptable baud rates
@UOOU Third method... You need to add some code to the file. This works well even with Wire.setClock(1000000)! end MCU clock 160/240 mhz
![image.png image.png](/uploads/20231120/a5e5d4d06da3471dd6dc88b2d08b3145.png)
![image.png image.png](/uploads/20231120/70ccaaff5ecbb57a6f52df96108c2a80.png)
![image.png image.png](/uploads/20231120/8f5d5c3933f770112a0d0e6b495f9a61.png)
@AnatolSher Thank you very much, this way it can work