Here's my problem. I am working on a project where I have 3 arduinos that communicate with each other over the serial tx/rx pins. The program I have written to them works totally fine when I have them plugged in to the usb ports on my pc, but when I use the power adapters to power them, the serial communication stops working. Is there any solution to this? I know this is a beginner problem but I could not find the solution anywhere online. I think USB has serial stuff and I'm guessing a regular power adapter doesn't. Any help is greatly appreciated. Thank you!
Hi.
Read my sign off message on the bottom of any of my messages.
So did you connect the GND's of all parts of your setup ?
And how are you going to make 3 units communicate to each other in a serial setup ?
You know that you are supposed to connect TX to RX of the other unit, right ?
It is possible to make this work, but that would mean some smart handling of those serial communications.
Please explain a bit more about your setup.
MAS3:
So did you connect the GND's of all parts of your setup ?
When you say that, do you mean hook up the grounds for each of the arduinos together or do you just mean to use a common ground? Idk but no I don't think I did. I have them all hooked up to this "power cube" though. (I think it's like a power strip, you can google it).
MAS3:
And how are you going to make 3 units communicate to each other in a serial setup ?
I basically just have one arduino sending a serial signal of either '1' or '2' through the tx pin which is hooked up to the rx pins on the other 2 arduinos. When '1' is received by one of the arduinos, I have it programmed to run something. when '2' is received by the other arduino, it runs something.
MAS3:
You know that you are supposed to connect TX to RX of the other unit, right ?
yes I know. Keep in mind, this worked when they were all hooked up to the usb ports on my pc, but not when I have them powered up through the power adapter.
SlinkyMation:
...you can google it...
You do understand that it is you who is asking for help, right ?
So why do you think someone willing to help you needs to go and use all kinds of tools to find out what you might be using ?
You need to provide as much as possible relevant information in order to get to the point answers, not tell helpers to use google.
Are you using these things ?
And are you using the USB outlet, or are you using the an adapter plugged in those power sockets ?
Yes, you need to connect all grounds of all Arduinos, and that of any other devices connected to the Arduinos.
The RX and TX signals may be called 2 wire signals, but next to those 2 wires yopu n eed a reference signal.
That reference is GND.
So all parts are comparing signals to GND.
If GND is missing, signals will not be conveyed.
Yes I am using those things, except it is the us version, like this:

I have an adapter for each arduino plugged into those power sockets. I will try hooking up the grounds. thanks for the help!
I hope you understand why it is important to do that.
USB connectors also have 2 power wires incorporated, so that means that GND will have a common through the PC you are connecting it to.
That's why it will work at that moment.
thank you so much man. i have it working now!