12. Relays. Specifications. Contents. Options

ATEATE-602 Manual Page 1 31 December 2013 ATEATE-602: USB Relay Controller - 8/12 Relays The ATE-600 series is a range of modular I/O controllers. I...
Author: Beatrix Ward
6 downloads 0 Views 567KB Size
ATEATE-602 Manual

Page 1 31 December 2013

ATEATE-602: USB Relay Controller - 8/12 Relays The ATE-600 series is a range of modular I/O controllers. It uses small standardized Boards which allows you to configure the system to your requirements. The ATE-602 is a relay controller with 8 or 12 relays. It can be controlled with ASCII commands via USB.

Specifications • • • • • • • • • •

8 Relays 5A/250Vac with 2x 1 common and 2x 4 NO contacts Expandable to 12 Relays with ATE-201 Relay Board Connections via screw terminals Arduino software compatible Control with ASCII commands USB virtual COM with FTDI adapter or cable Powered with 5Vdc power supply Dimensions 10 x 8 x 6 cm (approx.) Open source hardware and software Made in Holland

Con Contents The ATE-602 includes: • • •

ATE-101 Carrier Board with Arduino Pro Mini and ATE-602 Sketch firmware 2x ATE-201 Relay Board with 4 relays ATE-301 Back Panel Board

Options The ATE-602 has the following options: • • • • •

ATE-201 Relay Board with 4 relays USB Basic FTDI Adapter 5V (SFE09716) USB FTDI Cable 5V (SFE09718) Enclosure Hammond 1598E Enclosure Elbag MR6/HMX

ATEATE-602 Manual

Page 2 31 December 2013

Assembly This section describes how to assemble the ATE-602 USB Relay Controller.

The ATE-101 Carrier Board with Arduino Pro Mini may or may not have additional connectors, depending on availability.

On the ATE-301 Back Panel Board, the ATE-101 Arduino board need to be placed on the 50 pins connector indicated with uC. Be aware all 50 pins are correctly connected and the board is correctly oriented (components on the outside).

ATEATE-602 Manual

Page 3 31 December 2013

The first ATE-201 Relay Board should be placed on the connector (CON2) close to the uC board, with solder side facing each other.

The second ATE-201 on the next connector (CON3).

ATEATE-602 Manual

Page 4 31 December 2013

The optional ATE-201 Relay Board can be placed on the other 50-pin connector (CON4). For connecting the wires to the boards it is recommended to take the board out of the Back Panel Board.

ATEATE-602 Manual

Page 5 31 December 2013

Connections For USB connection the FTDI Basic USB Board can be used or the FTDI USB Cable. The USB Board can be placed on the ATE-101 Arduino Board.

The FTDI adapter board should be placed correctly, as on the picture. The FTDI adapter and ATE-101 board have the indications GRN and BLK.

When an FTDI Cable is used make sure the green wire is connected to the pin indicated GRN and the black wire to the pin indicated BLK.

ATEATE-602 Manual

Page 6 31 December 2013

The ATE-201 Relay Board has 2 common connections and 4 NO (Normally Open) connections. The common connections are connected to each other and to the 4 relay contacts. The 5V power supply should be connected to one of the Relay Boards.

OUT 1 OUT 2 OUT 3 OUT 4 COMMON COMMON

5V POWER INPUT

The relays on the first module (Back Panel CON2) will be relay 1-4. The relays on the next module (Back Panel CON3) will be relay 5-8 and the relays on the outside (BACK Panel CON4) will be relay 9-12.

Power Supply A stabilized 5Vdc power supply (like ACDC5012) is required for the ATE-602. With 2 relay boards maximum current is 600mA and with 3 relay boards 900mA. All boards have a power on led.

ATEATE-602 Manual

Page 7 31 December 2013

ATEATE-602 Tester The ATE-602 Tester is a Windows program which can be used to test the controller. This software and source code can be downloaded from www.antratek.com/ate-602. When an FTDI USB Board or cable is connected for the first time, Windows will install the driver and will give it a port number. After opening the Tester, type in this port number and click on Open. If you do not know the port number, you can click on List Ports and you will see the available port(s). The Tester will read the status of the relays continuously and show the results. When you click on Toggle, you can switch the relay on and off. Green indicates contact is closed and red indicates contact is open.

Communicating with the Controller The Address and Baud Rate of the unit can be set and are stored in the controller’s memory. By default the controller is listening for serial data at 9600 baud, and has address 00. The controller will always use 1 Stop Bit, 8 Data Bits and No Parity. The commands the controller uses are in the form @AA CC X The @ symbol is used to define the start of a command. AA is the address of the unit from 00 to 99. CC is a two letter command used to determine the command type. X is a one or more characters which determines the parameter for the command. is the carriage return character. This is ASCII character 13, or 0x0d. Each time a valid command is received the unit will respond with #AA followed by any values that are requested from the unit.

