Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

IR Receiver with microcontroller

Status
Not open for further replies.

RollingEEE

Full Member level 3
Joined
Mar 25, 2006
Messages
165
Helped
8
Reputation
16
Reaction score
7
Trophy points
1,298
Location
Bangladesh
Activity points
2,406
generator 38khz to microcontroller

I am working on a project to transmit data from PC to a microcontroller. I wrote my own protocol for transmission (A variation of PWM) But I can't get the IR receiver work. I have a 3 pin receiver. It is written on it 6038. It seems that it means the Receiver will work with 38 kHz carrier signal. I used a nice function generator on our lab to transmit 38kHz infrared. I connected a LED with 10k resistor to the output pin to see the output. When the freq varying knob is rotated past 38kHz, the LED lights up for, say 0.5 sec and then it goes down. If I send a very low freq square wave, say 300 Hz, the LED lights up dimly. Later I found out when any change of the IR is done (like putting your hand infront of the receiver), a pulse train is created that lasts about 0.5 sec, has 10% duty cycle. Is it a malfunction of the device, or am I doing it wrong?

My IR receiver is black, has a half sphere in front of it, and no metal casing. I connected a 100R resistor and 4.7uF capacitor to form a low pass filter to block the noise of the microcontroller too.

Please help me out.
 

ir with a microcontroller

you need to data modulate the 38khz carrier frequency for your IR to work, another requirement also is DC balanced transmission, search about RC5 protocol it is easy to learn
 

    RollingEEE

    Points: 2
    Helpful Answer Positive Rating
ir receiver times out

That means the receiver will block out the 38kHz continuous wave? RC5 uses bi phase manchester, that is too complecated. I wanted to use PWM. 2ms pulse = transmission start, 1ms pulse = 1, 0.5ms pulse = 0. Can I do that?
 

ir pulse receiver

data modulation of the 38 khz carrier frequency is similar to that of OOK (on off keying) but need to be dc balanced, about pwm check your IR receiver datasheet, there's a requirement for maximum pulse width, the one i used has a maximum of 600us pulse width which means a 1ms pulse will not work
 

    RollingEEE

    Points: 2
    Helpful Answer Positive Rating
ok, i'll try OOK. Now tell me, why a suddent interrupt in the 38kHz wave causes a spike train for 0.5sec? And also, why a 300Hz wave causes a continuous pulse train

Added after 5 minutes:

what is digital balancing?
 

i want a circuit for ir receiver with transmitter on 89c51.
 

hmm, there is time out for your receiver module, it wont give continues low if continues 38khz modulated IR light is there. check datasheet of part which you are using or TSOP1738 etc.
 

    RollingEEE

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top