Цитата:
Сообщение от Alexmit
Соответственно:
//DCC Interface Master:
#define DetectShortCircuit 0xFF //to detect short circuit (0xFF)
#define KSRelaisShortCircuit 0x1F //to detect KS short (0x1F)
|
Я сделал по другому и неправильно. В момент включения питания добавил задержку 0,2 секунды , теперь стартует сразу с трехамперной нагрузкой .
Arduino код:
#if defined(DCC)
dcc.setpower(ON);
#endif
#if defined(BOOSTER_EXT)
if (digitalRead(ShortExtPin) == LOW)
digitalWrite(GoExtPin, BOOSTER_EXT_ON); [B]delay(200);[/B]
#endif
#if defined(BOOSTER_INT)
digitalWrite(GoIntPin, BOOSTER_INT_ON); [B] delay(200);[/B]
#endif
break;