[solved] Teacup unreliable endstops September 29, 2016 08:08AM |
Registered: 7 years ago Posts: 7 |
Re: Teacup unreliable endstops September 29, 2016 08:53AM |
Admin Registered: 12 years ago Posts: 2,569 |
/** \def USE_INTERNAL_PULLUPS The ATmega has internal pullup resistors on it's input pins which are counterproductive with the commonly used eletronic endstops, so they should be switched off. For other endstops, like mechanical ones, you may want to uncomment this. */ //#define USE_INTERNAL_PULLUPS
Re: Teacup unreliable endstops September 29, 2016 08:55AM |
Admin Registered: 12 years ago Posts: 2,569 |
/** \def ENDSTOP_STEPS Number of steps to run into the endstops intentionally. As endstops trigger false alarm sometimes, Teacup debounces them by counting a number of consecutive positives. Use 4 or less for reliable endstops, 8 or even more for flaky ones. Valid range: 1...255. */ #define ENDSTOP_STEPS 5
Re: Teacup unreliable endstops September 30, 2016 06:26AM |
Registered: 13 years ago Posts: 7,616 |
My fault. With a triggered endstop there's no pull resistor at all, so the signal indeed picks up noise floating around.Quote
Fivefold
z min is the only reliable one, the other two show completely random and fast-changing states with M119 as soon as they are triggered.
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Teacup unreliable endstops September 30, 2016 08:03AM |
Registered: 13 years ago Posts: 7,616 |
/** \def USE_INTERNAL_PULLDOWNS Some controller chips feature internal pulldown resistors on their input pins, which get used for endstops by turning on this switch. Don't turn it on when using endstops which need no pull resistor, e.g. optical endstops, because pull resistors are counterproductive there. One can't use USE_INTERNAL_PULLDOWNS and USE_INTERNAL_PULLUPS at the same time, of course. */ //#define USE_INTERNAL_PULLDOWNS
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Teacup unreliable endstops October 01, 2016 06:48AM |
Registered: 7 years ago Posts: 7 |