Search
Filters
Close

HiTechnic NXT IRReceiver Sensor

Control your NXT robot with the HiTechnic IR Receiver Sensor and a LEGO Power Functions IR Remote Control. The IRReceiver decodes commands from a Power Functions Remote Control and your NXT program can use the commands to directly control NXT motors or to control other functions in your program.
SKU: NIR1032
$49.95
$19.95

HiTechnic NXT IRReceiver Sensor for LEGO Mindstorms NXT

Introduction

The NXT IRReceiver Sensor receives signals from a LEGO Power Functions IR remote control, decodes the information in the remote control signal and makes this available to an NXT program. The information received can be directly used to control NXT motors or your program can use the input data to control other functions within your program.

The IRReciever Sensor will receive signals from the LEGO Power Functions IR Speed Remote Control and the Power Functions IR Remote Control.

Power Functions IR Speed Remote Control Item #8879 Power Functions IR Remote Control Item #8885

Programming

MINDSTORMS NXT-G Programming

NXT-G programs can use the sensor data and wire it directly to motor blocks to create a very simple R/C program.

This block returns the latest remote control settings received from the remote each time you execute the block in your program. Each Remote Control has 2 motor controls, Red and Blue which are matched on the block data hub.

You must drag at least one output data wire from this block's data hub to another block for any information to be sent.

Display Settings

Image of block

  1. The number shows which of your NXT's ports are connected to the IRReceiver. You can change this number in the configuration panel if you need to.
  2. The block's data hub will open automatically when the block is placed in the work area. At least one data wire must be dragged from the block's output plug to another block's data hub. (See the Data Hub section below for more information.)

Configuring the IRReceiver Block

Image of configuration panel

  1. Port: Choose the port where your IRReceiver is plugged in. By default, the block will be set to port 4 for an IRReceiver. You can change this selection if you need to.
  2. Channel: Chose the channel to match the channel selected on the LEGO Power Functions Remote Controller (1 - 4).

IRReceiver block Data Hub plugs

You must click on the Data Hub to open it as shown.

Image of block

  1. The port that the IRReceiver is connected to
  2. The Power Functions Remote Control channel number (match channel selected on the remote control)
  3. The Red Motor Direction (Remote Control red channel)
  4. The Red Motor Power
  5. The Blue Motor Direction (Remote Control blue channel)
  6. The Blue Motor Power
  7. The Red Motor Brake
  8. The Blue Motor Brake
  9. The Red Control setting
  10. The Blue Control setting

This chart shows the different characteristics of the plugs on the IRReceiver data hub:

Plug Data Type Possible Range What the Values Mean
Port Number 1 - 4 1 = Port 1, 2 = Port 2, 3 = Port 3, 4 = Port 4
Channel Numeric 1 - 4 1 = Channel l, 2 = Channel 2, 3 = Channel 3, 4 = Channel 4
Direction Logic True/False True = Forwards
False = Backwards
Power Number 0 - 100
Brake Logic True/False True = Brake
False = Coast
Setting Number -7 - +7 Remote speed control setting

Other Programming Environments

IRReceiver Register Layout

Address
Type
Contents
00 – 07H
chars
Sensor version number
08 – 0FH
chars
Manufacturer
10 – 17H
chars
Sensor type
18 – 3DH
bytes
Not used
3E, 41H
chars
Reserved
42H
byte
Motor 1A control
43H
byte
Motor 1B control
44H
byte
Motor 2A control
45H
byte
Motor 2B control
46H
byte
Motor 3A control
47H
byte
Motor 3B control
48H
byte
Motor 4A control
49H
byte
Motor 4B control

The Motor 1A/1B/2A/2B/3A/3B/4A/4B control fieldsindicate the power control for motors 1A through 4B. The number 1/2/3/4 is decoded from the remote controls selected channel. The letter A/B indicates left (Red) or right (Blue) control, A – left, B – right.

The following range values will be returned; -128, -100, -86, -72, -58, -44, -30, -16, 0, 16, 30, 44, 58, 72, 86 and 100. -128 is returned to signal motor brake.

The IR Receiver can be programmed using any of the available programming languages including NXC, RobotC and LabVIEW.

HiTechnic NXT IRReceiver Sensor for LEGO Mindstorms NXT

Introduction

The NXT IRReceiver Sensor receives signals from a LEGO Power Functions IR remote control, decodes the information in the remote control signal and makes this available to an NXT program. The information received can be directly used to control NXT motors or your program can use the input data to control other functions within your program.

The IRReciever Sensor will receive signals from the LEGO Power Functions IR Speed Remote Control and the Power Functions IR Remote Control.

Power Functions IR Speed Remote Control Item #8879 Power Functions IR Remote Control Item #8885

Programming

MINDSTORMS NXT-G Programming

NXT-G programs can use the sensor data and wire it directly to motor blocks to create a very simple R/C program.

This block returns the latest remote control settings received from the remote each time you execute the block in your program. Each Remote Control has 2 motor controls, Red and Blue which are matched on the block data hub.

You must drag at least one output data wire from this block's data hub to another block for any information to be sent.

Display Settings

Image of block

  1. The number shows which of your NXT's ports are connected to the IRReceiver. You can change this number in the configuration panel if you need to.
  2. The block's data hub will open automatically when the block is placed in the work area. At least one data wire must be dragged from the block's output plug to another block's data hub. (See the Data Hub section below for more information.)

Configuring the IRReceiver Block

