PIC IR remote

Friday, October 14th, 2005

Here’s the info on how to control a SONY TV. (caveat you may need to do some debugging.)

You need a 555 timer to generate the 40 Khz for you.
Your pic just turns on or off the 555 to transmit the appropriate data.

Circuit link.

SIRC codes explained.

SIRC code data format

My PICBasicPro code to implement this protocol.

Update:

Found a simpler solution. Use this IC from rentron. It will generate either a 40 or 38KHz carrier frequency for you. Use the PIC program above and connect the PIC pin to DATA IN of this IC. You need a 4Mhz clock, some pullup/down resistors, and the circuit to drive your IR LED…that’s it!

Getting warmed up with WordPress

Wednesday, October 12th, 2005

OK. I’m finally going to start blogging. I’m just going through the initial preparation phases and am configuring the environment. I’m going to try to use the Textile plugin for quick and easy text markup during posting. Textile 2.6b for beautifiers (Textile without the code markup) can then be used with GeshiSyntaxColorer for code markup!

…I’m actually having problems getting the Textile 2.6b plugin to workr with GeSHi. If I turn off Textile 2.6b, GeSHi works fine. Otherwise, instead of nicely formatted/colored code, I see all the HTML tags for the code.

This should be code formatted below

/*
This is a comment block
*/

//this formats and prints the contents of an array
print_r($some_array);

foreach($array as $key=>$value){
print "$key => $value";
}