Discussion in "8051 Discussion Forum" started by    say2paul    Jul 6, 2008.
Sun Jul 06 2008, 12:02 am
#1
Well, finally I can now send and receive data between Hyper Terminal and 8051 using RS232. Also I can now display the data (string) I receive from Hyper Terminal to the LCD attached to the 8051.

I want to send the same data (string) from the Mobile phone to the 8051 using IR (SIR). I implemented IrSIR in Symbian Mobile phone and somehow managed to send and receive data between two mobile phones.

Please guide me on how to send the IrSIR data from mobile phone to the 8051?

Can I directly connect TSOP 1738 to the 8051 RX pin to receive data? Or can anyone please help me on the circuit for the same.
Sun Jul 06 2008, 12:47 am
#2
This is an IR modulated UART example for a PIC but iit might give you an idea.
http://www.digital-diy.net/18F%20Examples/IR%20Modulated%20UART.aspx


[ Edited Sun Jul 06 2008, 12:52 am ]
Sun Jul 06 2008, 08:46 pm
#3
Thanks a lot Colin, but sorry I do not have knowledge about PICs.

Can you or someone else help me on 8051 (AT89C51) with TSOP 1738, so that I can replace the RS232 cable of my PC with TSOP 1738 and send data from mobile instead of Hyper Terminal.
Mon Jul 07 2008, 09:04 pm
#4
Paul as i said.. you need a carrier of 38khz + data thats all..

in that PIC project, he used single pin for sending data + generating PWM signal of 38Khz (carrier).

so you can do with little hardware as i told...

here are the steps..

1. generate 38khz square wave on any 8051 pin.
2. and the tx pin + square wave o/p pin to get the modulated data.

transmitter is ready

for receiver:
connect TSOP1738 to rx pin of controller.
receiver is ready
Mon Jul 07 2008, 09:12 pm
#5
Thanks Ajay, right now I just need receiver. I have a doubt and that is do I need to connect tx pin to a PC or something else OR can I leave tx pin free when I am receiving data from TSOP using rx pin of uController.
Mon Jul 07 2008, 09:23 pm
#6
I thought you are online and can help me on this now so that I can try and implement it tonight...
Mon Jul 07 2008, 09:34 pm
#7
you can make use of tx pin with PC as you are not using it for IR purpose.

you read the data from IR save it and send it to PC via ur TX pin. so you can debug side by side..

I am leaving now too late.. still in office.
Mon Jul 07 2008, 09:43 pm
#8
mmm... you mean its not necessary but I can make use of tx pin.

Thanks Ajay!
Tue Jul 08 2008, 08:35 am
#9

hello ajay,

2. and the tx pin + square wave o/p pin to get the modulated data.



does this work ?

normally we use 555 to generate 38Khz carrier and modulate RST pin with Tx


Arun
Tue Jul 08 2008, 09:21 am
#10
^It's the same thing....Ajay meant ANDing the tx pin with a square wave carrier,be it from a 555 or a pwm pin of the micro....

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

MichaelGot
Tue May 14 2024, 04:08 pm
FrankTrelm
Tue May 14 2024, 10:39 am
BillyTum
Tue May 14 2024, 09:08 am
Loganbag
Tue May 14 2024, 04:05 am
MichaelMog
Tue May 14 2024, 03:58 am
ThomasGaxaW
Mon May 13 2024, 05:33 pm
RobertInfup
Mon May 13 2024, 04:28 pm
Joshuatem
Mon May 13 2024, 08:30 am