|
Problema sensore su Z_MIN della RAMPS 1.4 November 02, 2016 05:53PM |
Registered: 11 years ago Posts: 111 |


|
Re: Problema sensore su Z_MIN della RAMPS 1.4 November 02, 2016 06:09PM |
Registered: 12 years ago Posts: 6,409 |
|
Re: Problema sensore su Z_MIN della RAMPS 1.4 November 02, 2016 08:27PM |
Registered: 11 years ago Posts: 111 |
//#define ENDSTOPPULLUP_ZMINche cmq mi risultava già commentata, ma continuava a non funzionare. Poi le ho provate un po' tutte a dir la verità.
// Specify here all the endstop connectors that are connected to any endstop or probe. // Almost all printers will be using one per axis. Probes will use one or more of the // extra connectors. Leave undefined any used for non-endstop and non-probe purposes. #define USE_XMIN_PLUG #define USE_YMIN_PLUG #define USE_ZMIN_PLUG //#define USE_XMAX_PLUG //#define USE_YMAX_PLUG //#define USE_ZMAX_PLUG // coarse Endstop Settings #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors #if DISABLED(ENDSTOPPULLUPS) // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined //#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 true // 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 endstop.
#define ENDSTOPPULLUPSdecommentando poi tutte le ENDSTOPPULLUP, tranne Z_MIN, ma niente, sempre stesso problema.

