2 Arduino Communication How-To
Loading...
3,561
Loading...
Uploader Comments (kdarrah1234)
see all
Video Responses
see all
All Comments (12)
-
I LOVE YOU!!! THIS IS THE BEST VIDEO I'VE EVER SEEN ON YOUTUBE. KEEP ROCKIN' THE FREE WORLD. YOUR SECRET ADMIRER. <3<3<3<3<3<3
-
Could u possibly help me out, I am building an underwater rov and and I'm using two arduino boards for my control system ( 1 at surface and 1 below 20m in water), I have know Idea on how to have them communicating together, could u possibly help with some code and a schematic of how you should connect them together, thanks
-
Hi great video
-
In our classic fashion, I am going to have to [attempt to] out do you on this ;)
I am going to use 4 Arduinos... And all hardware serial...
3 X Arduino Duemilanove
1 X Arduino MEGA (acting as a "hub" of sorts)
Loading...
Hi , Thank you so much for your explanation .
If I could just bother you about the wiring connection , do both arduinos have common power and ground?
PTProj 1 year ago
@PTProj yep, or you can power the two arduinos from seperate power sources if you wanted to, just make sure you tie the ground pins of each together
kdarrah1234 1 year ago
Thanks A Lot for the Code!! I'm just having somewhat of an issue receiving data from the 2nd arduino for some reason it just dont send it back to the Mega (the main one). Anyway I tried it with an Arduino Duemilanove and Arduino Mega (although I know the Mega has 4 Serial connections I'll try using two of them next time). By any chance would you happen to know how to make two arduinos communicate (rx/tx) with infrared? Thanks!
inciteman 1 year ago
@inciteman hmmm. infared would be cool. I would try to get an emitter and detector, then try using a standard serial port with both of them... just make sure you start out with one way communication. take it one step at a time. let me know how it goes
kdarrah1234 1 year ago
hahaha i had a very big problem yesterday to set the communication between the pc and the arduino. I think that a little delay command would make the thinks easier.
i am sending AXXX "A" is a standart variable and xxx is a three digit number 0 - 255 how can i ready the XXX in one integer variable
thanks a lot
herctrap 1 year ago
@herctrap
good question, you need to combine the values '2' '5' '5' as one number. I have to do this kind of thing all the time. basically, you just subtract 0x30 from each of them, and then multiply them by their multiplier:
number = (val[1]-0x30)*100+(val[2]-0x30)*10+(val[3]-0x30)
where number would equal 255. and val[1]=2 val[2]=5 val[3]=5
kdarrah1234 1 year ago