2 Arduino Communication How-To

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,561
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 5, 2010

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (kdarrah1234)

  • 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 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

  • 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 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

  • 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

    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

see all

All Comments (12)

Sign In or Sign Up now to post a comment!
  • 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...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more