I completed setup and loaded the Instincts with no issues.
After loading OpenCat.ino I cna see when I press "CH" on the remote only the front leg servos and head servos are moving . Back leg servos do not move at all.
Back left servo moves a little when pressing "8" or "9" on remote.
Trying to calibrate all legs to the 90 degree position, but seems back servos are not responding.
NOTE: I ran the testServo.ino with 'a' optiona and all servos front back and head were working as expected moving with the sine function. Thus It does not seem to be a connection issue.
Any ideas greatly appreciated!
Luis
Hi Rongzhong thanks for confirming the compile warnings are not an issue.
I think I found the issue in the back servo connections, hope to get it up and running this week.
This little guy is going on a trip to Costa Rica :).
In WriteInstinct.ino: I did do all those steps, Yes to "no line ending" and baud rate to 115200, and I did Y for all other prompts.
Compile warnings: The compilation does show a few warnings including String constant to Char. Though I assume those are not the issue.
I will upload some pictures of the connections and videos in the next post.
In file included from C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\WriteInstinct.ino:33:0:
C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\OpenCat.h: In member function 'void Motion::loadDataFromI2cEeprom(unsigned int&)':
C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\OpenCat.h:660:51: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
Wire.requestFrom(DEVICE_ADDRESS, skillHeader);
^
In file included from C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\OpenCat.h:86:0,
from C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\WriteInstinct.ino:33:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src/Wire.h:68:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)
uint8_t requestFrom(int, int);
^~~~~~~~~~~
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src/Wire.h:65:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t)
uint8_t requestFrom(uint8_t, uint8_t);
^~~~~~~~~~~
In file included from C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\WriteInstinct.ino:33:0:
C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\OpenCat.h: At global scope:
C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\OpenCat.h:854:1: warning: narrowing conversion of '-9.0e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
};
^
C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\OpenCat.h:854:1: warning: narrowing conversion of '2.25e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\OpenCat.h:854:1: warning: narrowing conversion of '-9.0e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\OpenCat.h:854:1: warning: narrowing conversion of '2.25e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\OpenCat.h:854:1: warning: narrowing conversion of '-9.0e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\OpenCat.h:854:1: warning: narrowing conversion of '-2.25e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\OpenCat.h:854:1: warning: narrowing conversion of '-9.0e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\OpenCat.h:854:1: warning: narrowing conversion of '-2.25e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\OpenCat.h: In function 'int SoundLightSensorPattern(char*)':
C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\OpenCat.h:1102:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
skillByName("rest", 1, 1, 1);
^
C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\WriteInstinct.ino: In function 'void setup()':
C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\WriteInstinct.ino:150:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
motion.loadBySkillName("rest");
^
C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\WriteInstinct.ino: In function 'void loop()':
C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\WriteInstinct.ino:262:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
skillByName("rest");
^
C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\WriteInstinct.ino:301:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
motion.loadBySkillName("calib");
^
Sketch uses 26648 bytes (82%) of program storage space. Maximum is 32256 bytes.
Global variables use 1378 bytes (67%) of dynamic memory, leaving 670 bytes for local variables. Maximum is 2048 bytes.
When you upload WriteInstinct.ino, have you set the serial monitor as "no line ending" and baud rate 115200? After selecting it, did you enter "Y" after the prompts to save the data to the board? You need to finish this step before uploading OpenCat.ino. There shouldn't be a hardware issue if all the servos can move with testServo. Do you have a video showing how the robot moves with the buttons?