free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes :: Forums :: Project Development :: Project Help
 
<< Previous thread | Next thread >>
Help need to implement IR communication b/w two microcntroller 89s52
Go to page  [1] 2
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
yasir mahmood abbasi
Tue Jan 29 2008, 12:08AM
 User Offline
Registered Member #185
Joined: Sat Nov 04 2006, 10:35PM

Posts: 2
Thanked 0 times in 0 posts
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.



yasir
Back to top


Ajay
Tue Jan 29 2008, 09:07AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3753
Thanked 696 times in 655 posts
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.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


hyogesh
Tue Feb 12 2008, 12:56PM
 User Offline
Registered Member #5469
Joined: Mon Jan 14 2008, 05:13AM

Posts: 3
Thanked 0 times in 0 posts
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
Back to top


Ajay
Tue Feb 12 2008, 10:39PM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3753
Thanked 696 times in 655 posts
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.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


say2paul
Sun Jul 06 2008, 11:08AM
 User Offline
Registered Member #8461
Joined: Tue Jun 17 2008, 10:56AM

Posts: 123
Thanked 6 times in 6 posts
Ajay wrote ...

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.


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?
Back to top


Ajay
Mon Jul 07 2008, 07:18AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3753
Thanked 696 times in 655 posts
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.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


say2paul
Mon Jul 07 2008, 08:14AM
 User Offline
Registered Member #8461
Joined: Tue Jun 17 2008, 10:56AM

Posts: 123
Thanked 6 times in 6 posts
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?
Back to top


sashijoseph
Mon Jul 07 2008, 08:09PM

 User Offline
Registered Member #5870
Joined: Mon Feb 04 2008, 06:26PM

Posts: 554
Thanked 124 times in 117 posts
You can very well leave the tx pin unconnected...

Let there be music........
Back to top


sashijoseph
Mon Jul 07 2008, 08:14PM

 User Offline
Registered Member #5870
Joined: Mon Feb 04 2008, 06:26PM

Posts: 554
Thanked 124 times in 117 posts
Ajay wrote ...

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.

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.

Let there be music........
Back to top


say2paul
Mon Jul 07 2008, 10:33PM
 User Offline
Registered Member #8461
Joined: Tue Jun 17 2008, 10:56AM

Posts: 123
Thanked 6 times in 6 posts
sashijoseph wrote ...

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.


Dear Sashi, Can you please explain it in detail. I do not have any idea how to invert the bits..?
Back to top


Go to page  [1] 2  

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems