Asked — Edited
Resolved Resolved by Athena AI!

Can ARC Work With An Lattepanda/Arduino With A PCA9685 Connected To It?

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.

User-inserted image

I would be connecting to pin 6 for A4 and pin 8 for A5

User-inserted image

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

ARC Pro

Upgrade to ARC Pro

Harnessing the power of ARC Pro, your robot can be more than just a simple automated machine.

#9  

Well,  I finally got a chance to try this on the Lattepanda's Arduino and got the following error so I don't know if anyone can help me with this.

Arduino: 1.8.13 (Windows 10), Board: "Arduino Leonardo"

C:\Users\LattePanda\Downloads\EZ-Genuino_Uno_Adafruit_16_Servo_Shield-636873415224574009\EZ-Genuino_Uno_Adafruit_16_Servo_Shield\EZ-Genuino_Uno_Adafruit_16_Servo_Shield.ino:68:1: warning: narrowing conversion of '38400' from 'long int' to 'int' inside { } [-Wnarrowing]
 };
 ^
C:\Users\LattePanda\Downloads\EZ-Genuino_Uno_Adafruit_16_Servo_Shield-636873415224574009\EZ-Genuino_Uno_Adafruit_16_Servo_Shield\EZ-Genuino_Uno_Adafruit_16_Servo_Shield.ino:68:1: warning: narrowing conversion of '57600' from 'long int' to 'int' inside { } [-Wnarrowing]
C:\Users\LattePanda\Downloads\EZ-Genuino_Uno_Adafruit_16_Servo_Shield-636873415224574009\EZ-Genuino_Uno_Adafruit_16_Servo_Shield\EZ-Genuino_Uno_Adafruit_16_Servo_Shield.ino:68:1: warning: narrowing conversion of '115200' from 'long int' to 'int' inside { } [-Wnarrowing]
C:\Users\LattePanda\Downloads\EZ-Genuino_Uno_Adafruit_16_Servo_Shield-636873415224574009\EZ-Genuino_Uno_Adafruit_16_Servo_Shield\EZ-Genuino_Uno_Adafruit_16_Servo_Shield.ino:68:1: warning: overflow in implicit constant conversion [-Woverflow]
C:\Users\LattePanda\Downloads\EZ-Genuino_Uno_Adafruit_16_Servo_Shield-636873415224574009\EZ-Genuino_Uno_Adafruit_16_Servo_Shield\EZ-Genuino_Uno_Adafruit_16_Servo_Shield.ino:68:1: warning: narrowing conversion of '115200' from 'long int' to 'int' inside { } [-Wnarrowing]
C:\Users\LattePanda\Downloads\EZ-Genuino_Uno_Adafruit_16_Servo_Shield-636873415224574009\EZ-Genuino_Uno_Adafruit_16_Servo_Shield\EZ-Genuino_Uno_Adafruit_16_Servo_Shield.ino:68:1: warning: overflow in implicit constant conversion [-Woverflow]
C:\Users\LattePanda\Downloads\EZ-Genuino_Uno_Adafruit_16_Servo_Shield-636873415224574009\EZ-Genuino_Uno_Adafruit_16_Servo_Shield\EZ-Genuino_Uno_Adafruit_16_Servo_Shield.ino: In function 'void doEZProtocol()':
EZ-Genuino_Uno_Adafruit_16_Servo_Shield:276:35: error: call of overloaded 'write(int)' is ambiguous
         COMMUNICATION_PORT.write(0);
                                   ^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:234:0,
                 from sketch\EZ-Genuino_Uno_Adafruit_16_Servo_Shield.ino.cpp:1:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/USBAPI.h:105:17: note: candidate: virtual size_t Serial_::write(uint8_t)
  virtual size_t write(uint8_t);
                 ^~~~~
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Stream.h:26:0,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/HardwareSerial.h:29,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:233,
                 from sketch\EZ-Genuino_Uno_Adafruit_16_Servo_Shield.ino.cpp:1:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Print.h:52:12: note: candidate: size_t Print::write(const char*)
     size_t write(const char *str) {
            ^~~~~
exit status 1
call of overloaded 'write(int)' is ambiguous

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
#11   — Edited

Removed as no longer correct.

#12  

Using the new Arduino IDE 2.0.3 the new firmware compiled ok but when sending it to the Lattepanda I got the following feedback on the screen.

Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
    Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
    Device code: 0x44

I am not sure this is an issue or not.

Using Arduino IDE 1.8.13 there does not seem to be an issue uploading the new Arduino Leonardo Dec 11th firmware.

#13  

DJ,  When trying to compile Mickey's package I am still getting the following error.

Arduino: 1.8.13 (Windows 10), Board: "Arduino Leonardo"

C:\Users\LattePanda\Downloads\EZ-Genuino_Uno_Adafruit_16_Servo_Shield-636873415224574009\EZ-Genuino_Uno_Adafruit_16_Servo_Shield\EZ-Genuino_Uno_Adafruit_16_Servo_Shield.ino: In function 'void doEZProtocol()':
EZ-Genuino_Uno_Adafruit_16_Servo_Shield:276:35: error: call of overloaded 'write(int)' is ambiguous
         COMMUNICATION_PORT.write(0);
                                   ^
In file included from C:\Users\LattePanda\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:234:0,
                 from sketch\EZ-Genuino_Uno_Adafruit_16_Servo_Shield.ino.cpp:1:
C:\Users\LattePanda\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/USBAPI.h:105:17: note: candidate: virtual size_t Serial_::write(uint8_t)
  virtual size_t write(uint8_t);
                 ^~~~~
In file included from C:\Users\LattePanda\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Stream.h:26:0,
                 from C:\Users\LattePanda\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/HardwareSerial.h:29,
                 from C:\Users\LattePanda\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:233,
                 from sketch\EZ-Genuino_Uno_Adafruit_16_Servo_Shield.ino.cpp:1:
C:\Users\LattePanda\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Print.h:52:12: note: candidate: size_t Print::write(const char*)
     size_t write(const char *str) {
            ^~~~~
exit status 1
call of overloaded 'write(int)' is ambiguous

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

This package also has SendOnlySoftwareSerial.ccp and SendOnlySoftwareSerial.h which I think your firmware is also using.  So I am not sure what to do here any help would be great.   I really was counting on using this Adafruit 16 channel servo shield with the Lattepanda in the head.

PRO
Synthiam
#14   — Edited

Sorry, what do you mean by "mickey's package"? I provided a link to the Leonardo ezb firmware. You responded to this issue in some random thread, so I'm not sure what page or firmware you're talking about. Do you have a link, screenshot, or something that can help me?