Editing Experimenting with IR Remotes using a PIC running BoostC Project
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
*Name: Experimenting with IR Remotes using a PIC running BoostC Project | *Name: Experimenting with IR Remotes using a PIC running BoostC Project | ||
− | *Status: | + | *Status: draft almost ready |
*Technology: PIC microcontroller, slavaged IR reciever, running with code in BoostC | *Technology: PIC microcontroller, slavaged IR reciever, running with code in BoostC | ||
*Author: [[russ_hensel]] ( where you can find an email address to reach me ) | *Author: [[russ_hensel]] ( where you can find an email address to reach me ) | ||
Line 12: | Line 12: | ||
Platform: PIC16F877A using BoostC connected via rs232 to a PC running a terminal program. The PIC chip is supplemented with a slavaged IR reciever. | Platform: PIC16F877A using BoostC connected via rs232 to a PC running a terminal program. The PIC chip is supplemented with a slavaged IR reciever. | ||
− | |||
− | |||
== Hardware == | == Hardware == | ||
Line 191: | Line 189: | ||
== Microcontroller Program == | == Microcontroller Program == | ||
− | === Design | + | === Design Polling Routine === |
− | |||
− | |||
If you look at the subroutine readIR( void ) you will see the heart of the IR receive. The routine loops each time checking to see if the output of the detector has changed. If it has not it adds one to the period, if it has it records the period and resets the period to 0. When the input goes quiet for a while it is taken as the end of the signal and we exit. Pretty simple. | If you look at the subroutine readIR( void ) you will see the heart of the IR receive. The routine loops each time checking to see if the output of the detector has changed. If it has not it adds one to the period, if it has it records the period and resets the period to 0. When the input goes quiet for a while it is taken as the end of the signal and we exit. Pretty simple. | ||
Line 217: | Line 213: | ||
Control of the software is via the serial communications library that I have described in other articles including [[Serial Communications Library -- BoostC and 16F877A]]. It yields a command driven interface with the following commands. | Control of the software is via the serial communications library that I have described in other articles including [[Serial Communications Library -- BoostC and 16F877A]]. It yields a command driven interface with the following commands. | ||
+ | |||
=== Commands === | === Commands === | ||
Line 286: | Line 283: | ||
− | === Design | + | === Design Interrupt Driven Routine === |
− | This is similar to the design above but the IR sections have be rewritten to use interrupts. For an explanation see: [[A Tutorial on PIC interrupts using BoostC including Example Programs]] | + | This is similar to the design above but the IR sections have be rewritten to use interrupts. For an explanation see: [[A Tutorial on PIC interrupts using BoostC including Example Programs]] |
=== Notes on the NEC Decoding === | === Notes on the NEC Decoding === | ||
Line 329: | Line 326: | ||
== Download == | == Download == | ||
− | [http://home.comcast.net/~russ_hensel/OC/ | + | pending, not at: [http://home.comcast.net/~russ_hensel/OC/StepperTest_v1.zip Version 1 zip file: StepperTest_v1.zip] |
== Comment, Questions, Contributions? == | == Comment, Questions, Contributions? == | ||
Line 335: | Line 332: | ||
Email me [[russ_hensel]], or use the talk page for this topic. All feedback is welcome. | Email me [[russ_hensel]], or use the talk page for this topic. All feedback is welcome. | ||
− | [[category:projects | + | [[category:projects]] |