Jump to content

doubleup

Members
  • Posts

    3
  • Joined

  • Last visited

  1. this exactly did the trick! only thing: one needs to update the code in DcsBiosNgRS485Slave.cpp.inc ; but that's just a detail. it's so great this community! with that little change i don't have to redo the 48 LED connections :-)
  2. many thanks for your input - it actually works with the Nano: #define DCSBIOS_RS485_SLAVE 1 #define TXENABLE_PIN 2 #include "DcsBios.h" DcsBios::LED clC1(0x10d4, 0x0100, 13); DcsBios::LED clA1(0x10d4, 0x0001, 3); DcsBios::LED clA2(0x10d4, 0x0002, 4); DcsBios::LED clA3(0x10d4, 0x0004, 5); DcsBios::LED clA4(0x10d4, 0x0008, 6); DcsBios::LED clB1(0x10d4, 0x0010, 7); DcsBios::LED clB2(0x10d4, 0x0020, 8); DcsBios::LED clB3(0x10d4, 0x0040, 9); DcsBios::LED clB4(0x10d4, 0x0080, 10); DcsBios::LED clC2(0x10d4, 0x0200, 11); DcsBios::LED clC3(0x10d4, 0x0400, 12); DcsBios::LED clC4(0x10d4, 0x0800, 14); DcsBios::LED clD1(0x10d4, 0x1000, 15); DcsBios::LED clD2(0x10d4, 0x2000, 16); DcsBios::LED clD3(0x10d4, 0x4000, 17); DcsBios::LED clD4(0x10d4, 0x8000, 18); DcsBios::LED clE1(0x10d6, 0x0001, 17); DcsBios::LED clE2(0x10d6, 0x0002, 19); DcsBios::LED clE3(0x10d6, 0x0004, 20); DcsBios::LED clE4(0x10d6, 0x0008, 21); void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); } No random blinking of the internal LED. -> Isue SOLVED! So, i guess i can get it to work with 3 Nano. However, it would interest me why it doesn't work with the Mega. Anyone has an idea?
  3. Caution Lights Panel, random blinking LED Dear all, first of all: i am totally new to the forums and i love the quality of the discussions! i am experiencing the very same issue and was able to pin it down to a Arduino hardware/software problem: - no LED connected at all - MAX487 as in the tutorial it depends how many LED functions are declared: #define DCSBIOS_RS485_SLAVE 1 #define TXENABLE_PIN 2 #include "DcsBios.h" DcsBios::LED clC1(0x10d4, 0x0100, 13); DcsBios::LED clA1(0x10d4, 0x0001, 31); DcsBios::LED clA2(0x10d4, 0x0002, 32); DcsBios::LED clA3(0x10d4, 0x0004, 33); DcsBios::LED clA4(0x10d4, 0x0008, 34); DcsBios::LED clB1(0x10d4, 0x0010, 27); DcsBios::LED clB2(0x10d4, 0x0020, 28); //DcsBios::LED clB3(0x10d4, 0x0040, 29); void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); } -> works as expected #define DCSBIOS_RS485_SLAVE 1 #define TXENABLE_PIN 2 #include "DcsBios.h" DcsBios::LED clC1(0x10d4, 0x0100, 13); DcsBios::LED clA1(0x10d4, 0x0001, 31); DcsBios::LED clA2(0x10d4, 0x0002, 32); DcsBios::LED clA3(0x10d4, 0x0004, 33); DcsBios::LED clA4(0x10d4, 0x0008, 34); DcsBios::LED clB1(0x10d4, 0x0010, 27); DcsBios::LED clB2(0x10d4, 0x0020, 28); DcsBios::LED clB3(0x10d4, 0x0040, 29); void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); } -> LED 13 (onboard) blinks randomly (it doesn't depend on which LED functions i define; just if the number is more than 7 i get that random behavior) just that i have mentioned it: it all works perfectly when i connect the board directly via USB instead of RS487. so, i assume it is a performance issue of the ArduinoMEGA board while processing the RS487 stream. did anyone see that already and has a solution for it? are there more powerful Arduino boards with enough I/O for connecting the Caution Lights Panel anyone has experience with?
×
×
  • Create New...