This is more of a generic question then AVR specific, hence the post here.
I want to generate a 38KHz carrier wave to transmit via IR, real basic, but I haven't done this before. After googling and reading up on this, I came up with this basic idea;
I have the pin at PB0 switch on/off at 38Khz using a timer and use the pin at PB1 to actually set 1 or 0 depending on what I want to transmit. I use two transistors and a simple IR led, the led will then either be off if the PB1 is at 0, or flash at 38Khz when PB1 is high. I can then switch PB1 to be high or low for a fixed duration.
Is this a logical approach to take, or should I do something else?