Rapti Posted March 28 Share Posted March 28 Hi all, I guess, I've figured it out by reading some of Vinc_Vega's posts. This is my first-ever schematic. Please let me know if it's not right. Thank you. I've also noticed that many PCBs have large copper ground fills - is this necessary and what is the benefit? Can it not be just nets with the rest of the copper being etched away?Why the resistor and the condensator? Gesendet von meinem SM-G988B mit Tapatalk Link to comment Share on other sites More sharing options...
No1sonuk Posted March 28 Share Posted March 28 33 minutes ago, Rapti said: Why the resistor and the condensator? Gesendet von meinem SM-G988B mit Tapatalk Looks to me like the resistor pulls the enable lines low in case the Arduino doesn't. The Capacitor (the English name for it) smooths and reduces noise on the power supply. 1 Link to comment Share on other sites More sharing options...
Vinc_Vega Posted March 28 Share Posted March 28 The pulldown resistor is not required. It has been recommended somewhere here in the forum in case you have problems to receive data (RE low = receiver enabled). As No1sonuk already wrote, the capacity is to reduce noise in the power supply. It is optional too. Regards, Vinc 1 Regards, Vinc real life: Royal Bavarian Airforce online: VJS-GermanKnights.de [sIGPIC][/sIGPIC] Link to comment Share on other sites More sharing options...
Rapti Posted April 25 Share Posted April 25 I have now made a diagram of the wiring. Can anyone confirm that this is correct? I think I have read that there can be problems using an Arduino MEGA as a slave? Is this correct? Link to comment Share on other sites More sharing options...
No1sonuk Posted April 25 Share Posted April 25 6 hours ago, Rapti said: I have now made a diagram of the wiring. Can anyone confirm that this is correct? I think I have read that there can be problems using an Arduino MEGA as a slave? Is this correct? There have been some issues with a Mega as a slave, and yours might be wired incorrectly anyway. I think you need to use TX0 and RX0 if you're using the Mega as a slave. You use TX1 and RX1 for the RS485 network on the master because TX0 and RX0 are used for the USB comms. All the other Arduinos are disconnected from the USB, so TX0 and RX0 are used on those. Link to comment Share on other sites More sharing options...
Rapti Posted April 26 Share Posted April 26 10 hours ago, No1sonuk said: I think you need to use TX0 and RX0 if you're using the Mega as a slave. you are right. I will try it. Thanks. Link to comment Share on other sites More sharing options...
Vinc_Vega Posted April 26 Share Posted April 26 (edited) 23 hours ago, Rapti said: I have now made a diagram of the wiring. Can anyone confirm that this is correct? I think I have read that there can be problems using an Arduino MEGA as a slave? Is this correct? Here you can find the discussion on how a slave Mega should be connected https://forum.dcs.world/topic/310930-maximising-the-use-of-arduino-nanos-max-switch-connections-possible/#comment-5083746 You also may have a look into previous RS485 related discussions. I recommend the second layout from that posting https://forum.dcs.world/topic/208455-dcs-bios-over-rs485/?do=findComment&comment=3926198 Regards, Vinc Edited April 26 by Vinc_Vega Regards, Vinc real life: Royal Bavarian Airforce online: VJS-GermanKnights.de [sIGPIC][/sIGPIC] Link to comment Share on other sites More sharing options...
Strale Posted April 26 Share Posted April 26 Il 29/4/2023 at 12:37, Vinc_Vega ha scritto: Hi Les, first impression from here https://store.arduino.cc/products/arduino-nano-every They say: pin compatible and code will still work. I try to get one or two for experiments. Regards, Vinc Hi Vinc, one year from this post, did you have the chance to try those every ? I'm having problems with them, same code of a clone nano, uploaded, connected directly to USB i see the code and also the change of code when i press one switch but in the virtual cockpit it doesn't happen anything ! Really weird as they say it's compatible with nano. Thanks for any suggestion. Link to comment Share on other sites More sharing options...
Vinc_Vega Posted April 27 Share Posted April 27 (edited) @Strale Hi I decided not to try the Nano Every as I had enough of the "regular" Nanos available and ESP32 modules in several form factors. Anyway, other members reported of unsolved problems. Sorry! Maybe @lesthegrngo or @outbaxx have more experience with that kind of chips. Best regards, Vinc Edited April 27 by Vinc_Vega Regards, Vinc real life: Royal Bavarian Airforce online: VJS-GermanKnights.de [sIGPIC][/sIGPIC] Link to comment Share on other sites More sharing options...
Strale Posted April 28 Share Posted April 28 (edited) Thanks VInc, i was thinking that upgrading to original Arduino was the right choice but hell i can upload the sketch but even if i see the code changing when pressed a switch it doesn't do anything in the virtual cockpit. That's a shame Thanks UPDATE I know the rule but sometimes i loose myself ! Think twice .. buy Once ! Indeed NANO EVERY, against the statements on Arduino web store, are not compatible with Nano Sketches at least while using DCSBIOS ! I returned the board to Arduino and waiting for a full refund. Next time i'll write the rule on a post-it and place it on my monitor. Edited Thursday at 07:48 PM by Strale Link to comment Share on other sites More sharing options...
Rapti Posted April 28 Share Posted April 28 On 4/26/2024 at 3:13 PM, Vinc_Vega said: Here you can find the discussion on how a slave Mega should be connected https://forum.dcs.world/topic/310930-maximising-the-use-of-arduino-nanos-max-switch-connections-possible/#comment-5083746 You also may have a look into previous RS485 related discussions. I recommend the second layout from that posting https://forum.dcs.world/topic/208455-dcs-bios-over-rs485/?do=findComment&comment=3926198 Regards, Vinc So i tried it with 1 MEGA as the Master, a MEGA as slave 1 and a Arduino UNO as slave 2. --> it worked! But I had to change the RX/TX on the clone mega's. I wired it exactly as in my picture above exept the slave mega uses TX0 and RX0, as No1sonuk mentioned. 1 Link to comment Share on other sites More sharing options...
Rapti Posted Tuesday at 11:27 AM Share Posted Tuesday at 11:27 AM After the succesful test, I designed the PCB's for th RS485 modules.I will connect each board with these micro latch connectors. The screw terminals are for connecting the arduinothe the board. The Red ans blue jumper is for deconnecting the RX ans TX when loading New arduino sketch. Gesendet von meinem SM-S928B mit Tapatalk 1 Link to comment Share on other sites More sharing options...
Recommended Posts