Error in Per-Joint Calibration
Problem
I am having trouble with the per-joint calibration for joints J2 through J6. I have finished building the full arm, and I am now on the final step of the calibration process. So far, I am able to jog each motor (J1 through J6), and each joint moves as expected.
Fix
The daisy chained cable between the J1 and J2 opto terminals was not plugged into J2 correctly. The per joint calibration works now!
Troubleshooting steps
- 1Verify what voltage you have at terminals 27, 28, 29, 30 and 31. The first two should be +3.3 unless the hall effect is triggered in which case they should be ground.
- 2I checked continuity on the hall effect sensors and limit switches.
- 3I have confirmed that each hall effect sensor reads +3.3 (3.265) when inactive and 0 when active.
- 4Check that you have a solid 3.3V supply at the OPTO terminal on each of the six stepper drivers.
Full conversation(7 messages)
I hope you are doing well. I am reaching out because I am having trouble with the per-joint calibration for joints J2 through J6. I have finished building the full arm, and I am now on the final step of the calibration process.
So far, I am able to jog each motor (J1 through J6), and each joint moves as expected. The encoder directions are also correct when I move the joints by hand. The per-joint calibration for J1 works as well. The arm moves to the Hall effect limit switch and then returns to zero. However, none of the other joints move during their calibration. I tested each joint individually, and in every case the controller returns “EA.” I was thinking that it could be that I wired the hall effect sensors incorrectly as the 'limit switch test' shows J1-J3 as 1, and doesn't change when I activate the hall effect switches. However, I am having the same problem with J4-J6.
I have checked the hardware to rule out a wiring problem. The limit switches work, the Hall effect sensors light up as expected, and there is no continuity between 5V and ground on the Teensy. I am running version 8.0 of both the HMI software and the Teensy sketch, and I am running the HMI from the source files on Linux.
That said, I also tried the calibration using the Windows application, and the HMI program crashed. It appears to crash when I jog the joints repeatedly with the manual movement buttons. I am not sure whether this is related to the calibration issue, but I wanted to mention it in case it helps.
This is my first robot build, and I am a bit lost on how to proceed from here. Could you help me diagnose this issue and find a fix?
You may have already checked some of this but please bear with me, could you verify for me what voltage you have at terminals 27, 28, 29, 30 and 31. the first two should be +3.3 unless the hall effect is triggered in which case they should be ground. The last 3 are the opposite and should be GND when the switch is not triggered and +3.3v when it is triggered. Please verify each hall sensor and switch is wired to the correct terminal J2=27 J3=28 etc. Can you please also verify on the robot parameters tab that your selected robot model is AR4-MK5 and that it has been saved?
Thank you for your quick response. Before finishing the build, I checked continuity on the hall effect sensors and limit switches. From what I recall, the hall effect sensors showed the opposite behavior of the limit switches, which seems consistent with what you described. When I ran the test limit switches program, J4 through J6 each read 0 when unpressed and 1 when pressed. Since I do not remember the exact hall effect readings, I will measure the voltage at terminals 26 through 31 tomorrow, both triggered and untriggered. I will also confirm that each sensor and switch is wired to its correct terminal (J1 to 26, J2 to 27, and so on through J6 to 31).
As for the robot model, I received a pop-up when I first launched the source program on Linux saying that no robot model was stored in the EEPROM. Following that message, I selected the AR4-MK5 on the robot parameters tab and saved it. I will double-check that this selection is still saved and follow up with you once I have the voltage readings.
I have confirmed that each hall effect sensor reads +3.3 (3.265) when inactive and 0 when active. The limit switches are +3.3V when active and 0 when inactive. I also confirmed that each of the wires are plugged into the correct terminal.
I also checked the AR4-config.json and the AR4-MK5 is listed as the robot model, so I believe it did save.
Thank you for the additional information. I've been thinking about this issue, and there's something else I'd like you to check.
I've seen some very strange and similar behavior when the stepper driver OPTO terminals aren't receiving the proper voltage. The OPTO connections are daisy-chained across all six drivers, and I'm wondering if there's a loose or missing connection somewhere between J1 and J2. This could explain why J1 operates correctly while J2–J6 are having problems.
Could you please check that you have a solid 3.3V supply at the OPTO terminal on each of the six stepper drivers? Pay particular attention to the connection between the J1 and J2 drivers and make sure all the terminal connections are tight.
I'm also wondering if Linux could be contributing to some of the issues. I'm currently working through Linux compatibility updates for version 8.0 this weekend. Version 6.3 was the last version I tested on Linux and is what's currently on the public GitHub repository. Unfortunately, Linux compatibility has fallen behind as I've continued developing the Windows versions.
Have you tried running the individual joint calibrations using the Windows 8.0 application? I'd be interested to know whether you get the same EA response.
One other question: when you attempt to calibrate J2–J6, does the EA response appear immediately, or is there a delay before it appears?
Let's start with these checks and see what we find.
The daisy chained cable between the J1 and J2 opto terminals was not plugged into J2 correctly. The per joint calibration works now!
In regards to your other questions, I did try to run the the Windows application, but I was on Windows 11. It would hang up, and then crash after every calibration fail and if I activated the manual movement per joint many times in a small time frame. That is why I swapped over to Linux and used the source files instead. The error did take a few moments to appear when it did on the Linux application.
OK thank you for letting me know. Im glad we could get this one solved.
No comments yet.
