rohit_sane
Newbie level 2
Hello!
I am trying to build a small IR remote control module. It has 8 keys, attached to port b of PIC16F886. Same controller used to receiver IR data and display it into binary for bcd to 7seg display.
I have written whole code for PIC in CCS C. Code simulates perfect in MPLAB. I have a few questions.
1) I read on some website that I should not send continuous pulse train of 38k for more than 70 cycles. and I must pause for at least 14 cycles and then send the train again. Is it correct? I am using 555 astable for 38k generation(with diode to r2 so 50% duty cycle approx) and my mcu operated reset input to enable and disable 555.
2) Is there any limit on the minimum width of high and low of modulating signal(reset input operated by mcu which will define my envelope.)? Right now I am using 500us for each bit. My format is :
High * 1000us
Low * 500us
High * 500us
3-bits each of * 500us.
and then if button is still pressed, steady wave of 500us low and 500 us high until button is released.
Is this ok or what changes do I need to make to make it work?
3) I am not using any existing format or any encoder decoder ICs so I have a liberty to choose my own format so that’s what I did.
I could not get output directly from my ir detector and I am using the one locally available so neither me nor the guy who sold it knows anything about its model number. Therefore I am using LM358 as comparator to get clean digital output to be fed to my mcu. It seems to be working but I still could not get my mcu to decode it. Is LM358 capable of handling frequency of my envelope or is there any other problem? What I mean is can it switch at these speeds from high to low and vice versa?
Please help I need to finish this as quickly as possible. All the tools I have are components, programmer, breadboard and multimeter. And after I make it work and attaching this to my pc through usb so I also need to sleep with that literature later. Thanks in advance.
I am trying to build a small IR remote control module. It has 8 keys, attached to port b of PIC16F886. Same controller used to receiver IR data and display it into binary for bcd to 7seg display.
I have written whole code for PIC in CCS C. Code simulates perfect in MPLAB. I have a few questions.
1) I read on some website that I should not send continuous pulse train of 38k for more than 70 cycles. and I must pause for at least 14 cycles and then send the train again. Is it correct? I am using 555 astable for 38k generation(with diode to r2 so 50% duty cycle approx) and my mcu operated reset input to enable and disable 555.
2) Is there any limit on the minimum width of high and low of modulating signal(reset input operated by mcu which will define my envelope.)? Right now I am using 500us for each bit. My format is :
High * 1000us
Low * 500us
High * 500us
3-bits each of * 500us.
and then if button is still pressed, steady wave of 500us low and 500 us high until button is released.
Is this ok or what changes do I need to make to make it work?
3) I am not using any existing format or any encoder decoder ICs so I have a liberty to choose my own format so that’s what I did.
I could not get output directly from my ir detector and I am using the one locally available so neither me nor the guy who sold it knows anything about its model number. Therefore I am using LM358 as comparator to get clean digital output to be fed to my mcu. It seems to be working but I still could not get my mcu to decode it. Is LM358 capable of handling frequency of my envelope or is there any other problem? What I mean is can it switch at these speeds from high to low and vice versa?
Please help I need to finish this as quickly as possible. All the tools I have are components, programmer, breadboard and multimeter. And after I make it work and attaching this to my pc through usb so I also need to sleep with that literature later. Thanks in advance.