| Author |
Message |
wolfheart_2001
Joined: 17 Mar 2005 Posts: 92 Helped: 9
|
05 Apr 2005 21:02 how to interface ir reciever to my mcu |
|
|
|
|
hi,
how do i interface an IR reciever to my microcontroller?do i need any conditioning stages?
what am i supposed to do when i only have IR recievers without any numbering on it,how can i know its operating characteristics?
how much current should i give to the IR led to transmit the signal for the largest range?
i know all the coding of the RC5 protocol and i know how the reciever works but i dont have answers for the above questions.
waiting your experience.
thanx
|
|
| Back to top |
|
 |
hm_fa_da
Joined: 16 Sep 2003 Posts: 193 Helped: 6
|
05 Apr 2005 21:31 555 38kh |
|
|
|
|
hi ;
if you are using 38Kh transceiving mode , then you can connect your IR receiver directly to MCU , and you should use fast voltage giving to IR-transmitter LED for making 38Kh with almost high current ( about 100mA ) for example in arder to make a 38Kh frequency , you should make 26uS pulse width,13uS low and 13uS high , but you can give 3uS high ( LED on ) and 23uS low ( LED off ) ,
the best way is to connect a transistor to output of your transmitter MCU and do not use any resistor ( or a low resistor ) for transmitter LED .then you'l get the maximum range .
this datasheet also maybe useful for you .it's for IR receiver.
regards.
attachment removed, do not upload files that are available at the net!!
http://alldatasheet.com/datasheet-pdf/view/ETC/PIC-2058SMB.html
C-Man
|
|
| Back to top |
|
 |
xmli1976
Joined: 03 Nov 2004 Posts: 109 Helped: 3
|
05 Apr 2005 21:48 ir receiver with mcu |
|
|
|
|
| Quote: |
how do i interface an IR reciever to my microcontroller?do i need any conditioning stages?
what am i supposed to do when i only have IR recievers without any numbering on it,how can i know its operating characteristics?
how much current should i give to the IR led to transmit the signal for the largest range?
i know all the coding of the RC5 protocol and i know how the reciever works but i dont have answers for the above questions. |
Usually,If your IR rciever have modulated signals ,then there are decoder between uc and IR reciever.But I doubt your IR reciever has't modulated the signals,because it have not nay numbering on it,such as 1838 means it work at 83khz.So this kind of IR reciever have to modulate the signal first.There are many tutor about this kind of IR reciever,so you can search google for this kind of information such as this kind of IR reciever's categorization and difference of functons of pins and how to connect them.
|
|
| Back to top |
|
 |
Google AdSense

|
05 Apr 2005 21:48 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
Picstudent
Joined: 05 May 2004 Posts: 536 Helped: 13 Location: India
|
06 Apr 2005 7:00 mcu ir transmitter |
|
|
|
|
hai
At least you can start with the assumption that the receiver you have is a Commonly available 38khz IR receiver.
3 Pins for that .VCC VSS and OUT.
give supply rails ,connect the out pin to a pin (Preferably an interrupt pin) of the controller,set that pin as a input pin for the controller.
Wire a 555 in astable mode with 38 khz frequency and connect the out put pin 3 to a pair of IR leds. Modulate this 38khz IR beam with your RC5 or any custom code through pin 4 of 555.(using another micro).Steady IR beam will be rejected by IR receiver.So small bursts have to be sent.
Write a small programe in receiver micro to read the time of coming IR beam bursts and send it to a PC serial port .
Then you get the idea. If the receiver range is very low change the frequency of 555 astable to increase range and find the IR receiver frequency!
may be a crude and lengthy idea! (This is how I worked)
Picstudent
|
|
| Back to top |
|
 |