Using the Same Input to Trigger Two Arduinos
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!
****If you like this, I think you'll like the premium Arduino training we offer. You can check it out here**** bit.ly/3lHyzcB
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.
Excellent, this is exactly what I needed. Thank you.
Glad it was helpful!
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. :)
copper101great Awesome - glad it could help!
Always great info.
Thanks!
nice work!
snaprollinpitts Thanks!
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!
Lifesaver.
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.
Ok, thanks.
How can I connect an rfid on this as an input
What's happen a pin 13 and 2, is it connect? and how about 5v?
Interesting video.
TheRogerx3 Thanks!
You're welcome.
It made me think of splitting tasks between pro minis for closed loop CNC, Still thinking though.
Soo the same should work with IR right?
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
you should alter the code of one arduino to work reversely :)
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?
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
@@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.
@@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)
At 5:53 can I put INPUT instead of INPUT_PULLUP? Is it have any differences?
Can this be done on a 3 pin micro switch?
Great question Matthew! Yes, like a limit switch - that would work as well.
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