Jump to content

Recommended Posts

Posted (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

516488680_ComparisonofMegas.thumb.jpg.48a3ff308dc4e09c08053a131c1a6776.jpg

Edited by lesthegrngo
Posted (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 by Jester_ITA
Posted

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

Posted

What exactly is "dodgy" hardware? Is that hardware that somehow dodges you are something?

Primary DCS System: AMD 9800x3d, MSI Tomahawk 870, 6TB m.2s (2x2t, 1x2tb), MSI Ventus 5080, Seasonic 1200 PSU, 64GB Gskill 6000mhz CL30.  32" Asus 4K OLED 240hz, 49"MSI OLDED

Secondary System : 14600KF, z790 Tomahawk, 32GB Gskill 6000mhz CL32, Asus 4090, 2x2TB m.2.  VR: Quest 3 for now.

 

 

Virpil T50x2,T50CM2x2,Warbrd x2, VFX/Delta/Flankr/CM2/Alpha/Tm Hornet sticks, VKB GF3, Tm Warthog(many), Modded Cougar, VKB Pedals/MFG Pedals/Slaw Viper RX+109Cam Pedals/Virpil Pedals x2, Virpil T50+T50CM2+T50+T50CM3+VMAX Throttles/CH Fightersticksx2/CH Throttlesx2/CH peds, Quest 3.  Virpil Rotor TCS Plus.  All virpil grips, TM Grips, working on VKB  GF Grips.

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...