Hi guys,
I'm planning to setup an Arduino Uno and a Mega to communicate with each other.
My intention is to expand the codes of both Arduino's, while monitoring both by using Serial monitor.
Can that be done with one Laptop, connected to both Arduino's?
It can be done with a single laptop
Which version of the IDE are you using. If it is version 2.x then each time you do File/New or File/Open you can configure the sketch to use whichever board and port you like independent of any other open sketch. Each sketch will have its own Serial monitor
If you are using IDE 1.x then the trick is to open one sketch and set up the board and port then to open a second instance of the IDE rather than doing File/New or File/Open. Then you can set the board and port independently in each instance of the IDE
Another approach is to use a terminal program to communicate with one device and the Arduino IDE serial monitor to communicate with the other.
I think I will download and use that 2.x version.
Thanks so far. ![]()
works similar with the 1.8.19.
Just start a second Instance and you have two separate Arduino IDEs with two separate Serial Monitors.
Use a terminal program and two ports. Use just the RX of each of those ports, and you have a crude serial monitor for your trouble.
One terminal window listens to TX->RX Mega to UNO, the other listens to TX->RX UNO to Mega.
You'd need two TTL-USB serial adapters. What? You don't have a few spare TTL-USB adapters in your kit?
a7
However, do you want to synchronize what's happening on the two Arduinos, or have some idea of how the data from one interleaves with the data from the other? That's a different kettle of fish.
I will have them communicating with one another, and manipulate certain values on one arduino (simulating thermal sensors) to monitor the effect on the other one.
The value registered and the value received are subject to monitoring.
Eventually valves will be turned by relay-cards, but for now LED's will do.
Using 2 instances of the IDE, whichever version that is, gives you the facility to change code on one or both either to fix bugs or to monitor what is going on
I did not know it was possible to have 2 IDE sessions running on one system.
It would make sense.
Per session it is possible to choose the preferred port, I imagine.
Please correct me if I'm wrong in that assumption. ..
See post #2
I guess its just me, but I get cranky with only just opening the sketches!!
OK... I received a sketch in a Zip format. besides the sketch there are some libraries and stuff.
It seems I have to copy all to a specific folder, but I cannot open it for some reason.
And If I manage to open it, I every time have to tell the sketch again which board it is I'm using.
Besides that... I get errormessages when checking the sketch due to the lack of the bladibla.h file, which was in the Zip folder but is not in the apointed folder.
Opening a new sketch (the only way to start a second session when I already have a IDE session running) I cannot choose to open the sketch which was already placed in that mentione folder.
Have there been changes over the last two years which are designed to piss me off? ![]()
Or is it my new laptop which urges me to test its ability to fly through windows?
![]()
Attach the .zip file to a post and we will provide advice
I'm sorry UKHelibob,
I'm pretty sure the issue is in my knowledge of opening a Zip.file (which is done with Windows in stead of WinZip), to get it placed in a folder, finding it using the "open" function of IDE and saving it.
It is all me and not the program.
I somehow managed to open the program and to work with it. The program is fine.
It is the basic knowledge of getting a Zip file and use it on a new Windows system.
Like I sayd... It's all me... ![]()
Whatever the issue is it will be easier to provide help if you attach the .zip file to a post here so that it can be examined
I do appriciate that Bob, and I'll keep that in mind.
For now I have other issues to be solved. ![]()
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.