Тёмный

Serial Communication between two Arduino Boards 

Iotguider
Подписаться 1,4 тыс.
Просмотров 179 тыс.
50% 1

Опубликовано:

 

13 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 63   
@alireza0994
@alireza0994 Год назад
Bro you don't know how many hours I'm attending to do this and it doesn't worked. With your video I fixed it and now I can send a huge json fron node mcu to arduino uno . Big thanks brother❤❤❤❤❤
@oleksandr_ivankiv
@oleksandr_ivankiv 3 года назад
For Arduino Leonardo must use "Serial1" port for TX/RT, and "Serial" port for println() function.
@skylerjohnson9089
@skylerjohnson9089 5 лет назад
exactly what i was looking for!
@nahomghebremichael1956
@nahomghebremichael1956 5 лет назад
Sir can you show as how to transmit an analog signal serially between two Arduino using xbee s2c. Thank you
@alejo3157
@alejo3157 5 лет назад
¡muchas gracias saludos desde Colombia!
@ebk_72
@ebk_72 4 года назад
Can I send more than one value from the sender to the receiver? Let's say I want the receiver to send the value of the water level and the temperature to the slave arduino so it can control the heating and motor. It would be simple for the master to just send a "confirmation text" using an if else statement and if the conditions match send a single value to "give order" to the slave arduino. But out of curiosity is there a way that I can send the two values from the master to the slave and let it operate the conditions?
@troyyanda6896
@troyyanda6896 2 года назад
Can this be used to send analog information from one arduino to another, for instance, an analog read of a joystick?
@ahmedabdelhamid3474
@ahmedabdelhamid3474 Год назад
Did u find a solution??
@reincwan
@reincwan Год назад
Why you use pin GND if the serial communication just need the TX pin and RX pin.. I'm curious about the use of the GND pin there
@baseladams280
@baseladams280 5 лет назад
This my solution to send strings from Arduino to the next one: Sender code: String str = "This is my string and Basel is Cool :)"; int str_len = str.length() + 1; void setup() { // Begin the Serial at 9600 Baud Serial.begin(115200); // Prepare the character array (the buffer) char char_array[str_len]; str.toCharArray(char_array, str_len); Serial.write(char_array, str_len); //Write the serial data } void loop() { } Receiver code: char mystr[50]; //Initialized variable to store recieved data void setup() { // Begin the Serial at 9600 Baud Serial1.begin(115200); Serial.begin(115200); } void loop() { //String msg = ""; if(Serial1.available() > 0){ while(Serial1.available() > 0){ Serial1.readBytes(mystr,50); //Read the serial data and store in var } String rec; rec = String(mystr); Serial.println(rec); //Print data on Serial Monitor } }
@kyro6564
@kyro6564 Год назад
will it work without the common ground as well?
@jenishj8136
@jenishj8136 3 года назад
Tq for u r information bro keep it up
@navneetbrar1605
@navneetbrar1605 3 года назад
Sir can send and receive simultaneously at same time with Arduino.
@hendihart5195
@hendihart5195 3 года назад
Thx, this is the one im looking for. Unfortunately ur site cant be open anymore, sad
@3xAudio
@3xAudio 4 года назад
Thanks for sharing, great video. I'm trying to make a sound sculpture using CCTV cameras/speakers and Arduinos communicating with each other if i can get the code right
@nobody2254
@nobody2254 4 года назад
I’ve got a question: when using wired serial communication; will this make other serial communications unavailable? Let say i need an Arduino UNO to Communicate with an Arduino Nano via wired connection; and still need the Arduino Nano (with Bluetooth, Wireless, etc) to communicate with other MicroControllers wirelessly. Is this possible, or the microcontroller will just listen to the wired connection?
@ranahassankhalid6399
@ranahassankhalid6399 5 лет назад
Can we do the same with ethernet shields to communicate between 2 arduinos?
@kierrennoeloribello7709
@kierrennoeloribello7709 3 года назад
Is it possible for a single Arduino to send multiple serial data (from its modules ) to PC?
@Shakespeare1612
@Shakespeare1612 5 лет назад
I am trying to do this with an arduino Nano, as the sender and a pro micro as the receiver. It seems that everything is working except for the inter-arduino communication. I can see the "hellos" coming out of the nano on the serial monitor, I can also see the TX light flashing. I can see the pro-mico able to send data to the serial monitor, if I switch to that com port, for a moment, I put in a test message. But I am still not getting any data coming all of the way through.
@wilksajs
@wilksajs 4 года назад
do you know the answer now? i have the same problem. i can't communicate arduino uno and pro micro by TX, RX
@ParasFtl
@ParasFtl 4 года назад
How to specify a specific rx-tx pair for communication on arduino mega as megas has 4 pairs of rx-tx?
@markmurray6990
@markmurray6990 4 года назад
where are you getting the power for the boards from ?, I notice the USB cable is not the same colour on both boards, are you using a powered hub ?
@KatzenFisch
@KatzenFisch 4 года назад
he has them both plugged in his pc
@glydrfreak
@glydrfreak 5 лет назад
Would this not work between an adafruit feather m0 and an adafruit feather 32u4 for some reason? I copied the code directly, and can not get it to work.
@wilksajs
@wilksajs 4 года назад
do you know the answer now? i have the same problem. i can't communicate arduino uno and pro micro by TX, RX
@JoeEvansSound
@JoeEvansSound 5 лет назад
Great. Nice easy and simple instructions - good job :¬)
@salmanhabib7991
@salmanhabib7991 6 лет назад
thanks a lot bro..
@devilvortex1
@devilvortex1 4 года назад
How fast is the transfer?
@rad8845
@rad8845 4 года назад
how to do simulation of this in proteus
@matijasegrc384
@matijasegrc384 4 года назад
Is this UART or which serial communication protocol?
@mitsos306ify
@mitsos306ify 3 года назад
Hi, this is serial communication
@horticultural_industries
@horticultural_industries 3 года назад
This doesn't work. It says "initializer-string for array of chars is too long" Issue with the char thing
@mischgamertv7260
@mischgamertv7260 3 года назад
Maybe I am a bit too late for the awnser, but the problem is the 'char mystr[5] = "Hello";'. You need to write 'char mystr[6] = "Hello";' or 'char mystr[] = "Hello";', but I would prefer the second one.
@mischgamertv7260
@mischgamertv7260 3 года назад
And at 'Serial.write(mystr,5);' you need to write the right number. For example if you have a Word , that has 9 charakters, then write a 9 (Serial.write(mystr,9);).
@rafeekaita11
@rafeekaita11 3 года назад
@@mischgamertv7260 it’s still saying invalid conversion, I tried both changes
@mischgamertv7260
@mischgamertv7260 3 года назад
@@rafeekaita11 Strange. Try some other numbers. At my code it worked...
@thomasanton9074
@thomasanton9074 5 лет назад
Thank You. This help me verry much!!!!
@chamodkavinda7291
@chamodkavinda7291 5 лет назад
Thanks
@joealki1248
@joealki1248 5 лет назад
Hi , I followed your tutorial and am not seeing any output from my "reciever" board. I have the tx/rx connected as per your diagram and have uploaded 2 seperate uno board with recieve/sender code from your website. From the default serial monitor of arduino I can see the sender sending "hello" but the reciever does not have any data to report through serial monitor. Thanks for any help.
@Iotguider
@Iotguider 5 лет назад
Please connect TX pin of sender Arduino to RX Pin of receiver Arduino. For more details please share your screenshots to iotguider@gmail.com. Thank you.
@achmadmaulana9463
@achmadmaulana9463 5 лет назад
Sir, please help me. What code for transmit data float in arduino to arduino?
@shashanklreddy2654
@shashanklreddy2654 3 года назад
float tempr = 24.65; const char * result = ""; dtostrf(tempr, 6, 2, result); // Leave room for too large numbers! myserial.write(result,8);
@alonsovalls4633
@alonsovalls4633 4 года назад
Hey, how do I make the receiver print it once? Thanks.
@Martin-dw4eo
@Martin-dw4eo 3 года назад
just use a delay() function
@Martin-dw4eo
@Martin-dw4eo 3 года назад
My bad it's Serial.println(). ln means line.
@noname-ot1jc
@noname-ot1jc 3 года назад
I am sure you could not transfer the digits as valubale type )) only ASCII codes of chars.. It is sucks..
@ekdilipkumar
@ekdilipkumar 6 лет назад
How to program and use the pins of the slave..
@Shakespeare1612
@Shakespeare1612 5 лет назад
The slave in this case would be the "sender", so modify the sender code to monitor it's own pins, and then send data back to the "master", or receiver. You can use Serial.println in the Master(receiver) to send data back to the send as well. Both the serial monitor and the slave(sender) are should be hearing everything that is on the serial bus.
@nutzboi
@nutzboi 5 лет назад
@@Shakespeare1612 so this means I can have them both working as master and slave at the same time?
@Shakespeare1612
@Shakespeare1612 5 лет назад
@@nutzboi No, I don't think so, but you can have one master several slaves, and the distinction should not be important because weather master or slave, they should both be able to send or receive data, at least when the master makes the bus available to them. This is all theory however, If you read my other post, I have not been able to get this to work, and I don't know why not.
@fatroberto3012
@fatroberto3012 5 лет назад
This is simple serial communication, there is no master or slave. I think you are confusing it with SPI, in which several Arduinos can be connected to one bus, one master and multiple slaves and the master chooses which slave unit is addressed.
@manuelaguilarrios2993
@manuelaguilarrios2993 5 лет назад
This doesnt work anymore
@MalKediler
@MalKediler 4 года назад
say what? why wouldn't it work anymore
@christoffere425
@christoffere425 3 года назад
A shame that it didn't work. :/
@vincedelima7515
@vincedelima7515 5 лет назад
did not work .
@joealki1248
@joealki1248 5 лет назад
pls contact digivalve@gmail.com shukria
@t.n.1056
@t.n.1056 Год назад
Please be honest to us: where Have u put in your microphone 😮😮 ?? Please be honest to is 👎👎
@you-suf2173
@you-suf2173 7 месяцев назад
wtf is your problem with this guy
@gilfoyle46
@gilfoyle46 5 лет назад
Fake accent
Далее
I2C Part 1 - Using 2 Arduinos
25:51
Просмотров 412 тыс.
Using Serial.read() with Arduino | Part 1
10:30
Просмотров 133 тыс.
OG Buda, Слава КПСС - LAZER SLAVA
01:58
Просмотров 121 тыс.
SPI communication between two arduino boards
12:02
Просмотров 23 тыс.
Serial Communication with Arduino - The details!
16:51
6 Horribly Common PCB Design Mistakes
10:40
Просмотров 196 тыс.
Arduino - Send Commands with Serial Communication
17:23
Serial Communication - Arduino UNO and ESP8266 (ESP-01)
11:52
Connect Up To 992 Servos To An Arduino, Using I2C
7:47