lesthegrngo Posted June 23, 2019 Share Posted June 23, 2019 (edited) I need to warn you all of something that may cause you weeks of frustration I have been trying to set up parts to use with DCS Bios, and for the last couple of weeks have kept on running into roadblocks that meant my putative cockpit instruments weren't working. to cut a long story short, it turned out to be a mis-named pin on an Arduino (a mega in this case) which meant that it didn't matter whether my wiring was correct as the Arduino pin that I was using was the wrong one. I assume that the blue (incorrectly stencilled) mega in the picture is a Chinese clone, and for the most part my experiences of the clones has been good. However, this one was one of the not so good ones. If you check it against the 'branded' version below it, you can see that the TX and RX pins are transposed. Checking against the Arduino Mega specifications, the blue one has got it wrong. That simple error has lost me a ton of time and also cost me money, so if you are experiencing issues, a five minute check may save you unnecessary problems. Hope this helps Les Edited June 29, 2019 by lesthegrngo Link to comment Share on other sites More sharing options...
Jester_ITA Posted June 24, 2019 Share Posted June 24, 2019 (edited) It definitely helps! I had the same problem when I tried to run the 485 bus. RX and TX reversed and months trying to solve the problem without realizing it. I can not write here, because of censorship, my exact words when I realized ;) I had given some answers to those who had problems in other posts but, in fact, it is better to do a specific post about it! Thank you! EDIT: Look at that ... "COMMUNCIATION" ... they can't even write correct words, just figure the pin markings! :lol: :lol: :lol: Edited June 24, 2019 by Jester_ITA Link to comment Share on other sites More sharing options...
crash test pilot Posted June 27, 2019 Share Posted June 27, 2019 "COMMUNCIATION" seems to be correct; my new chinese mega-clone (looking identical to yours) is labeled with all pins acording to arduino-specs but still says "COMMUNCIATION" Link to comment Share on other sites More sharing options...
RustBelt Posted June 28, 2019 Share Posted June 28, 2019 I assume that the blue (incorrectly stencilled) mega in the picture is a Chinese clone, What Makes you think that? :drink: Link to comment Share on other sites More sharing options...
lesthegrngo Posted June 28, 2019 Author Share Posted June 28, 2019 At least they spelled that bit right..... Link to comment Share on other sites More sharing options...
Hansolo Posted June 28, 2019 Share Posted June 28, 2019 To be fair the black one from Elegoo is also a chinese clone :smilewink: Mislabeled boards can of cause be avoided by buying the original product. They just cost more but have the ATmega8U2 or ATmega16U2 USB chip as opposed to the cheaper CH340G; https://www.quora.com/What-is-the-difference-between-Arduino-Uno-R3-compatible-board-ATmega328P-ATmega16U2-and-Arduino-Uno-R3-ATmega328P-USB-board-CH340G-Which-should-I-buy-and-why Despite the mislabeling I'd expect to continue buying the chinese ones. So far I haven't had any issues with them. A way to avoid the mislabeling is to just use UART2 and/or UART3; /* Tell DCS-BIOS this is a RS-485 Master. You will need to flash this to a Mega 2560. */ #define DCSBIOS_RS485_MASTER /* Define where the TX_ENABLE signals are connected. You can connect up to three half-duplex RS-485 transceivers. Arduino Pin RS-485 Transceiver Pin TXn ------------------- DI (driver input) RXn ------------------- RO (Receiver Output) UARTn_TXENABLE_PIN ---- /RE, DE (active low receiver enable, driver enable) If you have less than three transceivers connected, comment out the corresponding #define UARTn_TEXENABLE_PIN lines for receivers that are not present. */ //#define UART1_TXENABLE_PIN 2 #define UART2_TXENABLE_PIN 3 #define UART3_TXENABLE_PIN 4 #include "DcsBios.h" void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); } @lesthegrngo, perhaps re-name the thread to 'Mis-labeled Arduino Mega' as the hardware as such isn't faulty. Its a typo but an inconvenient one. Cheers Hans 132nd Virtual Wing homepage & 132nd Virtual Wing YouTube channel My DCS-BIOS sketches & Cockpit Album Link to comment Share on other sites More sharing options...
lesthegrngo Posted June 29, 2019 Author Share Posted June 29, 2019 Fair point, Hans, however I think the thread title is not something that can be changed unfortunately. I'm happy for the moderators to do so Cheers Les Link to comment Share on other sites More sharing options...
JG14_Smil Posted June 29, 2019 Share Posted June 29, 2019 I once bought a power supply that had the polarity backwards. Now we are back on topic. Link to comment Share on other sites More sharing options...
Gman109 Posted July 1, 2019 Share Posted July 1, 2019 What exactly is "dodgy" hardware? Is that hardware that somehow dodges you are something? Systems Virpil T50x2,T50CM2x2,Warbrd x2, VFX/Delta/CM2/Alpha/Tm Hornet sticks, VKB GF3, Tm Warthog(many), Modded Cougar, VKB Pedals/MFG Pedals/Slaw Viper RX+109Cam Pedals/Virpil T50+T50CM Throttle/CH Fightersticks/CH Throttles/CH peds, Index x1, Reverb x1 Link to comment Share on other sites More sharing options...
lesthegrngo Posted July 2, 2019 Author Share Posted July 2, 2019 A distictly British phrase, 'dodgy' means something that is untrustworthy or unreliable Cheers Les Link to comment Share on other sites More sharing options...
Recommended Posts