I've posted the Capture and Send files on Github:
Ok, I tried to upload that code to the uno r3, but unfortunately it doesn't work. It doesn't send anything to the LED (I replaced the Ir Led with a regular one and it didn't flicker). Not sure it you got it to work, but doesn't work for me. Hope it gets figure out, I'm sure making that github code will be useful to people in the future. I'm also going to look into the transistor idea (thanks for the link).
Thanks a lot again for your help man.
My code assumes the LED will be lit up when the GPIO pin is high. It's possible you have it the opposite way. You mentioned connecting to the 5V pin through a resistor. That means you turn on the LED by bringing the GPIO low. If that's right, it may not work correctly. Anyway, the code works on my Nano using a transistor, so I don't know what's wrong.
Also, the code runs as soon as the Arduino is powered up. So you might try hitting the reset button.
And you are using D10, right?
You were right about the GPIO, I switched the circuit and now it works. It's pretty neat you managed to do it without a library.
I basically did it the same way the libraries do with timer1, but I'm only doing raw, and only for the 328P, so it's pretty straightforward. Anyway, I made some small changes, and now have the Rev 1 versions on Github, which I think will be the final versions. I've been wanting to do this for some time, mainly because we keep seeing questions about protocols that can't be identified, or which are identified wrongly. And IRremote just gets more and more complicated.
https://github.com/gbhug5a/SimpleIRRaw
There's a site related to the IRMP library that has detailed descriptions of even the most obscure protocols:
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.