Infra-red Sensor

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.

Related Commands:

Print Page

Share

Schematic

PCB

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.

Code Example:
main:	irin C.0, b1		; Wait for a key press code
	debug			; Display the value
	goto main		; Repeat
Copy Code Submit an Example

Create Module

The infra-red sensor create module allows infra-red commands from a TV-style remote control to be received.

Bill of Materials

DescriptionCodeQty
Infra-red sensor LED020 1 Buy Now
4k7 resistor (pack 100) RES4K7 1 Buy Now
4.7uF electrolytic capacitor CAP004 1 Buy Now

Simulation

No Image Selected

Submit Your Own Code!

You must be logged in to submit code examples. Login now.