THE ANNIN ROBOTICS FORUM HAS MOVED TO A NEW COMMUNITY. 👉
J2 and J5 motor iss...
 
Notifications
Clear all

J2 and J5 motor issues

5 Posts
5 Users
0 Reactions
88 Views
Avatar of cdanielv95
(@cdanielv95)
New Member
Joined: 2 months ago
Posts: 1
Topic starter  

Our J2 seems to travel in a single direction (+). When we press (-), the motor continues to the (+) direction. We connected J1 driver output to the J2 motor leads and it went both directions. I've check continuity from the J2 driver to the J2 motor pig tail, and it seem fine. We connected the J2 driver output to the J1 motor leads and the motor just went one direction. Anyone have an idea as to what is going on?

 

Also, J5 driver is not responding. We swapped the J5 and J6 digital signal pins from the arduino and could control the J5 motor with the J6 signal pins, but never successfully were able to control a motor from the J5 driver while jogging it in the program. If y'all know of a different test I can try let me know. The best I can tell I have a bad driver or the program isn't sending a signal when I try to jog the J5 Motor.



   
Quote
Avatar of hh.lee
(@hh-lee)
Active Member
Joined: 2 months ago
Posts: 6
 

I have the problem of J1 and J6 where both won't perform calibration, or somehow turn very slow in single direction when manual jog. I also checked all connection signal seems ok.

 

Finally I decide to change arduino sketch code just to make sure the correct limit switch is match to mega signal pin. With new code below I managed to nail down the problem is due to I misplace limit switch 1 and 6. Below is the the code I change just to facilitate to check my limit switch:-

 

1) Remark the below section code. Need to adjust back to original after testing

/*

//test led

if (digitalRead(J1calPin) == HIGH || digitalRead(J2calPin) == HIGH || digitalRead(J3calPin) == HIGH || digitalRead(J4calPin) == HIGH || digitalRead(J5calPin) == HIGH || digitalRead(J6calPin) == HIGH)

{

digitalWrite(J6dirPin, HIGH);

}

else

{

digitalWrite(J6dirPin, LOW);

}

*/

 

2) Add below code. The below code is just for testing on the correct limit switch.

if (digitalRead(J1calPin) == HIGH || digitalRead(J2calPin) == HIGH || digitalRead(J3calPin) == HIGH || digitalRead(J4calPin) == HIGH || digitalRead(J5calPin) == HIGH || digitalRead(J6calPin) == HIGH)

{

int BlinkCount=0;

 

//test led J1

if (digitalRead(J1calPin) == HIGH)

{

BlinkCount=1;

}

//test led J2

if (digitalRead(J2calPin) == HIGH)

{

BlinkCount=2;

}

//test led J3

if (digitalRead(J3calPin) == HIGH)

{

BlinkCount=3;

}

//test led J4

if (digitalRead(J4calPin) == HIGH)

{

BlinkCount=4;

}

//test led J5

if (digitalRead(J5calPin) == HIGH)

{

BlinkCount=5;

}

//test led J6

if (digitalRead(J6calPin) == HIGH)

{

BlinkCount=6;

}

 

for (int i=0;i<BlinkCount;i++)

{

digitalWrite(J6dirPin, HIGH);

delay(200);

digitalWrite(J6dirPin, LOW);

delay(200);

}

delay(1000);

 

}

else

{

digitalWrite(J6dirPin, LOW);

}

 
 

After upload the new code. When I press on limit switch 1, it blick once, when press limit switch 6, it blink 6 times follow by one lone pause. This is for me to make sure I have all my limit switch correct link to mega pin number.

 

After I found out my problem I exchange my limit switch 1 and 6 signal. then my problem solved and my J1 and J6 motor turn ok and able to perform calibration.

 

I unremark the original code and remark new code (secion 2 above) and upload again before continue my calibration and testing of AR2.

 

I am sorry if your problem is not the same like mine. However you can give it a try. I suspect it could be due the J2 and J5 limit switch signal is misplaced.

 

Thks & Rgds...HHLee



   
ReplyQuote
Chris Annin
(@chris-annin)
Member Admin
Joined: 2 months ago
Posts: 537
 

when I have experienced similar issues I found bad terminal connection on the driver dir wire. let me know if you are able to sort out the issue.



   
ReplyQuote
Avatar of Cris Villanueva
(@cris-villanueva)
New Member
Joined: 2 months ago
Posts: 1
 

Update

We rewired all of the PIR+ and DIR+ wires, no change. Simply hitting the reset button on the Arduino shield fixed out problems and j2 was moving both directions at it should. Sometimes (and we don't know how to replicate it) it will revert back to losing command of J5 and and lose of direction control of J2, for the past couple days hitting the reset button would fix it but it no longer does. I've re uploaded the sketch file to the Arduino and no luck. More trouble shooting, we moved the terminal block from the drivers around to make sure the drivers were operating correctly and moving the J2 terminal to J1 has the same problem where there is no direction control. Moving J5 terminal to J6 we don't have control, so the best we can tell the drivers are working correctly and the issue is the code being sent from the Arduino or the code being sent from the computer. The strange thing is the two motor always fail in pairs, every time we lose direction on J2 we lose J5. Any clue or more trouble shooting we can try? We have 2 spare drivers and a new Arduino in shipment that we could use. Thanks,



   
ReplyQuote
Avatar of ruizvial
(@ruizvial)
Active Member
Joined: 2 months ago
Posts: 8
 

Sometimes this error is for replicate "arduino" chinese boards.

 


   
ReplyQuote
Share:
Upload your Photo