Jump to content

Alburg

Members
  • Posts

    46
  • Joined

  • Last visited

Personal Information

  • Location
    Germany
  • Interests
    Motorsports, DIY
  • Occupation
    Mechanic
  1. So something else I've been playing around with is a MAX7219 and some 7 segments (LA-301ML) a friend had left. I basically would have enough 7 segments to build the two 186 radios and the 164 radio. The only issue I have with these 7 segments are the pin spacings. The vertical spacing is 2mm the horizontal 5,3mm. So I would need to make my own PCB if I want to use them for the final build. This is just a test to check the output when turning the first frequency select knob. The dot is just to check if I understood the DP on/off programing.
  2. Not only is HMA Hansolo Mr. A-10 Spareparts of Denmark from today he also is my Dr. RS-485. So I've been having issues with the RS-485 bus and DCS Bios. Hans and me where sending emails back and forth until Hans made me the offer of making me a RS-485 shield, but using MAX487 instead, test it and then send it to me. The best thing all free of charge. So Hans I owe you one :thumbup: Hooked everything up today, flashed the Master sketch on a MEGA and the SLAVE sketch on a NANO using a USBtiny and then testing the MAsterCaution annunciatior. https://youtu.be/mC_WS7TEDdE As it worked I then tried a MEGA as Master and a MEGA as Slave, as Hans was having issue with this setup. https://youtu.be/9CV51KQfiXA As this also worked, I modified my already finished sketch of the L/H console on my MEGA to incorporate the slave part of the RS-485. And it also worked. So it seems I received three U/S RS-485 shields. Thanks Hans for your help:thumbup:
  3. Boltz I love your panels! We are making the back panels exactly the same and you are making the front panels the way I am planning to do them when I either buy a CNC router or source someone who has one. @Hansolo: Are you talking about the Rivnuts? I don't see any float nuts on the last couple of pictures. Search for Rivnuts or blind rivet nut on ebay. You'll get them cheap just make sure to buy a halfway decent puller. Cheers Sven
  4. Hansolo Mr. A-10 Spareparts of Denmark :lol: :thumbup:
  5. So I've been busy. This is Lynxs LH console assembled. For the start I am going without Lynxs DZUS replica profile (allthough it probably is the onyl correct way to go.) The Knobs are Deadmans 3d printed ones from Shapeways, except the ones on the Stall Volume panel. I've already sent my DXF files for the EMERG flight panel and Antenna panel to have them lasered. For the EMERG Flight panel I actually have sourced all original switches except for the Pitch and Roll Trim switch. I've contacted Thrustmaster for their HOTAS Trim switch and was able to buy one.
  6. Good morning everyone, I've been playing around with DCS Bios and the RS485 bus lately, but I can't get it to work. Ian already suggested that I load the sketeches onto the Arduinos using a ISP so I bought a USBTinyISP. It loads the Master and Slave sketches on the Mega2560s but the communication doesn't work when connected to a MAX485 board. Then I read that all MAX485 have to share GND, tried that still doesn't work. Anyone have an idea? Thanks and cheers Sven
  7. Received a parcel from Denmark today, basically my late Xmas present. Now even the last neighbour knows that I am a nerdy nerd:megalol: Looking forward to glue it together. First impression is top quality from Lynx:thumbup:
  8. Hi rocketeer, you aren't alone! I have the same issue you have.
  9. Hi Ian, just to let you know I orderd a USBtinyISP still can't get the RS485 working on two MEGAs. Cheers Sven
  10. I am pretty sure it's the Master sketch. I marked the Master MEGA this time just to be a 100% certain. As soon as I connect the USB the LED Pin 13 flashes a few times and then stays on. Only the TX Led is flashing on the Master.
  11. Master I tried TX1 and RX1 now, as I read that the MEGA uses TX0 and RX0 for the USB connections and coms. Pin2 goes to DE and RE of the rS485 Board Slave TX0 and RX0 are used on this one RS485
  12. Keep up the good work. I love it how you get your hands on original stuff!
  13. Hi Hans, thx for your reply. I've bought two extra MEGAs so I can try the RS485 Bus without having to connect to the already installed MEGA in my LH console. So this time I tried the folllowing Master /* 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 #include "DcsBios.h" void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); } SLAVE /* The following #define tells DCS-BIOS that this is a RS-485 slave device. It also sets the address of this slave device. The slave address should be between 1 and 126 and must be unique among all devices on the same bus. */ #define DCSBIOS_RS485_SLAVE 1 /* The Arduino pin that is connected to the /RE and DE pins on the RS-485 transceiver. */ #define TXENABLE_PIN 2 #include "DcsBios.h" /* paste code snippets from the reference documentation here */ DcsBios::LED masterCaution(0x1012, 0x0800, 13); void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); } Without any result. Is it because maybe the #define DCSBIOS_IRQ_SERIAL is missing? The missing pin you mentioned is the fuel Receiver Lever. I had to do it that way otherwise the function within the game would be mirrored. Cheers Sven
  14. So I've been playing around with the RS485 bus. I can't get it to work. So this would be my Master The Max485 connected to Pin2, TX0 and RX0 /* 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 #include "DcsBios.h" void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); } This is my SLAVE the Max485 also connected to Pin2, TX0 and RX0. /* The following #define tells DCS-BIOS that this is a RS-485 slave device. It also sets the address of this slave device. The slave address should be between 1 and 126 and must be unique among all devices on the same bus. */ #define DCSBIOS_RS485_SLAVE 1 /* The Arduino pin that is connected to the /RE and DE pins on the RS-485 transceiver. */ #define TXENABLE_PIN 2 #include "DcsBios.h" /* paste code snippets from the reference documentation here */ //Fuel Switch Panel DcsBios::Switch2Pos fscpExtTanksFus("FSCP_EXT_TANKS_FUS", 50); DcsBios::Switch2Pos fscpExtTanksWing("FSCP_EXT_TANKS_WING", 51); DcsBios::Switch2Pos fscpTkGate("FSCP_TK_GATE", 49); DcsBios::Switch2Pos fscpCrossfeed("FSCP_CROSSFEED", 48); DcsBios::Switch2Pos fscpBoostWingL("FSCP_BOOST_WING_L", 47); DcsBios::Switch2Pos fscpBoostWingR("FSCP_BOOST_WING_R", 46); DcsBios::Switch2Pos fscpBoostMainL("FSCP_BOOST_MAIN_L", 40); DcsBios::Switch2Pos fscpBoostMainR("FSCP_BOOST_MAIN_R", 41); DcsBios::Switch2Pos fscpAmpl("FSCP_AMPL", 53); DcsBios::Switch2Pos fscpLineCheck("FSCP_LINE_CHECK", 52); DcsBios::Switch2Pos fscpFdWingL("FSCP_FD_WING_L", 44); DcsBios::Switch2Pos fscpFdWingR("FSCP_FD_WING_R", 45); DcsBios::Switch2Pos fscpFdMainL("FSCP_FD_MAIN_L", 42); DcsBios::Switch2Pos fscpFdMainR("FSCP_FD_MAIN_R", 43); const byte fscpRcvrLeverPins[2] = {39,}; DcsBios::SwitchMultiPos fscpRcvrLever("FSCP_RCVR_LEVER", fscpRcvrLeverPins, 2); DcsBios::Potentiometer alcpRcvrLts("ALCP_RCVR_LTS", A0); //Stall Panel DcsBios::Potentiometer stallPeakVol("STALL_PEAK_VOL", A1); DcsBios::Potentiometer stallVol("STALL_VOL", A2); //Intercom Panel DcsBios::Potentiometer intFmVol("INT_FM_VOL", A6); DcsBios::Potentiometer intIntVol("INT_INT_VOL", A7); DcsBios::Potentiometer intVol("INT_VOL", A8); DcsBios::Potentiometer intTcnVol("INT_TCN_VOL", A9); DcsBios::Potentiometer intIffVol("INT_IFF_VOL", A10); DcsBios::Potentiometer intVhfVol("INT_VHF_VOL", A11); DcsBios::Potentiometer intUhfVol("INT_UHF_VOL", A12); DcsBios::Potentiometer intAimVol("INT_AIM_VOL", A13); DcsBios::Potentiometer intIlsVol("INT_ILS_VOL", A14); DcsBios::Potentiometer intHmVol("INT_HM_VOL", A15); DcsBios::Switch2Pos intAimUnmute("INT_AIM_UNMUTE", 28); DcsBios::Switch2Pos intFmUnmute("INT_FM_UNMUTE", 33); DcsBios::Switch2Pos intIffUnmute("INT_IFF_UNMUTE", 24); DcsBios::Switch2Pos intIlsUnmute("INT_ILS_UNMUTE", 29); DcsBios::Switch2Pos intIntUnmute("INT_INT_UNMUTE", 31); DcsBios::Switch2Pos intTcnUnmute("INT_TCN_UNMUTE", 25); DcsBios::Switch2Pos intUhfUnmute("INT_UHF_UNMUTE", 27); DcsBios::Switch2Pos intVhfUnmute("INT_VHF_UNMUTE", 30); DcsBios::Switch2Pos intHm("INT_HM", 35); DcsBios::Switch2Pos intCall("INT_CALL", 34); const byte intModePins[5] = {22, 37, 32, 26, 36}; DcsBios::SwitchMultiPos intMode("INT_MODE", intModePins, 5); //AUX Lights Panel DcsBios::Switch2Pos alcpFdbaTest("ALCP_FDBA_TEST", 12); DcsBios::Switch2Pos alcpHarssas("ALCP_HARSSAS", 10); DcsBios::Switch3Pos alcpNvisLts("ALCP_NVIS_LTS", 11, 13); DcsBios::Potentiometer alcpRsil("ALCP_RSIL", A3); DcsBios::Potentiometer alcpWpnsta("ALCP_WPNSTA", A4); DcsBios::Switch2Pos lampTestBtn("LAMP_TEST_BTN", 9); //SAS Panel DcsBios::Switch3Pos saspMonitorTest("SASP_MONITOR_TEST", 20, 19); DcsBios::Switch2Pos saspPitchSasL("SASP_PITCH_SAS_L", 14); DcsBios::Switch2Pos saspPitchSasR("SASP_PITCH_SAS_R", 16); DcsBios::Switch2Pos saspToTrim("SASP_TO_TRIM", 21); DcsBios::Switch2Pos saspYawSasL("SASP_YAW_SAS_L", 18); DcsBios::Switch2Pos saspYawSasR("SASP_YAW_SAS_R", 15); DcsBios::Potentiometer saspYawTrim("SASP_YAW_TRIM", A5); DcsBios::LED takeOffTrim(0x1026, 0x0400, 17); void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); } What am I missing, Í already tried Ians work around with the 470Ohm between GND and A and VCC and B. Cheers Sven
×
×
  • Create New...