|
Re: Problema sensore su Z_MIN della RAMPS 1.4 November 03, 2016 03:14AM |
Registered: 12 years ago Posts: 6,409 |
|
Re: Problema sensore su Z_MIN della RAMPS 1.4 November 03, 2016 04:30AM |
Registered: 11 years ago Posts: 111 |
#define USE_ZMAX_PLUGe commento
//#define USE_ZMIN_PLUG- reimposto a false
#define Z_MIN_ENDSTOP_INVERTING falsee a true
#define Z_MAX_ENDSTOP_INVERTING true
//#define ENDSTOPPULLUPSe poi decommentare tutte le singole pullup tranne ZMIN e ZMAX?
|
Re: Problema sensore su Z_MIN della RAMPS 1.4 November 03, 2016 05:39AM |
Registered: 10 years ago Posts: 65 |
|
Re: Problema sensore su Z_MIN della RAMPS 1.4 November 03, 2016 05:53AM |
Registered: 11 years ago Posts: 111 |
Quote
mava70
Ciao, ho anche io quel sensore, installato ieri funziona benissimo. Ho dovuto scaricare Marlin 1.1RcBugfix perchè sulla 1.02 faceva casino. Come lo hai collegato sul 12V? Marrone su + e Blu su -". Hai messo le resistenze di pullup sul nero vero??? Io ho usato una 10k in serie al nero e una 6.6k+1K a cavallo nero blu. Così facendo ottengo una tensione di circa 4V e il sensore funziona bene.
ZMIN_INVERTING a true tutto il resto io non l'ho toccato.
Ciao.
|
Re: Problema sensore su Z_MIN della RAMPS 1.4 November 03, 2016 06:36AM |
Registered: 10 years ago Posts: 65 |
|
Re: Problema sensore su Z_MIN della RAMPS 1.4 November 03, 2016 06:37AM |
Registered: 12 years ago Posts: 6,409 |
|
Re: Problema sensore su Z_MIN della RAMPS 1.4 November 03, 2016 06:44AM |
Registered: 10 years ago Posts: 65 |
|
Re: Problema sensore su Z_MIN della RAMPS 1.4 November 03, 2016 06:59AM |
Registered: 12 years ago Posts: 6,409 |
|
Re: Problema sensore su Z_MIN della RAMPS 1.4 November 03, 2016 09:13AM |
Registered: 11 years ago Posts: 111 |
Infatti ho comprato un sensore NPN NO proprio perchè pensavo fosse il sensore che necessitava di meno modifiche per collegarlo alla RAMPS (fuorviato anche da una guida trovata su internet che consigliava di usare il sensore che ho comprato proprio perchè non aveva bisogno di alcuna modifica), ma mi sa che ho sbagliatoQuote
Fedus82
3. LOGICA USCITA SENSORE: PNP o NPN, con logica pnp il terminale di uscita da la tensione di alimentazione, visto che la logica di Arduino é +5v=1 e GND=0 bisogna adottare un sistema per limitare la tensione di uscita dal sensore, quindi metodo delle due resistenze(il cui valore esatto dipende dalla tensione di alimentazione del sensore) oppure regolatore di tensione tipo 7805(anche questo da dimensionare in base alla tensione di alimentazione) per queste soluzioni occorre disabilitare la resistenza di pullup interna al micro. Mi pare di capire(ma é piú una domanda che un affermazione) che esisterebbe un terzo metodo per collegare il segnale di un sensore con logica PNP, ovvero interporre tra il pin e il cavo di segnale un diodo tipo 1n4148 o simili, mettendo al catodo l'uscita del sensore e all'anodo il pin di Arduino(devo verificare se ho usato i termini esatti, in ogni caso la corrente deve poter scorrere liberamente solo nel verso dal pin a massa, nel verso contrario viene bloccata dal diodo), in questo modo quando ho uscita sul sensore qualsiasi sia la tensione Arduino lo vede come un contatto aperto(con la resistenza di pullup abilitata) mentre quando l'uscita del sensore é a massa anche il pin di Arduino lo é, perció il sensore viene visto come un semplice endstop meccanico. Corretto???
In questo caso questa sarebbe la soluzione più semplice che di fatto equivale ad utilizzare un sensore tipo NPN, la cui uscita si comporta come contatto che o é aperto o a massa, permettendoci di collegarla direttamente al pin di Arduino lasciando abilitata la resistenza di pullup relativa.
.
.
|
Re: Problema sensore su Z_MIN della RAMPS 1.4 November 03, 2016 10:49AM |
Registered: 10 years ago Posts: 65 |
|
Re: Problema sensore su Z_MIN della RAMPS 1.4 November 03, 2016 02:51PM |
Registered: 10 years ago Posts: 65 |
#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors #ifndef ENDSTOPPULLUPS // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined // #define ENDSTOPPULLUP_XMAX // #define ENDSTOPPULLUP_YMAX // #define ENDSTOPPULLUP_ZMAX // #define ENDSTOPPULLUP_XMIN // #define ENDSTOPPULLUP_YMIN // #define ENDSTOPPULLUP_ZMIN #endif #ifdef ENDSTOPPULLUPS #define ENDSTOPPULLUP_XMAX #define ENDSTOPPULLUP_YMAX #define ENDSTOPPULLUP_ZMAX #define ENDSTOPPULLUP_XMIN #define ENDSTOPPULLUP_YMIN #define ENDSTOPPULLUP_ZMIN #endif
|
Re: Problema sensore su Z_MIN della RAMPS 1.4 November 03, 2016 03:00PM |
Registered: 12 years ago Posts: 6,409 |
|
Re: Problema sensore su Z_MIN della RAMPS 1.4 November 04, 2016 05:38AM |
Registered: 11 years ago Posts: 111 |
Quote
mava70
ti serve un tester, se non ce l'hai conviene che lasci perdere, comunque é semplice cerca su youtube questo video ''3D printing guides: Setting up auto bed tramming leveling tilt compensation! '' di tom hai bisogno di due resistenze una grande e una un filo più piccola. La cosa del diodo potrebbe avere un senso solo se fosse uno zener. Comunque dopo averlo fatto, mai più senza l'autobed leveling è una figata assurda.
. Il video l'avevo già visto, ma manca il pezzo per me più importante, cioè vedere passo passo come collegava le resistenze ai fili, lui fa solo uno schema. Scusa se ti faccio questa domanda che magari ti sembrerà stupida, ma quali sono i sensori attivi?Quote
MagoKimbra
Si non serve se è un sensore attivo... La pullup serve per dare 5v sul pin quando non c'è segnale, ma quelli attivi danno sia i 5v che i GND...
|
Re: Problema sensore su Z_MIN della RAMPS 1.4 November 04, 2016 05:45AM |
Registered: 12 years ago Posts: 6,409 |
|
Re: Problema sensore su Z_MIN della RAMPS 1.4 November 04, 2016 12:14PM |
Registered: 10 years ago Posts: 65 |
|
Re: Problema sensore su Z_MIN della RAMPS 1.4 November 10, 2016 08:12PM |
Registered: 11 years ago Posts: 111 |
//#define AUTO_BED_LEVELING_3POINT //#define AUTO_BED_LEVELING_LINEAR //#define AUTO_BED_LEVELING_BILINEAR
, quindi sono rimasto con 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 // coarse Endstop Settings #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors #if DISABLED(ENDSTOPPULLUPS) // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined //#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 endstop.
|
Re: Problema sensore su Z_MIN della RAMPS 1.4 November 18, 2016 05:53AM |
Registered: 10 years ago Posts: 65 |
|
Re: Problema sensore su Z_MIN della RAMPS 1.4 March 30, 2017 12:54PM |
Registered: 9 years ago Posts: 13 |