electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

interface an IR sensor to the MCU


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> interface an IR sensor to the MCU
Author Message
wolfheart_2001



Joined: 17 Mar 2005
Posts: 92
Helped: 9


Post05 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


Post05 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


Post05 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
Google Adsense




Post05 Apr 2005 21:48   

Ads




Back to top
Picstudent



Joined: 05 May 2004
Posts: 536
Helped: 13
Location: India


Post06 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
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> interface an IR sensor to the MCU
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
How to interface a sensor to the 8051? (3)
motion sensor to mcu (17)
LDR Sensor to mcu (9)
interfacing a MCU dev. kit to a smd magnetic sensor (1)
51 mcu bus to FPGA interface (2)
ps/2 keyboard interface with mcu (12)
interface MCU by Ethernet with PC (3)
MAX3372 pble : 5v <> 3.3v MCU bidirectional interface (2)
Pt 1000 + Pic MCU + LCD interface. (3)
How Can I interface MCU with Modem (2)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS