Robot Kit (Lizard)

All 3 servos on my Lizard need to be adjusted. The left front foot is inclined. The back right foot is inclined and it doesn’t stand steadily. I’ve followed all directions on pp30-34 exactly, the code complies and uploads successfully but no adjustment is made.

When the left foot is in front and the right foot is behind, subtract the first value 90.
Find the statement: int array_setup[] = {90,90,90};//Set the original angle of the servo.
Change to: int array_setup[] = {85,90,90}
The left leg is at the back, but the right leg is at the front, add the third value 90.
Find the statement: int array_setup[] = {90,90,90};//Set the original angle of the servo.
Change to: int array_setup[] = {85,90,95}
When standing unsteadily, you need to subtract the second value 90.
Search statement: int array_setup[] ={90,90,90}
Change to: int array_setup[] = {85,85,95}
Give it a try and see if that fixes it.
Hope you can provide us with the problem video.

Please see video at link below:

Please help. We have a STEM presentation scheduled May 6 with these robots!!

your instructions above did not solve the problem

From the video you provided.
It may be that the servo test is not done properly.
Something went wrong when assembling the servo, and connecting the servo to the expansion board 2,3,4 interfaces respectively.
Upload the Test.into code file and run the Test.ino code.
Connect the battery, turn on the switch, test the servo back to 90°, and start assembling the servo.
Remember that in the process of assembling the servos, you can’t lose power, you must power up and assemble all the servos, and screw on the screws to fix them with the board.
So you are recommended to redo the servo test and power on to assemble the servos.

This is the error code i get now when re-testing the servos following your instructions here and pp11-14 of book

Sketch uses 3640 bytes (11%) of program storage space. Maximum is 32256 bytes.
Global variables use 564 bytes (27%) of dynamic memory, leaving 1484 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x9c
Failed uploading: uploading error: exit status 1
IMG_4984

The error message you received indicates that there is a communication problem between your computer and the Arduino board. This can be caused by several factors:

  1. Wrong board selected: Make sure you have selected the correct board type in the Arduino IDE. Go to the “Tools” menu and select the correct board type from the “Board” submenu.
  2. Wrong port selected: Ensure you have selected the correct serial port in the Arduino IDE. Go to the “Tools” menu and select the correct port from the “Port” submenu.
  3. Problem with the board: There may be an issue with the board itself, such as a loose connection or damaged components. Try resetting the board by pressing the reset button or disconnecting and reconnecting the USB cable.
  4. Problem with the USB cable: Try using a different USB cable to rule out a faulty cable.
  5. Conflicts with other programs: Ensure that there are no other programs running that may be conflicting with the serial communication between the Arduino board and your computer. Maybe another Arduino IDE with a serial monitor running.

Thank you.

I have successfully tested the servos.

But the feet can’t be rotated with the code.

PLEASE HELP, WE’RE REALLY OUT OF TIME HERE!

I have successfully test the servos but the feet do not rotate

I’m sorry to answer your question so late, due to the fact that the 5 day Labor Day holiday has just ended.

Your test servo did not do a good job, resulting in excessive tilting of the assembly feet, after which you then run Lizard_robot.ino and adjust the angle of the servo, it can not be adjusted, because the adjustment angle range is too small.
Correct method:
1, remove the foot, first run the test servo example Test.ino, wait for the servo rotation stopped, and then assembled horizontally on the foot. (Figure 1 is running Test.ino test servo example before the assembly of the foot, Figure 2 is running Test.ino test servo example, and then horizontally assembled feet) # 3 servos are the same practice.
2, after assembly, the rudder angle is still a bit off, then run Lizard_robot.ino to adjust the rudder angle. (fine tuning)