Having hard time trying to find any instructions that i can understand on how to hook up an IR transmitter to turn on my playfield tv. I dont want to wire to the tv just want to use the IRremote function. The build guide is unfinished and doesn't say much of nothing about how to wire it. I did however find something on https://os.mbed.com/...RTransmitter.h/... But not sure how to do what is mentioned. To be honest i dont know what the diagram is showing. I do have an IR LED that i can use. Also how do i get the hex code for my tv's on button? Thanks in advance
// How to wire an IR emitter // // Any IR LED should work as the emitter. I used a Vishay TSAL6400 for my // reference/testing implementation. The TSAL6400 is quite bright, so it // should send signals well across fairly large distances. // // WARNING! DON'T connect the LED directly to the GPIO pin. KL25Z GPIO // pins have very low current limits - a typical IR emitter LED draws // enough current to damage or destroy the KL25Z. You'll need to build a // simple transistor circuit to interface with the LED. You'll need a // common small signal NPN transistor (such as a 2222 or 2N4401), a 2.2K // resistor, the IR LED, of course, and a current-limiting resistor for // the LED. Choose the current-limiting resistor by plugging your LED's // specs into an LED resistor calculator, using a 5V supply voltage. Now // connect the GPIO pin to the current-limiting resistor, connect the // resistor to the LED anode (+), connect the LED cathode (-) to the NPN // collector, connect the NPN emitter to ground, connect the NPN base to // the 2.2K resistor, and connect the 2.2K resistor to the GPIO pin. // It's simple enough for a schematic rendered in ASCII art: // // +5V (from the KL25Z +5V pin, or directly from // | the KL25Z's power supply) // < // > R1 - use an LED resistor calculator to choose // < the resistor size based on your selected // | LED's forward current & voltage and 5V source // --- + // \ / LED - Infrared emitter (e.g., Vishay TSAL6400) // --- - // | // | // \| 2.2K // |-----/\/\/\---> to this GPIO pin // /| // v // | // ----- // --- Ground (KL25Z GND pin, or ground on the // - KL25Z's power supply)




Top













are all trademarks of VPFORUMS.