From e032cf5dab55e1ab6fd6453b7527c1053d5c9461 Mon Sep 17 00:00:00 2001 From: Markus Amsler Date: Mon, 21 Feb 2011 15:52:15 +1100 Subject: [PATCH] extruder: Use pull up resistors for step/dir pin to avoid noise. --- extruder/extruder.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extruder/extruder.c b/extruder/extruder.c index 3882564..e0169f3 100644 --- a/extruder/extruder.c +++ b/extruder/extruder.c @@ -25,6 +25,10 @@ void io_init(void) { SET_INPUT(E_STEP_PIN); SET_INPUT(E_DIR_PIN); + // use pull up resistors to avoid noise + WRITE(E_STEP_PIN, 1); + WRITE(E_DIR_PIN, 1); + //Enable the RS485 transceiver SET_OUTPUT(RX_ENABLE_PIN); SET_OUTPUT(TX_ENABLE_PIN);