hi..
i have created a 38KHz pulses using the LM555 for the IR transmitter.
Now how can i modulate a serial data from Microcontroller (PIC) to the 38 KHz signal...?
thanks
Why use a 555?, the PIC can easily generate the 39KHz itself, and do a better job of it - check my PIC tutorials for details.
But you can't just use normal serial, the IR link doesn't maintain the pulse widths - you need some kind of coding, such as Manchester, or the SIRC's scheme my tutorial uses.
You simply turn the IR LED ON for 13uS, then OFF for 13uS - this gives you a 38KHz carrier, it's VERY simply to do with a PIC running at 4MHz (just use NOP's for the timing), at 20MHz use a loop.
To modulate all you do is send bursts of 38KHz, or not, simple AM modulation.
Yes that looks OK, it's the transitions that are important, not the actual width of the pulses - it's also an NRZ system, which means it can be AC coupled.
If you want to use Manchester?, you can either combine my IR and RF tutorials, or go to the original site of the Manchester routines, which has IR examples as well.
For receiving it's probably easier to buy an IR receiver module at the carrier frequency you're using, it's a WHOLE lot easier than trying to decode it yourself, and you can feed it directly in a PIC's UART.
For receiving it's probably easier to buy an IR receiver module at the carrier frequency you're using, it's a WHOLE lot easier than trying to decode it yourself, and you can feed it directly in a PIC's UART.
Sorry, but you're talking rubbish, we are already talking about using an IR receiver IC, which provides a logic level demodulated output. You can't just send standard serial information over an IR (or RF) serial link, there are limitations in the path that cause problems. Hence the use of Manchester coding, or similar.
By using VERY low baud rates you can get IR to work as serial, but it's got to be low enough for the varying pulse widths to fall within the RS232 spec (300 baud perhaps?) - but it's not recomended!.
Yes, you still need to code the data - you can buy radio modules with it built-in, but these are more expensive - essentially they have a PIC on-board. RF Solutions even sell pre-programmed PIC's to do it!.