| Bienvenido, Invitado |
Tienes que registrarte para poder participar en nuestro foro.
|
|
|
| ayuda marlin end stops configuracion |
|
Enviado por: claudj - 02-10-2019, 12:02 PM - Foro: General - Invitados
- Sin respuestas
|
 |
Armando una core x y me ayudan con los end stop?
arduino mega ,ramp 1,4 y lcd 12864
tengo finales de carrera normal cerrado (del tipo en pcb con Led de 3 cables) (mandando M119 y presionando a mano los endstops testea correctamente "abierto")
los end stop están colocados en estas posiciones :
eje Z en la propia cama cuando llega arriba pulsa y abre (en la ramp 1.4 conectado en conector 6 min z)
eje Y en el propio carro cuando llega a su mínimo izquierdo pulsa (en la ramp lo conecte en conector 4 min y)
eje X en la parte trasera de la máquina, lo que sería el máximo allí pulsa (en la ramp en conector 2 máx x)
entonces como debo configurar Marlin si tengo cama de 300 x 300 con altura de z de 320 pero en el eje x el end stop llega fuera del limite de la cama aproximadamente 11 mm
asi es como esta marlin :
#define USE_XMIN_PLUG
#define USE_YMIN_PLUG
#define USE_ZMIN_PLUG
#define USE_XMAX_PLUG
#define USE_YMAX_PLUG
#define USE_ZMAX_PLUG
// Enable pullup for all endstops to prevent a floating state
// Habilita el pullup para todos los finales de carrera para evitar un estado flotante
#define ENDSTOPPULLUPS
#if DISABLED(ENDSTOPPULLUPS)
// Disable ENDSTOPPULLUPS to set pullups individually
//#define ENDSTOPPULLUP_XMAX
//#define ENDSTOPPULLUP_YMAX
//#define ENDSTOPPULLUP_ZMAX
//#define ENDSTOPPULLUP_XMIN
//#define ENDSTOPPULLUP_YMIN
//#define ENDSTOPPULLUP_ZMIN
//#define ENDSTOPPULLUP_ZMIN_PROBE
#endif
// Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
#define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Z_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define X_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Y_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Z_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Z_MIN_PROBE_ENDSTOP_INVERTING false // set to true to invert the logic of the probe.
#define INVERT_X_DIR false
#define INVERT_Y_DIR true
#define INVERT_Z_DIR false
// Direction of endstops when homing; 1=MAX, -1=MIN
// :[-1,1]
#define X_HOME_DIR -1
#define Y_HOME_DIR -1
#define Z_HOME_DIR -1
// @section machine
// The size of the print bed
#define X_BED_SIZE 300
#define Y_BED_SIZE 300
// Travel limits (mm) after homing, corresponding to endstop positions.
#define X_MIN_POS 0
#define Y_MIN_POS 0
#define Z_MIN_POS 0
#define X_MAX_POS X_BED_SIZE
#define Y_MAX_POS Y_BED_SIZE
#define Z_MAX_POS 320
// Min software endstops constrain movement within minimum coordinate bounds
#define MIN_SOFTWARE_ENDSTOPS
#if ENABLED(MIN_SOFTWARE_ENDSTOPS)
#define MIN_SOFTWARE_ENDSTOP_X
#define MIN_SOFTWARE_ENDSTOP_Y
#define MIN_SOFTWARE_ENDSTOP_Z
#endif
// Max software endstops constrain movement within maximum coordinate bounds
#define MAX_SOFTWARE_ENDSTOPS
#if ENABLED(MAX_SOFTWARE_ENDSTOPS)
#define MAX_SOFTWARE_ENDSTOP_X
#define MAX_SOFTWARE_ENDSTOP_Y
#define MAX_SOFTWARE_ENDSTOP_Z
#endif
#if ENABLED(MIN_SOFTWARE_ENDSTOPS) || ENABLED(MAX_SOFTWARE_ENDSTOPS)
//#define SOFT_ENDSTOPS_MENU_ITEM // Enable/Disable software endstops from the LCD
#endif
// @section extruder
// For direct drive extruder v9 set to true, for geared extruder set to false.
#define INVERT_E0_DIR false
|
|
|
|
| Creación de pcb para control de leds rgb |
|
Enviado por: bertonic - 02-10-2019, 12:03 AM - Foro: Fresadoras CNC
- Respuestas (4)
|
 |
Hola a todos hoy traigo una nueva creación una una pcb basada en arduino para el control de tira de leds rgb de 12 v
![[Imagen: f0f116e60f9d4fabdcc01c12851a29dd.jpg]](https://foto.askix.com/upload/f/0f/f0f116e60f9d4fabdcc01c12851a29dd.jpg)
en esta imagen vemos el proyecto de alguien que sirve para controlar la tira led rgb el problema es que tienes que alimentar el arduino con el pc. o con cinco voltios así que como tengo que hacer una especie de rótulo que cambie de color me decidí hacer la pcb y hacerla libre .
![[Imagen: pcb2.jpg]](https://i.ibb.co/RQgbdsz/pcb2.jpg)
en este cambio le puse un regulador de voltaje 7805 y dos condensadores para alimentar al arduino
![[Imagen: pcb1.jpg]](https://i.ibb.co/DtkWNp9/pcb1.jpg)
unos detalles de la pcb
![[Imagen: pcb-3.jpg]](https://i.ibb.co/w6qDksz/pcb-3.jpg)
detalles esquemático
Código: // color swirl! connect an RGB LED to the PWM pins as indicated
// in the #defines
// public domain, enjoy!
#define REDPIN 5
#define GREENPIN 6
#define BLUEPIN 3
#define FADESPEED 5 // make this higher to slow down
void setup() {
pinMode(REDPIN, OUTPUT);
pinMode(GREENPIN, OUTPUT);
pinMode(BLUEPIN, OUTPUT);
}
void loop() {
int r, g, b;
// fade from blue to violet
for (r = 0; r < 256; r++) {
analogWrite(REDPIN, r);
delay(FADESPEED);
}
// fade from violet to red
for (b = 255; b > 0; b--) {
analogWrite(BLUEPIN, b);
delay(FADESPEED);
}
// fade from red to yellow
for (g = 0; g < 256; g++) {
analogWrite(GREENPIN, g);
delay(FADESPEED);
}
// fade from yellow to green
for (r = 255; r > 0; r--) {
analogWrite(REDPIN, r);
delay(FADESPEED);
}
// fade from green to teal
for (b = 0; b < 256; b++) {
analogWrite(BLUEPIN, b);
delay(FADESPEED);
}
// fade from teal to blue
for (g = 255; g > 0; g--) {
analogWrite(GREENPIN, g);
delay(FADESPEED);
}
}
Código para arduino
|
|
|
|
| Problema con mana se |
|
Enviado por: Bertito23 - 01-10-2019, 09:35 PM - Foro: Arduino
- Respuestas (6)
|
 |
Buenas tardes
Tengo un laser de la marca eleksmarker
Con un programa que se llama T2LASER actualize el Firmware a una opcion a la que no se puede (me entere mas tarde por un for chino)
El problema viene ahora que no puedo cambiar el firmware con ninguno de los programas existentes de laser da error seguido.
Hay algun programa de arduino o parecido con el que pueda limpiar los firmware y volver a empezar , no controlo nada en esto de arduino , pero tambien me gusta aprender.
La placa que trae el laser pone que se llama Mana Se y el chip que trae soldado pone Atmel mega 328p au 1715
El laser es Eleksmaker a3 pro
Mucha gracias a todos de antemano.
|
|
|
|
|