You are on page 1of 3

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
onnect NXTRelayDriver to !otor "ort of your NXT. NOTE #se Relay Driver on "ort $ or only. %&unctionality of the RelayDriver when connected to "ort ' is different from "ort $ and . If you need to use it on "ort ', please read the sections (elow to learn the details.)

Connection Schematic

In the schematic a(ove, R* and R2 are the Relay Devices, %where you can use motors as well). 'ttach $attery "ositive terminal to +$, port and ensure that (attery is grounded with +-, port. NOTE .imit the "ower to */ 0olts, *1 amps.

Programming Techniques for NXTRelayDriver


NXT-G: You can download the RelayDriver (loc2 from following location3 http344www.mindsensors.com4inde5.php6

opyright 7 21*2 mindsensors.com

*48

module9documents:;'<=Document!anager=op9viewDocument:;'< =Document=id9*>? Install this (loc2 in your NXT@- using following instructions3 http344www.mindsensors.com4inde5.php6 module9pagemaster:"'-A=user=op9view=page:"'-A=id9/* Download sample program from following location, and modify to suit your needs. http344www.mindsensors.com4inde5.php6 module9documents:;'<=Document!anager=op9viewDocument:;'< =Document=id9*>> NXC: Download the sample programs and li(rary file availa(le at following location, and include the li(rary file it in your program (y Binclude directive. Cr !odify the <ample program to suit your needs. http344www.mindsensors.com4inde5.php6 module9documents:;'<=Document!anager=op9viewDocument:;'< =Document=id9*>D

Other Programming Environments: The NXTRelayDriver is compati(le with legacy motor %R X motor) interface. You can Cperate Relays (y setting respective direction of the motor. NXT Motor Port and Relay Operation: Motor FW !F"ll po#er$ Relay 23 C&&, Relay *3 CN Relay 23 C&&, Relay *3 CN. Relay 23 C&&, Relay *3 CN. Motor RE% !F"ll Po#er$ Relay *3 C&&, Relay 23 CN. Relay *3 C&&, Relay 23 CN. Relay *3 C&&, Relay 23 CN.

"ort ' "ort $ "ort

NXT Motor Port and Motor Operation: Motor FW !%aria&le po#er$ !otor 23 C&& at high power. 's power decreases, motor speed increases. Motor RE% !%aria&le Po#er$ !otor *3 C&& at high power. 's power decreases, motor speed increases.

"ort '

opyright 7 21*2 mindsensors.com

248

"ort $

"ort

!otor *3 'lways runs at high speed %no change in speed). !otor 23 C&&, !otor *3 as power increases, motor speed increases. !otor 23 C&&, !otor *3 as power increases, motor speed increases.

!otor 23 'lways runs at high speed %no change in speed). !otor *3 C&&, !otor 23 as power increases, motor speed increases. !otor *3 C&&, !otor 23 as power increases, motor speed increases.

!tions for Relays


hoose a relay depending on your application, if you need to operate a **1 volt device, use a relay that has compara(le output capacity. The input of the relay should match with the power supplied to the relay driver. &or very small current applications, you wonEt need a relayF the power supplied to RelayDriver can (e cut off (y Relay driver itself. 'utomotive relays are a good choice that is readily availa(le.

opyright 7 21*2 mindsensors.com

848

You might also like