Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
|
projets:charly_robot_grbl:accueil [2017/04/04 09:56] resonance [Configuration GRBL] |
projets:charly_robot_grbl:accueil [2018/01/18 13:07] (Version actuelle) resonance ancienne révision (2017/12/11 12:59) restaurée |
||
|---|---|---|---|
| Ligne 5: | Ligne 5: | ||
| * Description : Passer en GRBL une fraiseuse numérique Charlyrobot CRA4 | * Description : Passer en GRBL une fraiseuse numérique Charlyrobot CRA4 | ||
| - | {{tag> | + | {{tag>esadmm, ensadmm, |
| ===== Description ===== | ===== Description ===== | ||
| Ligne 81: | Ligne 81: | ||
| </ | </ | ||
| - | ==== Photos ==== | + | |
| - | Le cablage a moitié fini : | + | |
| - | {{ : | + | |
| - | + | ||
| ==== Configuration GRBL ==== | ==== Configuration GRBL ==== | ||
| Nous devons configurer le grbl ... | Nous devons configurer le grbl ... | ||
| https:// | https:// | ||
| - | === Pour l' | ||
| - | * les axes sont dans le bon sens mais ... | ||
| - | * le homing ne marche pas... ( à cause du z je crois ??) | ||
| - | * les end stop x- et y- semble fonctionner (signal hard limit ok) | ||
| < | < | ||
| Ligne 101: | Ligne 94: | ||
| $3=0 (dir port invert mask: | $3=0 (dir port invert mask: | ||
| $4=1 (step enable invert, bool) | $4=1 (step enable invert, bool) | ||
| - | $5=0 (limit pins invert, bool) | + | $5=1 (limit pins invert, bool) |
| $6=0 (probe pin invert, bool) | $6=0 (probe pin invert, bool) | ||
| $10=3 (status report mask: | $10=3 (status report mask: | ||
| Ligne 108: | Ligne 101: | ||
| $13=0 (report inches, bool) | $13=0 (report inches, bool) | ||
| $20=0 (soft limits, bool) | $20=0 (soft limits, bool) | ||
| - | $21=1 (hard limits, bool) | + | $21=0 (hard limits, bool) |
| - | $22=1 (homing cycle, bool) | + | $22=0 (homing cycle, bool) // homing ne marche pas bien , donc desactivé pour le moment |
| - | $23=2 (homing dir invert mask:00000010) | + | $23=4 (homing dir invert mask:00000001) |
| - | $24=25.000 (homing feed, mm/min) | + | $24=250.000 (homing feed, mm/min) |
| - | $25=500.000 (homing seek, mm/min) | + | $25=1500.000 (homing seek, mm/min) |
| $26=250 (homing debounce, msec) | $26=250 (homing debounce, msec) | ||
| $27=1.000 (homing pull-off, mm) | $27=1.000 (homing pull-off, mm) | ||
| $100=640.000 (x, step/mm) | $100=640.000 (x, step/mm) | ||
| $101=640.000 (y, step/mm) | $101=640.000 (y, step/mm) | ||
| - | $102=800.000 (z, step/mm) | + | $102=640.000 (z, step/mm) |
| - | $110=2000.000 (x max rate, mm/min) | + | $110=3000.000 (x max rate, mm/min) |
| - | $111=2000.000 (y max rate, mm/min) | + | $111=3000.000 (y max rate, mm/min) |
| $112=500.000 (z max rate, mm/min) | $112=500.000 (z max rate, mm/min) | ||
| - | $120=40.000 (x accel, mm/sec^2) | + | $120=100.000 (x accel, mm/sec^2) |
| - | $121=40.000 (y accel, mm/sec^2) | + | $121=100.000 (y accel, mm/sec^2) |
| $122=40.000 (z accel, mm/sec^2) | $122=40.000 (z accel, mm/sec^2) | ||
| $130=320.000 (x max travel, mm) | $130=320.000 (x max travel, mm) | ||
| Ligne 129: | Ligne 122: | ||
| </ | </ | ||
| + | |||
| + | |||
| + | <WRAP center | ||
| + | Si vous utilisé UGS le reglage de la vitesse de deplacement (Feedrate) manuelle est tres lente par defaut, il faut penser à la regler sinon vous penserez que ca ne marche pas ! | ||
| + | </ | ||
| + | |||
| + | note : sur WIn 10 UGS platform ne marche pas... il faut utiliser le Classic GUI il semble... | ||
| + | |||
| + | |||
| + | ==== Code allumage fraiseuse bouton de façade ==== | ||
| + | Nous avons choisi d' | ||
| + | Les boutons sont en pullUp, et le stop est inversé... de plus nous obtenons pas mal de bruit qui déclenche l' | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | <code c+> | ||
| + | float Compteur = 0; | ||
| + | |||
| + | int StartBouton = 4; | ||
| + | int StopBouton = 5; | ||
| + | int RelayPin = 3; | ||
| + | |||
| + | void setup(){ | ||
| + | pinMode(StartBouton, | ||
| + | pinMode(StopBouton, | ||
| + | pinMode(RelayPin, | ||
| + | //Debug | ||
| + | Serial.begin(9600); | ||
| + | } // close setup | ||
| + | |||
| + | |||
| + | void loop() { | ||
| + | while (digitalRead(StartBouton) == LOW ){ | ||
| + | |||
| + | delay(100); | ||
| + | Compteur = Compteur + 100; | ||
| + | |||
| + | //Afficher le temps allumé | ||
| + | Serial.print(" | ||
| + | Serial.println(Compteur); | ||
| + | |||
| + | if (Compteur >= 600){ | ||
| + | digitalWrite(RelayPin, | ||
| + | Serial.print(" | ||
| + | } | ||
| + | |||
| + | } //close while | ||
| + | |||
| + | |||
| + | // attention le bouton stop est inversé ! | ||
| + | while (digitalRead(StopBouton) == HIGH ){ | ||
| + | |||
| + | delay(100); | ||
| + | Compteur = Compteur + 100; | ||
| + | |||
| + | //Afficher le temps allumé | ||
| + | Serial.print(" | ||
| + | Serial.println(Compteur); | ||
| + | |||
| + | if (Compteur >= 300){ | ||
| + | digitalWrite(RelayPin, | ||
| + | Serial.print(" | ||
| + | } | ||
| + | |||
| + | } //close while | ||
| + | |||
| + | //reset compteur | ||
| + | Compteur = 0; | ||
| + | } | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | === Photos === | ||
| + | |||
| + | |||
| + | {{gallery>?& | ||