Hello Everybody.
I am having some troubles with my AL5D Robot with the PS2 controller.
The Problem:
The robot seizes up on occasion. I cannot determine why, but here are some pictures of my board.
This mostly happens when the arm is extended, and i am not able to retract it or do any other movements.
This is where i got the code from: github.com/Lynxmotion/Arms/zipball/Botboarduino
Thank you in advance.
The image showing the power cables connected to the screw terminals makes them seem like the red and black wire are almost touching - you really need to clean that up. Double check to make sure there are no loose metal wires which can contact something on the board.
Despite this, it sounds like it may be a code issue - you can troubleshoot by adding a serial out command on the Arduino and connecting it to your computer. This will display the values you are sending to the servos, and when the arm seizes, you’ll confirm that it’s a software rather than hardware issue.
In my experience, the problem you describe is due to the software trying to position the arm outside its physical capabilities.
If you’re interested, I’ve written controller code with constraints to prevent this:
github.com/EricGoldsmith/AL5D-BotBoarduino-PS2
Be sure to update the definitions at the top of the code with the dimension of your arm.
-Eric
Thank you both for your input. I have tried both of your suggestions and they were both somewhat helpful.
Can you take a video of what happens and try to better understand / describe what is happening when the arm seizes and in which positions?