Hello everyone, please forgive my very basic questions. I am currently building an arcade pedestal/control panel and it turns out the Arduino is perfect for what I need. I am looking to have some arcade buttons on the control panel dedicated to tuning tv on/off and volume -/+.However this is my first time looking into this and I am a bit confused as to how I have to go about wiring everything.
I would greatly appreciate it if someone could draw a very simple wiring diagram for me. I will go ahead and explain some details of my project and some parts I am using.
After some research, I believe what I need is:
-Arduino Uno
-IR LED emitter and receiver
-1k resistors
-And I will be using 3 of these standard arcade buttons. 1 on/off, 2 volume -, 3 volume +.
Now the goal is to have the Arduino installed inside the control panel alongside the other keyboard encoders. I plan to mount the LED on the backside wall of the control panel that always faces the TV. Basically all I need to know is how to properly wire the LED with resistor and pushbutton (not sure if needs resistor?). I can figure out how to use the software to gather my tv remote codes after watching some videos but first things first.
Again, thank you for your patience. After doing some googling I have seen so many different wiring diagrams I truly feel lost.
It's not a real schematic but perhaps it is more in line with what you want. I'm not a fan of Fritzing pictures but the circuit is simple enough that this should suffice.
I don't see where you need the IR receiver, only transmitter.
You will need a 220 ohm current limiter for the IR transmitter diode.
You do not need pullup resistors for digital inputs, you just declare your input with "pinMode(x,INPUT_PULLUP)". The input will be LOW when the button is pressed.
Thank you so much. That diagram makes a lot of sense to me because it resembles what I already have to do for the arcade project.
I included the receiver because in one of the pages I found when researching this, the guy suggested you use the receiver to gather the codes directly from the TV's original remote. However I have a question regarding the receivers anyway. Is it possible to use the receiver to work with a Logitech Harmony remote and control apps like Kodi?
One last thing, does it matter where I buy the emitter/receiver/resistors? I found some on Amazon but just want to make sure if this is one of those "you get what you pay for" kind of deals.
Sorry, I missed the reference to the receiver. It is simple to add, three wires to the device. +5, gnd and a digital input. Tons of references on the web.
Capturing from the original tv remote is the way to go, you cannot get anything out of the Harmony remote (as far as I can tell from the documentation) as it is RF, not IR. I'm unfamiliar with Kodi, perhaps others can comment further.
justmariobros:
Thanks man. Any comment on where to buy the parts, if it matters?
eBay, AliExpress, Amazon, and many more online retail platforms are options for components - or specialists like RS, Mouser and Digikey. Which ones are available/economical to you depends on where in the world you live.
Ah, yes, where to buy. If you want to support the maker industry, the answer is simple. Adafruit then Sparkfun in that order. There are some other good US (re)sellers but those two are without a doubt the two big players. Real support and warranties too.
Most of the Amazon (re)sellers are buying from China on eBay or Aliexpress and selling at 200% markups and more. Their only positive is shipping time. Prices are not good, the big two mentioned above are usually close, price wise, depends on the items.
If I'm going to buy China sourced goods, I just go direct to eBay. ePacket to the US is one to two weeks. The good sellers will combine shipping and ship same or next day.
I have found Aliexpress to be hit or miss. Shipping usually slower, prices marginally better but you have to be careful, sellers will list the same item in two different places with different prices.