Help need to implement IR communication b/w two microcntroller 89s52
Discussion in "Project Help" started by yasir mahmood abbasi Jan 29, 2008.
Tue Jan 29 2008, 01:38 pm
i need circuit and configuration code to implement IR sensor led communication b/w microcontroller
and tell me frequency
baud rate,
how to interface it.
and tell me frequency
baud rate,
how to interface it.
Tue Jan 29 2008, 10:37 pm
IR sender: IR LED
IR Receiver: TSOP1738
IR Frequency: 38Khz
Baudrate: 1200bps (for good communication)
Please make use of NE555 in astable multivibrator configuration for 38Khz square wave and 50% duty cycle. Connect the o/p of 8051's UART to RST pin of NE55.
IR Receiver: TSOP1738
IR Frequency: 38Khz
Baudrate: 1200bps (for good communication)
Please make use of NE555 in astable multivibrator configuration for 38Khz square wave and 50% duty cycle. Connect the o/p of 8051's UART to RST pin of NE55.
Wed Feb 13 2008, 02:26 am
On the sender side I connected the IR LED & transmitted the data on 1200bbs & on the Receiver side I collected the data using the IR detector at 1200bps, but communication is not establishing between to 8051 controllers???
The ckt explained above (IR Sender has how much baud rate & how u have connected the TSOP at the receiver side?) Can u give me the ckt diagram for the same & some help on it....
Thanks
The ckt explained above (IR Sender has how much baud rate & how u have connected the TSOP at the receiver side?) Can u give me the ckt diagram for the same & some help on it....
Thanks
Wed Feb 13 2008, 12:09 pm
TSOP understands only PCM waveform so you need a 38Khz carrier wave for transmitting your data.
TSOP is directly connected to 8051's RX pin but after you receive the data you need to complement it.
TSOP is directly connected to 8051's RX pin but after you receive the data you need to complement it.
Sun Jul 06 2008, 11:38 pm
TSOP understands only PCM waveform so you need a 38Khz carrier wave for transmitting your data.
TSOP is directly connected to 8051's RX pin but after you receive the data you need to complement it.Ajay
You mean to receive data from an IR transmitter (mobile phone/remote), TSOP's data pin can be directly connected to the RX pin of the 8051 micro Controller??
If yes, can I use the same code to scan the data that I am using while serial connection of 8051 with Hyper Terminal?
Mon Jul 07 2008, 07:48 pm
well serial port can be only 1-1 connection. you cant use the same port for receiving and sending with two peripherals.
rather.. if you use only rx pin of controller for IR reception then tx can be connected to PC like simplex communication.
rather.. if you use only rx pin of controller for IR reception then tx can be connected to PC like simplex communication.
Mon Jul 07 2008, 08:44 pm
you mean I have to connect the tx pin to a pc? Can't I leave the tx pin free?
Or if i has to connect in anycase, can I connect it directly to an IR led?
Or if i has to connect in anycase, can I connect it directly to an IR led?
Tue Jul 08 2008, 08:44 am
TSOP understands only PCM waveform so you need a 38Khz carrier wave for transmitting your data.
TSOP is directly connected to 8051's RX pin but after you receive the data you need to complement it.Ajay
think you would have to invert the bits before it gets to the rx pin,else with the start and stop bits of the frame inverted,the controller will not be able to make out the serial frame.
Tue Jul 08 2008, 11:03 am
think you would have to invert the bits before it gets to the rx pin,else with the start and stop bits of the frame inverted,the controller will not be able to make out the serial frame.sashijoseph
Dear Sashi, Can you please explain it in detail. I do not have any idea how to invert the bits..?
Powered by e107 Forum System