Need to send a

I have an IR LED. I want to pulse it at 38kHz so I can receive the data with my IR receiver over the serial (TSOP382). I don't want to use any more hardware than what I have and if I could do it straight on the Arduino and not use a library that would be even better!

I don't really understand how to make sure the LED flashes at 38kHz, or how to send signals.

Does anyone have any advice? Thanks!

Sorry, that title should be "Need to send a communication via IR at 38kHz"! D'oh!

I don't really understand how to make sure the LED flashes at 38kHz

One way is to set up one of the timers to generate the signal in the same way as PWM but at 38KHz.

or how to send signals.

What you do is to have a number of pulses at 38KHz and then have a gap when there is no pulses. It is this on off ratio that encodes the data.

See these links:- https://learn.sparkfun.com/tutorials/ir-communication

http://www.pcbheaven.com/userpages/RC_Protocol_and_Modulation/