Sorties moteurs GRBL

  • Auteur de la discussion GuillaumeCNC
  • Date de début
G

GuillaumeCNC

Nouveau
(je ne sais pas du tout où poser ce topic car le forums me parait très grand donc le modos dites-moi ci je fait une boulette, merci)

Hello,
J'ai réussi à mettre GRBL sur un petit shield cnc pour arduino nano pareil à celui-ci:
nano_a4988-1.jpg

Mais comme ça devait être une vieille version, j'ai décidé de le mettre à jour et d'installer la dernière version (v1.1 si j'ai bien compris). Problème, dans l'ancienne version j'avais dû changer les sorties moteur, mais dans la nouvelle version je ne vois nulle part où sont les paramètres... config.h ?
Dans l'ancienne version j'avais mis ça:
#define X_STEP_BIT 5 //2 // Uno Digital Pin 2
#define Y_STEP_BIT 6 //3 // Uno Digital Pin 3
#define Z_STEP_BIT 7 //4 // Uno Digital Pin 4
#define X_DIRECTION_BIT 2 //5 // Uno Digital Pin 5
#define Y_DIRECTION_BIT 3 //6 // Uno Digital Pin 6
#define Z_DIRECTION_BIT 4 //7 // Uno Digital Pin 7
Mais aucune trace la v1.1...

Merci ! :-D
 
G

GuillaumeCNC

Nouveau
Bonjour Guillaume

Non, dans ..\libraries\grbl\cpu_map.h :wink:

Cordialement
jpbbricole
Je n'ai casiment rien dans ce fichier, c'est normal ? Il faut faire un copier-coller des pins ?
J'ai ça:
/*
cpu_map.h - CPU and pin mapping configuration file
Part of Grbl

Copyright (c) 2012-2015 Sungeun K. Jeon

Grbl is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Grbl is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Grbl. If not, see <http://www.gnu.org/licenses/>.
*/

/* The cpu_map.h files serve as a central pin mapping selection file for different processor
types, i.e. AVR 328p or AVR Mega 2560. Each processor has its own pin mapping file.
(i.e. cpu_map_atmega328p.h) Grbl officially supports the Arduino Uno, but the
other supplied pin mappings are supplied by users, so your results may vary. */

// NOTE: With new processors, only add the define name and filename to use.

#ifndef cpu_map_h
#define cpu_map_h


#ifdef CPU_MAP_ATMEGA328P // (Arduino Uno) Officially supported by Grbl.
#include "cpu_map/cpu_map_atmega328p.h"
#endif

#ifdef CPU_MAP_ATMEGA2560 // (Arduino Mega 2560) Working @EliteEng
#include "cpu_map/cpu_map_atmega2560.h"
#endif

/*
#ifdef CPU_MAP_CUSTOM_PROC
// For a custom pin map or different processor, copy and edit one of the available cpu
// map files and modify it to your needs. Make sure the defined name is also changed in
// the config.h file.
#endif
*/

#endif
 
G

GuillaumeCNC

Nouveau
C'est bon c'est reglé ! En faite j'avais juste une mauvaise version de la 1.1 !
Merci :)
 
J

jpbbricole

Compagnon
Super! Bon usinage.

Cordialement
jpbbricole
 

Sujets similaires

F
Réponses
6
Affichages
25 593
fraiddy
F
01power
Réponses
22
Affichages
2 936
Doctor_itchy
D
G
Réponses
0
Affichages
573
gaston83
G
G
Réponses
9
Affichages
5 802
01power
01power
01power
Réponses
3
Affichages
13 742
01power
01power
lolo
Réponses
1
Affichages
745
lolo
G
Réponses
123
Affichages
19 012
gaston83
G
T
Réponses
28
Affichages
2 912
Tristan l'apprenti
T
U
Réponses
85
Affichages
7 095
Hubert86
H
S
Réponses
27
Affichages
18 397
Antoine Chapon
A
the_bodyguard1
Réponses
30
Affichages
2 532
the_bodyguard1
the_bodyguard1
Haut