ATEATE-602 Manual

Page 8 31 December 2013

ON: Relay On Command This command is used to turn a single relay on. E.g.: @44 ON 1 will turn relay 1 on for the unit with address 44. It can also be used to turn all the relays on, this occurs when the parameter value is 0. OF: Relay Off Command Similar to the on command this command will turn relays off in the same manner. E.g.: @44 OF 1 will turn relay 1 off for the unit with address 44, @44 OF 0 will turn all relays off. WR: Write Relays (1-8) Command The write relays command is used when more than one relay is to be turned on or off at once. The parameter is a decimal number which, in binary, represents the on and off status of relays 1-8. The least significant bit of this value controls relay 1. The most significant bit of the parameter value controls relay 8. A set bit (1) turns the relay on, a cleared bit (0) turns the relay off. Example: To turn relays 1, 2 and 6 on (and others off) the binary value required is 00100011. In decimal this is 35. (2^(1-1) + 2^(2-1) + 2^(6-1) = 35). To issue this to a controller with address 44, the required command is @44 WR 35 SR: Set Relays (9-12) Command The set relays command is the same as the write relays command, but it is used for relays 9-12. The least significant bit of this value controls relay 9. RS: Relay Status (1-8) Command This command will return the status of relays 1-8. If the parameter is between 1 and 8 then the unit will return with a 0 or 1 corresponding to that relay. E.g.: @44 RS 1 will return #44 1 if the relay is on, or #44 0 if the relay is off. If the parameter is 0 then the unit will respond with the status of all 8 relays, in similar form as the Write Relays command. E.g.: If relays 1 and 2 are on then @44 RS 0 will return #44 3. 3 is 00000011 in binary, and each bit represents each relay status from 8 down to 1. RR: Read Relays (9-12) Command The read relays command is the same as the relay status command, but it is used for relays 9-12. SA: Set Address Addresses are valid from 01-99. A unit will only respond if its address in memory is the same as that of the command sent, or if the address of the command sent is 00.

ATEATE-602 Manual

Page 9 31 December 2013

The address is saved to non-volatile memory inside the controller, meaning it will be preserved even after power is disconnect from the controller. SB: Set Baud Parameters from 1 to 10 are valid, corresponding to the following values. 1: 1200 baud

6: 19200 baud

2: 2400 baud

7: 28800 baud

3: 4800 baud

8: 38400 baud

4: 9600 baud (default)

9: 57600 baud

5: 14400 baud

10: 115200 baud

The baud rate is saved to non-volatile memory inside the controller, meaning it will be preserved even after power is disconnect from the controller.

Serial Terminal Program You can use a serial terminal program to communicate with the controller. One of the popular Windows terminal programs is Tera Term. It can be downloaded from http://ttssh2.sourceforge.jp/. When you have connected the controller to the PC and you start Tera Term, you will get the following screen.

If you select Serial you can select the port you are using.

ATEATE-602 Manual

Page 10 31 December 2013

After OK you get an empty screen. Default speed is 9600baud. When you push the reset button on the Arduino microcontroller, then after a few seconds the version of the firmware will appear.

To be able to see the commands you are typing, you need to change the terminal setup. Click on Setup and Terminal…

ATEATE-602 Manual

Page 11 31 December 2013

Set New-Line Transmit to CR+LF and switch Local echo on.

Click on OK. If you now type a command, you will see it on the screen. To switch relay 1 on, you can type @00on1. After Enter the controller will switch the relay on and respond with #00.

ATEATE-602 Manual To read the status of the relays, you can type @00rs0

Page 12 31 December 2013

ATEATE-602 Manual

Page 13 31 December 2013

Jumper settings At delivery the jumpers on every board are set for ATE-602 use. The jumpers settings should be as on the photos above: ATE-101: no jumper ATE-201: 1-2 EXT, 3-4 INT

Loading new firmware The ATE-602 uses the Arduino Pro Mini (5V) which is an Atmel ATmega328 microcontroller with Arduino bootloader. The Arduino is loaded with ATE-602 Sketch. The source code can be downloaded from www.antratek.com/ate-602. You are free to modify the code. You can load the modified code or any other code via USB into the Arduino Pro Mini with the Arduino development environment, available at www.arduino.cc. Before loading it is recommended to place the 10-9 Auto Reset jumper on the ATE-101 Carrier Board.

Power on and reset After power on there will be a short closure of relay 12. Power on reset and manual reset (button on Arduino Pro Mini) will start the Arduino bootloader to check if the Arduino development environment is active. During this short time the led on Arduino Pro Mini will lit. On the same output as the led, relay 12 is connected.

Suggest Documents