The infra-red sensor decodes any correctly modulated infra-red light signal it receives and passes this to a PICAXE. This allows key presses on an infra-red remote control or infra-red commands sent from another PICAXE to be detected and acted upon.
Read an infra-red key press code
This program will receive key presses from an infra-red remote control using an infra-red receiver connected to input pin C.0 and will display all key press codes in the 'b1' variable. The infra-red remote control must be set to produce Sony TV infra-red command codes.
The infra-red sensor create module allows infra-red commands from a TV-style remote control to be received.
Bill of Materials
|Infra-red sensor||LED020||1||Buy Now|
|4k7 resistor (pack 100)||RES4K7||1||Buy Now|
|4.7uF electrolytic capacitor||CAP004||1||Buy Now|
Submit Your Own Code!
You must be logged in to submit code examples. Login now.