0

My PIC-based TV-B-Gone (design attached)
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: My PIC-based TV-B-Gone (design attached)

by coldkeyboard on Fri Aug 02, 2013 3:25 pm

I was able to get my hands on LTE-5208 IR LEDs, in datasheet it says that wavelength is 940nm and forward voltage of 1.2V.

I connected 4 of these with 100ohm resistor to base of NPN transistor on port RC0 (PIN11 of PIC18F2550)

Here is my schematic http://imgur.com/pwRxPWN

coldkeyboard
 
Posts: 8
Joined: Mon Jun 10, 2013 5:09 pm

Re: My PIC-based TV-B-Gone (design attached)

by exapod on Fri Aug 02, 2013 6:32 pm

You have to collect the ir led on the RC2 pin 13 of the pic.
The RC0 is the userled and it is a non infrared led that blinks when the PIC sends a code.

exapod
 
Posts: 15
Joined: Tue Jul 12, 2011 1:58 pm

Re: My PIC-based TV-B-Gone (design attached)

by coldkeyboard on Thu Aug 08, 2013 2:42 pm

Darn, how didn't I notice that :S I feel so stupid about it now.
I will re-wire the PCB and let you know if it works :)

coldkeyboard
 
Posts: 8
Joined: Mon Jun 10, 2013 5:09 pm

Re: My PIC-based TV-B-Gone (design attached)

by coldkeyboard on Thu Aug 15, 2013 6:54 pm

I have re-wired the board now but somehow it still doesn't work or I'm doing something wrong... I've tried it on 3 TVs and nothing.
Can someone with this PIC firmware check how long does it take to transmit all of the codes. Mine does it in about 1min 45sec.
I don't know if my IR LEDs are wrong or they don't get enough current or something else, I'm running out of ides and I'm becoming more and more
desperate to make this work :) Any help is greatly appreciated :)

coldkeyboard
 
Posts: 8
Joined: Mon Jun 10, 2013 5:09 pm

Re: My PIC-based TV-B-Gone (design attached)

by exapod on Sun Aug 18, 2013 12:08 pm

Try the us code on the same television and let me know

exapod
 
Posts: 15
Joined: Tue Jul 12, 2011 1:58 pm

Re: My PIC-based TV-B-Gone (design attached)

by aadz93 on Sun Sep 08, 2013 5:57 pm

exapod wrote:Try the us code on the same television and let me know


hello i've programmed my pic18f2550 with the US codes and have one ir led on pin 13 with a transistor i've tried several times but it will not turn off any tv in my house and the ir led is flashing also i've tried 3 volts to 5 volts to power it but still nothing
aadz93
 
Posts: 1
Joined: Sun Sep 08, 2013 5:51 pm

Re: My PIC-based TV-B-Gone (design attached)

by coldkeyboard on Mon Jan 13, 2014 8:24 pm

Could you please tell me how did you manage to port the code from AVR to XC8?

Specifically I have a problem with struct that has flexible array inside it?

Code: Select all | TOGGLE FULL SIZE
// The structure of compressed code entries
struct IrCode {
  uint8_t timer_val;
  uint8_t numpairs;
  uint8_t bitcompression;
  uint16_t const *times;
  uint8_t codes[];     // <- this line get's me into trouble
};


I have to change it into uint8_t *codes; but then I have to rewrite the whole worldcodes.c file, which looks very very very painfull.

Any ideas on how to do it? Or if you could post the source/example on how did you solve this problem?
Thank you in advance! :)

coldkeyboard
 
Posts: 8
Joined: Mon Jun 10, 2013 5:09 pm

Re: My PIC-based TV-B-Gone (design attached)

by TriakMK on Thu Jun 12, 2014 7:25 pm

Do I need to put oscillator or no?
TriakMK
 
Posts: 1
Joined: Thu Jun 12, 2014 3:29 pm

Re: My PIC-based TV-B-Gone (design attached)

by jxavierpp on Fri Aug 15, 2014 9:25 pm

can i use this mic?
MSP430G2553IN20 i think its better and its free in texas instruments

jxavierpp
 
Posts: 1
Joined: Fri Aug 15, 2014 1:03 am

Please be positive and constructive with your questions and comments.