Using the Same Input to Trigger Two Arduinos

Sdílet
Vložit
  • čas přidán 25. 05. 2015
  • 🤩 FREE Arduino Crash Course 👇👇
    bit.ly/get_Arduino_skills
    **If you like this, I think you'll like the premium Arduino training we offer. Check it out here** bit.ly/3nSBPUs
    Click Below to Read About This Topic on Our Website
    programmingelectronics.com/us...
    Description:
    If you ever have a project using two or more Arduinos, it's likely you'll want them to work together.
    Say for example you have one Arduino connected to an LCD shield, and another Arduino controlling an LED matrix. You want both to do something when you press a single button - how can this be done?
    It turns out to be extremely easy. This video will describe in detail how to trigger multiple Arduinos with a single input.
    About Us:
    This Arduino tutorial was created by _pea. We are an education company who seek to help people learn about electronics and programming through the ubiquitous Arduino development board.
    Have an awesome day!

Komentáře • 30

  • @programmingelectronics
    @programmingelectronics  Před 3 lety +2

    ****If you like this, I think you'll like the premium Arduino training we offer. You can check it out here**** bit.ly/3lHyzcB

  • @tomgray971
    @tomgray971 Před 5 lety +5

    As a former teacher, I appreciate the educational quality of the video. However, the initial issue was to do something DIFFERENT with each Arduino (the examples were LCD screen and LED array). This is probably as simple as different sketch on each...and I wish your video had taken that next step.

  • @frankforrester42
    @frankforrester42 Před 2 lety +1

    Excellent, this is exactly what I needed. Thank you.

  • @Copper101greatBlogspot101vblog

    Great video. You know it's funny that you made this video. I was going to look up how to do this the other night but I didn't get around to it. Now I don't have to. :)

  • @NMrick505
    @NMrick505 Před 9 lety +1

    Always great info.

  • @snaprollinpitts
    @snaprollinpitts Před 9 lety +1

    nice work!

  • @chadwickjones2824
    @chadwickjones2824 Před rokem

    Great tutorial! Very useful and user-friendly! Do you have a video on using one Arduino with one input to run two separate programs individually and not sequentially? I am struggling a bit with researching exactly what I need for an "IF / AND" (does it exist?)
    Any guidance and/or direction would be greatly appreciated!

  • @danishbansal3168
    @danishbansal3168 Před 5 lety

    Lifesaver.

  • @KW-ei3pi
    @KW-ei3pi Před 4 měsíci

    Awesome! Can we take this a step further by eliminating the switch and the LED on the left Arduino, connect pins 2 directly, have code in the left Arduino turn pin 2 LOW (or HIGH) causing pin 2 on the right Arduino see LOW (or HIGH) causing its code to turn on the LED connected to it's pin 13? So pin 2 on the left Arduino would be and OUTPUT pin, and pin 2 on the right Arduino would be and INPUT pin. Please let me know as I have an Arduino that I need to read a pin on a second Arduino. Thanks! Regards.

  • @CN-kc3em
    @CN-kc3em Před 5 lety

    Ok, thanks.

  • @aisonjamesbrinquez8056
    @aisonjamesbrinquez8056 Před 3 měsíci

    How can I connect an rfid on this as an input

  • @CN-kc3em
    @CN-kc3em Před 5 lety

    What's happen a pin 13 and 2, is it connect? and how about 5v?

  • @TheRogerx3
    @TheRogerx3 Před 9 lety +3

    Interesting video.

    • @programmingelectronics
      @programmingelectronics  Před 9 lety

      TheRogerx3 Thanks!

    • @TheRogerx3
      @TheRogerx3 Před 9 lety

      You're welcome.
      It made me think of splitting tasks between pro minis for closed loop CNC, Still thinking though.

  • @sschannel4550
    @sschannel4550 Před 6 lety

    Soo the same should work with IR right?

  • @sb-rj6yb
    @sb-rj6yb Před 7 lety +1

    what if i want to off the led of one arduino and ON the led of the other..?
    I just want to operate both arduinos in reverse manner...if one is working other should be off

    • @MrNemhiszemel
      @MrNemhiszemel Před 6 lety

      you should alter the code of one arduino to work reversely :)

  • @slighter
    @slighter Před 2 lety +1

    That's cool. But why do you need Input_Pullup here? Wouldn't it be suffice if the input was just high? As in 5v can be read on the pin when the button is pressed? Why the reverse?

    • @programmingelectronics
      @programmingelectronics  Před 2 lety

      Great question! For this, we are setting the *mode* as an INPUT_PULLUP, because when we are not pressing the button, we want the pin to read a high voltage. This video we made might help explain why we use the pull up: czcams.com/video/G_i1ZhadTa0/video.html

    • @slighter
      @slighter Před 2 lety +1

      @@programmingelectronics I see. But could the same effect not also be reached by using a pull-down resistor? After all, the aim is to make the input pin read a stable high or low and not flicker around. So just connecting a pull-down resistor to ground might make that possible, providing the button is wired so that a button press makes the pin read the 5v. In summary, a reverse setup to yours.

    • @programmingelectronics
      @programmingelectronics  Před 2 lety

      @@slighter You're right - you could use a pull-up or a pull-down resistor - depending on how you want the signal to read when the button is pressed. I went for the pull-up because you don't need any extra hardware (i.e. a resistor)

  • @markle3303
    @markle3303 Před rokem

    At 5:53 can I put INPUT instead of INPUT_PULLUP? Is it have any differences?

  • @matthewpaulino4739
    @matthewpaulino4739 Před 2 lety +1

    Can this be done on a 3 pin micro switch?

  • @joesmith9330
    @joesmith9330 Před 7 lety

    SERIUSLY THAT WON'T WORK U MISSED HOOKING THE POS BATTERY UP U ONLY HOOKED UP THE POS TO THE SWITCH BUT NOT THE UNOS