Dr_Doggy
Well-Known Member
I am trying to substitute my tv remote with a pic, so far i got the LED's wired to the pin out, all i need to copy is the power button though( I want it to be universal for all tv's if i can)
I am also pulsing the 40khz signal with the pic too(12f510), is this ok?
also i am running of the internal clock(2MHz), during a test though when i want it to wait 1uS I am noticing that the timing is a little off, is that normal, is it the internal clock inaccuracy or maybe my scope.?
To trace the original signal I used my pic886 with an IR sensor on pinC4 and this code....(IRreader886)
then recorded the on/off time to which i got 7 pulses(since it is inverted, first pulse is LEDon, but C4 is off on detector)
(off , on)
25ms7ms, 1ms1ms, 1ms,1ms, 5ms,0ms 5ms,12ms 0ms1ms, 5ms1ms,
does that seem right(6bits for remote code)?
How can i get the pic to rip the code proper then repeat it?
I am also pulsing the 40khz signal with the pic too(12f510), is this ok?
also i am running of the internal clock(2MHz), during a test though when i want it to wait 1uS I am noticing that the timing is a little off, is that normal, is it the internal clock inaccuracy or maybe my scope.?
To trace the original signal I used my pic886 with an IR sensor on pinC4 and this code....(IRreader886)
then recorded the on/off time to which i got 7 pulses(since it is inverted, first pulse is LEDon, but C4 is off on detector)
(off , on)
25ms7ms, 1ms1ms, 1ms,1ms, 5ms,0ms 5ms,12ms 0ms1ms, 5ms1ms,
does that seem right(6bits for remote code)?
How can i get the pic to rip the code proper then repeat it?