
PRO
smiller29
USA
Asked
— Edited

Can ARC work with a Lattepanda's Arduino with DJ's firmware installed with a PCA9685 connected to it to control servo's in the following connection model? Note UNO represents the Lattepanda's Arduino GPIO.
I would be connecting to pin 6 for A4 and pin 8 for A5
Will the standard servo skills work in ARC if ARC is connected to the Arduino or is something else needed? Like the PCA9685 16-Channel PWM Driver Module Library loaded on the the Arduino?
Related Hardware LattePanda
DJ, I compiled the package you created and uploaded it to the Lattepanda. When I set it up in ARC using 57600 Baud with RTS checked and setup the Vertical servo control when I go to pick the port it show a picture of the PCA9685 and I set port 1 which is the port on the board I am using I get no servo Movement.

I connected GND to 23 and VCC to Pin 24. SDA was to Pin 6 and SCL was to Pin 8. Note also tried these on Pins 17=A4,19=A5 had the same issue.The following is a video of what happening when I move the value in the servo control in ARC
https://www.youtube.com/shorts/cBHq1bp8d7Q
That's because you haven't modified the firmware to use that PCA9685. Look at the other thread where nomad got it working: https://synthiam.com/Support/Hardware/16-Servo-Shield
DJ Yes I did to the letter. But I have to tell you his changes don't make sense to me. Because nowhere else in the code are you using pca9685
DJ, this post was in the right place under "16 servo Shield by Adafruit" What I was asking was because your "EZ-Genuino_Uno_Adafruit_16_Servo_Shield.zip (Dec 11, 2022)" firmware looks to be based off of the same code in the "EZ-Genuino_Leonardo.zip (updated Dec 11, 2022)" firmware that has dummy code for Serial1 and Serial2 for defensive coding if it should be added to the "EZ-Genuino_Uno_Adafruit_16_Servo_Shield.zip (Dec 11, 2022)" to make it more robust.
Also your "EZ-Genuino_Uno_Adafruit_16_Servo_Shield.zip (Dec 11, 2022)" firmware does not work for port 0 and Port 1 on the controller because you have: #define _PortStart 2 and it should be #define _PortStart 0
I had attach the zip file with my changes to the other post for your review. If you don't feel I am right it's all good was just trying to help.
Removed as no longer needed.
Here are the changes I posted in the other post for your review.
EZ-Genuino_Uno_Adafruit_16_Servo_Shield-SMM.zip
I removed a few of my comments in the other post because it is clear people did not understand them. I hope at this point you are clear on what I was trying to convey to you.
Good work getting your pca9685 (not the supported Adafruit board) working. I'll post the code. I won't name it 16-channel adafruit as it uses a generic controller and not the adafruit version - it might help others with generic knockoffs as well
I am happy we are on the same page now. Just a note I also tested this on the Lattepanda and it also works.