020 - Sony TX (Remote Control - Transmit)

Summary - Transmits Sony SIRC infrared command on all 8 IR LED's (360 degrees)

Syntax:

20, BYTE2, BYTE3, BYTE4

Where:

BYTE1: 20 = (the command)

BYTE2: Button Code

BYTE3: Device Code

BYTE4: 0 = one-shot or 255 = continuous

Response from IRCF360:

No Response

Circular Display Feedback:

LEDs will illuminate indicating which IRLED is currently firing.

Description:

Transmits a Sony (SIRC 12-bit ) Infrared command from both IR LED’s. Any combination of device code+ button code can be transmitted. This is used for transmitting IR signals or message to other robots for gaming or swarm control or to other IR devices that can interpret Sony the 12bit SIRC standard IR messages, such as some cameras, televisions, etc.

Technical Features

The IRCF360 transmits 12-bit infrared package. Sony also have a 15-bit version. See "Principle of IR remote control" for more details

Example Code:

For PICAXE

The PICAXE 18X does not have a 'time-out' function, so it will 'hang' if the timing of the serial communication is not correct. With the new X2 parts these have a time-out routine so the command can be retransmitted.

IRPD:

SEROUT b.2,T9600_8, (030,4,1,0)

SERIN 2,T9600_8, b12 'The IRCF360 has been configured to send echo of each command sent

if b12 <> 030 then goto IRPD 'keep looping until a correct IRPD message is received

SERIN 2,T9600_8, N, NE, E, SE, S, SW, W, NW

RETURN

For Basic Stamp

SEROUT 2, 84, [030,4,1,0]

SERIN 2, 84, TIMEOUT, [N, NE, E, SE, S, SW, W, NW]

Videos:

Non