Re: Jedicut and Arduino over USB

201
Thank you for the quick reply Jerome
Please try this link for shield info

http://blog.protoneer.co.nz/arduino-cnc ... bly-guide/

I cannot get the stepper motor to rotate, they just hum when trying to move axis in manuel with JediCut. I have the shield set for no micro stepping
using DRV8825 Pololu stepper drivers.­
The CNC Shield has the option for a fourth axis,(A) with adding jumper to the board which I have in place. You then use PIN 12 for CLOCK and PIN 13 for DIRECTION for the fourth axis(A).
I tested the Pololu Drivers and the pin out combinations using the following arduino sketch changing the PIN numbers to match each driver location on the board. Stepper motor functioned properly for all drivers in all X, Y, Z, A locations

Code : Tout sélectionner

//Bread board instructions settting up DRV8825 drivers
//first calabrate driver for current of motor without clocking driver and no motor hooked up
//watch video from polou site on how to do this, https://www.youtube.com/watch?v=89BHS9hfSUk
//put 100uf cap on power source lines, long lead to +
//connect GRD to power source GRD next to VMOT
//connect VMOT to power source
//connect  GND to Arduino GND (GND near VDD)
//jumper reset and sleep together add 5v from arduino to reset
//after driver calabration power down connect 1A and 1B to stepper coil 1
//after driver calabration power down connect 2A and 2B to stepper coil 2
//connect leads to DIR to DO5 and STEP to DO2
//use 5 for dirpin and use 2 for stepperpin in arduino sketch, upload sketch to Arduino and test
//Do this for all drivers


//Testing Arduino CNC Shield v3.xx instructions
//first calabrate driver for current of motor without clocking driver and no motor hooked up, use a bread board
//watch video from polou site on how to do this, https://www.youtube.com/watch?v=89BHS9hfSUk
//power down, move driver to socket X, use 5 for dirpin and use 2 for stepperpin in arduino sketch, upload sketch to Arduino and test
//power down, move driver to socket Y, use 6 for dirpin and use 3 for stepperpin in arduino sketch, upload sketch to Arduino and test
//power down, move driver to socket Z, use 7 for dirpin and use 4 for stepperpin in arduino sketch, upload sketch to Arduino and test
//power down, move driver to socket A, use 13 for dirpin and use 12 for stepperpin in arduino sketch, upload sketch to Arduino and test
//connect motor lead to socket being tested X,Y,Z or A

int dirPin = 5;
int stepperPin = 2;
void setup() {
 pinMode(8,OUTPUT);
 digitalWrite(8, LOW); 
 pinMode(dirPin, OUTPUT);
 pinMode(stepperPin, OUTPUT);
}
 void step(boolean dir,int steps){
 digitalWrite(dirPin,dir);
 delay(50);
 for(int i=0;i<steps;i++){
   digitalWrite(stepperPin, HIGH);
   delayMicroseconds(800);
   digitalWrite(stepperPin, LOW);
   delayMicroseconds(800);
 }
}
void loop(){
 step(true,1600);
 delay(500);
 step(false,1600*5);
 delay(500);
}
I then edited fcifmdlcnc.ino I changed the Arduino pins to match the CNC Shield and reversed the following

case 'A': // All Motors on/off
if(val == '1') {digitalWrite(8, LOW);}
else {digitalWrite(8, HIGH);}
break;
I also disabled led on pin 13 because pin 13 is needed for engine Y2.

I tried to insert screen shot image of JediCut setting but without success in this forum

Communication screen I have
Communication Mode USBSerial.dll
Engine X1----Clock 2---- Direction 6
Engine X2----Clock 3-----Direction 7
Engine Y1----Clock 4-----Direction 8
Engine Y2----Clock 5-----Direction 9
External Timer Pin------10
Heat Control Pin--------14
Engine On/Off -----------1
Heating Retune Pin---N/A
Heating Status Pin----N/A

Synchronize engine with external timer (not checked) <-----Dose not matter arduino sets this
Frequency timer 4000 Hz <-----Dose not matter arduino sets this

CNC Controller Screen I have
------------------------------Engine X1----Engine X2---Engine Y1-----Engine Y2
Nb mm /pas-----------------.6--------------.6----------------.6-----------------.6
Cut Speed---------------------30-------------30---------------30----------------30
Estimate [mm/sec]---------75-------------75---------------75----------------75
Fast Speed--------------------26-------------26---------------26----------------26
Estimate [mm/sec]-------85.71---------85.71-----------85.71-----------85.71
Inverse -------------not checked---not checked----not checked---not checked
Length of Hot Wire 900mm
Length of X axis 900mm

Heating Screen I have
Enable/Disable Heating Control (not checked)

I also have set Arduino to COM port 4
I am using 24volts to drive system
All four motors will have 20 tooth pinions with 2mm pitch teeth driving belt.
I am using Windows 10

Thanks in advance
Tim
Modifié en dernier par Tjmarch le mar. août 01, 2017 7:32 am, modifié 21 fois.

Re: Jedicut and Arduino over USB

202
Jorme was trying to give as much info as possible forgot to answer your question. It dose not matter if I try to move axis manually 100mm and 1000mm fast or slow motor just humm
Tim
PS I have only one motor hooked up to engine X1 I do not want to acccidently damage more than one driver or motor while trying to set this up

Re: Jedicut and Arduino over USB

207
Number mm / step : Indicate distance between 2 steps. dose not seem to add up, I have it set at .6 to get 40mm/rev. This is just a estimate until I have machine setup.
I bought;
http://www.ebay.com/itm/V3-Engraver-Shi ... SwOyJX37GB

and

http://www.ebay.com/itm/Stepper-Motor-D ... SwX61ZIpDt

I modified firmware as posted here;

viewtopic.php?p=10388#p10388

I setup Jedicut as posted here;

viewtopic.php?p=10390#p10390

Thanks for the help
Tim
Modifié en dernier par Tjmarch le ven. juil. 28, 2017 8:33 am, modifié 1 fois.

Re: Jedicut and Arduino over USB

209
Hello my friends, hand happy new year...!
And what a nice new year it is....
I have gotten as new year present from my girlfriend 4 single tb6560 stepper motor drivers.
I want to connect those driver to the arduino like inside that picture.

12 1 All motors On/Off (Is this connection necessary)

8 X step
9 X direction
10 Y step
11 Y direction
4 Z step (X2)
5 Z direction (X2)
6 A step (Y2)
7 A direction (Y2)
GND 18 Ground



My question, will it work...?

Kind regards,

Wolf
Fichiers joints
Connection Diagram Connection Diagram
`); }); })(jQuery, window, document, phpbb);