Recently I was trying to make an remote for my vizio tv. I obtained the power code for vizio which is "20DF10EF" and I send it at 32 bits. For my code I used the IRremote library by shirriff. My schematic includes, a button (I used 10k ohms resistor on it, and connected it to 5v and the ground), an ir led (connected to 3.3v, two 330 ohms parallel resistors which = 165 ohms; using ohms law this means I'm supplying it with 20 milliamps), and an ir receiver.
My problem is that when I use the .sendNEC method, my IR led, doesn't turn on or send any code to the IR receiver. However, when I created a variable for the irled pin (which is always at 3 for this library), and set it to high, it turns on and the IR receiver receives random values. Using my phone's camera I can see the purplish glow of the led.
I have attached a file including my code below. I don't think this is a problem with the schematic as I copied it from a video from Dronebot Workshop. If anyone can help me I'd be very grateful and willing to provide any additional info towards solving this.
vizioRemote2.ino (1.05 KB)