Image of configuration panel

  1. Port: Choose the port where your IRReceiver is plugged in. By default, the block will be set to port 4 for an IRReceiver. You can change this selection if you need to.
  2. Channel: Chose the channel to match the channel selected on the LEGO Power Functions Remote Controller (1 - 4).

IRReceiver block Data Hub plugs

You must click on the Data Hub to open it as shown.

Image of block

  1. The port that the IRReceiver is connected to
  2. The Power Functions Remote Control channel number (match channel selected on the remote control)
  3. The Red Motor Direction (Remote Control red channel)
  4. The Red Motor Power
  5. The Blue Motor Direction (Remote Control blue channel)
  6. The Blue Motor Power
  7. The Red Motor Brake
  8. The Blue Motor Brake
  9. The Red Control setting
  10. The Blue Control setting

This chart shows the different characteristics of the plugs on the IRReceiver data hub:

Plug Data Type Possible Range What the Values Mean
Port Number 1 - 4 1 = Port 1, 2 = Port 2, 3 = Port 3, 4 = Port 4
Channel Numeric 1 - 4 1 = Channel l, 2 = Channel 2, 3 = Channel 3, 4 = Channel 4
Direction Logic True/False True = Forwards
False = Backwards
Power Number 0 - 100
Brake Logic True/False True = Brake
False = Coast
Setting Number -7 - +7 Remote speed control setting

Other Programming Environments

IRReceiver Register Layout

Address
Type
Contents
00 – 07H
chars
Sensor version number
08 – 0FH
chars
Manufacturer
10 – 17H
chars
Sensor type
18 – 3DH
bytes
Not used
3E, 41H
chars
Reserved
42H
byte
Motor 1A control
43H
byte
Motor 1B control
44H
byte
Motor 2A control
45H
byte
Motor 2B control
46H
byte
Motor 3A control
47H
byte
Motor 3B control
48H
byte
Motor 4A control
49H
byte
Motor 4B control

The Motor 1A/1B/2A/2B/3A/3B/4A/4B control fieldsindicate the power control for motors 1A through 4B. The number 1/2/3/4 is decoded from the remote controls selected channel. The letter A/B indicates left (Red) or right (Blue) control, A – left, B – right.

The following range values will be returned; -128, -100, -86, -72, -58, -44, -30, -16, 0, 16, 30, 44, 58, 72, 86 and 100. -128 is returned to signal motor brake.

The IR Receiver can be programmed using any of the available programming languages including NXC, RobotC and LabVIEW.

The RobotC driver suite supports HiTechnic products for RobotC 4.x and RobotC 3.x. Select the corresponding repository at the link below and download the zip file. 

https://github.com/botbench

HiTechnic IR Receiver Sensor Block for Mindstorms NXT Software
The IR Receiver Sensor programming block adds support for all IR Receiver Sensor features to LEGO MINDSTORMS NXT Software. This block allows your program to read the signals from LEGO Power Functions IR Remote Controllers.
  Description Version Release Date Size  
NXTIcon HiTechnic IR Receiver Sensor Block for Mindstorms NXT Software 1.0 September 30th, 2009 357.55 KB Download Now
HiTechnic IR RC Kart For LMS 1.0
HiTechnic IR RC Kart Sample Program. Uses the HiTechnic IR Receiver and Motor PID blocks.
  Description Version Release Date Size  
NXTIcon HiTechnic IR RC Kart For LMS 1.0 1.0 April 20th, 2011 127.47 KB Download Now
HiTechnic IR RC Kart For LMS 2.0
HiTechnic IR RC Kart Sample Program. Uses the HiTechnic IR Receiver and Motor PID blocks.
  Description Version Release Date Size  
NXTIcon HiTechnic IR RC Kart For LMS 2.0 1.0 April 19th, 2011 128.20 KB Download Now
HTWay NXC Program
NXC Program for the HTWay, a two-wheeled, self-balancing, Segway type robot. Building instructions available from the models page.
New with version 1.1: Fixes a bug that prevented the original program from working with higher optimization levels.
  Description Version Release Date Size  
NXC HTWay NXC Program 1.1 November 7th, 2010 16.34 KB Download Now
IRReceiver Sample NXC Program
This NXC sample program shows you how to read the IRReceiver sensor using the API function ReadSensorHTIRReceiver.
  Description Version Release Date Size  
NXC IRReceiver Sample NXC Program 1.0 September 1st, 2010 1.03 KB Download Now
IR Receiver VI For LabVIEW2009
IR Receiver VI and sample program VI for LabVIEW 2009. Supports the HiTechnic Sensor Multiplexer. See included readme.txt file on how to install into LabVIEW 2009.
  Description Version Release Date Size  
LabView IR Receiver VI For LabVIEW2009 1.0 October 7th, 2010 67.25 KB Download Now
IRReceiver Sensor VI
LabVIEW 7.1 VI for the HiTechnic IRReceiver.
Note: This vi is designed for LabVIEW 7.1 with NXT Toolkit.
  Description Version Release Date Size  
LabView IRReceiver Sensor VI 1.0 July 1st, 2010 46.17 KB Download Now
HiTechnic IR RC Kart
Building Instructions for the IR RC Kart. This model is buildable with either an NXT 1.0 or 2.0 sets. Model uses the HiTechnic IR Receiver sensor to make a remote controlled car. Unlike the earlier IR RC Car, this model does not require a differential.
  Description Version Release Date Size  
LDrawLogo HiTechnic IR RC Kart 1.0 April 19th, 2011 4.75 MB Download Now