Hello! I made a project, but Uno’s pins have ended. I wanted to add a Nano and make it communicate with each other via UART, but unsuccessfully. What is wrong?
Codes are here.
receive.xodball (3.1 KB)
transmitt.xodball (4.8 KB)
For a start, you haven’t called “begin” on the UART at boot. This gets the ball rolling.
Do i need to begin it on both Arduinos?
So?
receive.xodball (3.5 KB)
transmitt.xodball (4.2 KB)
Look at this, @nkrkv is about to write a guide on this. Maybe you can help each other.
Yes. It sets the baud rate for communication. Serial comms won’t work without that being correct.
Can i use I2C if i couldn’t make a connections?
UART guide article is coming next week. The author is not me, but nevertheless, it will shine the light on serial communication I hope.
Why don’t you make a simple transmitter using the arduino IDE, from an example or similar. Something you know works.? Then use XOD to make a simple patch that listens for received bytes. This would be to establish you can make at least a connection (You may have a damaged board or something).
One thing I noticed when I was playing around with the uart library is that in the soft-uart patch code, when the SoftwareUart class is instantiated, the call to the software serial has the tx and rx parameters reversed. It should be _serial(tx, rx).
I have noticed, that my board have a problem reading ds18b20…
About Arduino IDE, I just wanted to do it in XOD, but I will try.
How about I2C? Is it only for sensors or displays, ets? Can I do a “phone” for arduino using it?
I’m only suggesting the Arduino IDE as part of the problem-solving process. At this stage, you don’t know if your client code, your server code, the XOD IDE code, or the hardware itself which is the issue. So best to eliminate as many variables as you can.
I haven’t used I2C for comm devices, so can’t help there. I’m currently using an HC-12 with the UART library.
I am testing now with Ide and i understood that i did not connected grounds together…
I am idiot
All work with softwareserial library
will try in xod with ground:)
I can’t do it…
receiving Arduino just don’t switch 13 led off from starting…
but also i will try I2C
Mistakes are how you learn. The more mistakes the more you learn.
i have tried in XOD, but unsuccessful…
What is the arduino code and what is the XOD patch you tried?
Hi @nkrkv,
any news on the UART guide?
Best
Tobias
Ah, sorry, it is late because we were too busy preparing the new release. We’ll return to the guide in the nearest days. @gabbapeople already have a working prototype and an almost ready article content.
@nkrkv working prototype? Sounds good