You are on page 1of 3

RelayDriver User Guide

RelayDriver User Guide

What is NXTRelayDriver

NXTRelayDriver is a device to control relays from NXT. You can connect upto 2 relays and operate them from NXT. If connecting motors, you can control their speed, however they can run only in one direction.

Connections

Connect NXTRelayDriver to Motor Port of your NXT.

  • NOTE Use Relay Driver on Port B or C only. (Functionality of the RelayDriver when connected to Port A is different from Port B and C. If you need to use it on Port A, please read the sections below to learn the details.)

Connection Schematic

RelayDriver User Guide What is NXTRelayDriver NXTRelayDriver is a device to control relays from NXT.http://www.mindsensors.com/index.php? Copyright © 2012 mindsensors.com 1/3 " id="pdf-obj-0-24" src="pdf-obj-0-24.jpg">

In the schematic above, R1 and R2 are the Relay Devices, (where you can use motors as well). Attach Battery Positive terminal to ‘B’ port and ensure that battery is grounded with ‘G’ port.

  • NOTE Limit the Power to 18 Volts, 10 amps.

Programming Techniques for NXTRelayDriver

NXT-G:

You can download the RelayDriver block from following

RelayDriver User Guide What is NXTRelayDriver NXTRelayDriver is a device to control relays from NXT.http://www.mindsensors.com/index.php? Copyright © 2012 mindsensors.com 1/3 " id="pdf-obj-0-43" src="pdf-obj-0-43.jpg">

Install this block in your NXT-G using following instructions:

Download sample program from following location, and modify to suit your needs.

NXC:

Download the sample programs and library file available at following

location, and include the library file it in your program by #include directive. Or Modify the Sample program to suit your needs.

Other Programming Environments:

The NXTRelayDriver is compatible with legacy motor (RCX motor) interface. You can Operate Relays by setting respective direction of the motor.

NXT Motor Port and Relay Operation:

 

Motor FWD (Full power)

Motor REV (Full Power)

Port A

Relay 2: OFF, Relay 1: ON

Relay 1: OFF, Relay 2: ON.

Port B

Relay 2: OFF,

Relay 1: OFF,

Port C

Relay 1: ON. Relay 2: OFF, Relay 1: ON.

Relay 2: ON. Relay 1: OFF, Relay 2: ON.

NXT Motor Port and Motor Operation:

 

Motor FWD (Variable power)

Motor REV (Variable Power)

Port A

Motor 2: OFF at high power. As power decreases, motor speed increases.

Motor 1: OFF at high power. As power decreases, motor speed increases.

 

Motor 1: Always runs at high speed (no change in speed).

Motor 2: Always runs at high speed (no change in speed).

Port B

Motor 2: OFF, Motor 1: as power increases, motor speed increases.

Motor 1: OFF, Motor 2: as power increases, motor speed increases.

Port C

Motor 2: OFF, Motor 1: as power increases, motor speed increases.

Motor 1: OFF, Motor 2: as power increases, motor speed increases.

Options for Relays

Choose a relay depending on your application, if you need to operate a 110 volt device, use a relay that has comparable output capacity. The input of the relay should match with the power supplied to the relay driver. For very small current applications, you won't need a relay; the power supplied to RelayDriver can be cut off by Relay driver itself. Automotive relays are a good choice that is readily available.