How to create a 38 Khz pulse with arduino using timer or PWM?

I want to make a robot that dodge opstaculos ...

They can be hard to avoid, I understand.

This thread is two years old. How about starting a new one?