Manual Latest of Ftdi Relay
Manual Latest of Ftdi Relay
Switch off the supply voltage of this product as well as of attached devices
before connecting or disconnecting them.
Always use insulated tools while working.
Do not touch any components of the board in open hand during power ON
www.researchdesignlab.com 1
FT245 USB RELAY
Contents
1. INTRODUCTION .................................................................................................................... 3
2. FEATURES .............................................................................................................................. 3
3. SPECIFICATIONS ................................................................................................................... 4
4. APPLICATIONS ...................................................................................................................... 4
5. BLOCK DIAGRAM ................................................................................................................. 5
a) USB 4 CHANNEL RELAY BOARD TO PC ..................................................................... 5
b) USB 4 CHANNEL RELAY BOARD WITH RASPBERRY PI ......................................... 5
c) RELAY APPLICATION WIRING DIAGRAM ................................................................. 6
d) RELAY APPLICATION WIRING DIAGRAM WITH DIGITAL SENSOR .................... 6
6. ORDER INFORMATION TABLE .......................................................................................... 7
7. DOCUMENTS AND SUPPORT ............................................................................................. 8
a) Link to install driver for FT245RL ...................................................................................... 8
8. FT245RL UTILITY SOFTWARE ........................................................................................... 9
9. PROGRAMMABLE RELAY BOARD SOFTWARE ........................................................... 10
10. RASPBERRY PI SETUP ...................................................................................................... 11
a) Steps /Instruction to be followed to control relay from Linux Pc or Raspberry Pi with
Ubuntu/Raspbian......................................................................................................................... 11
b) Steps to control the relay through Python Script in Windows ........................................... 12
11. RELATED PRODUCTS ....................................................................................................... 14
www.researchdesignlab.com 2
FT245 USB RELAY
1. INTRODUCTION
This relay board with 4 SPDT relays and digital IO controlled via USB protocol, Suitable
for home automation applications, hobby projects, and industrial automation. The free
software application allows controlling relays manually or automatic operation by creating
timers for each channel and enabling repeat cycle. Relay module support Windows & Linux
platform, .Net / JAVA / Python SDK available for developing custom application.
2. FEATURES
3. SPECIFICATIONS
Specifications
Max power consumption 300mA
Supply Voltage 5V/12V/24V *
Digital IO Data transfer Rate 1MBPS
Digital IO 5V 4x
Relay 4x , 7A
Relay Max Current 0.21A
Operating temperature -40°C to 85°C
Opto Isolation 3700VRMS
LED Indication Power supply & Relay ON
Dimension(L * W) 80MM * 60MM
4. APPLICATIONS
Home automation
Process Automation
Vending Machine
Gaming control system
Robotics
Alarms
Timers
Remote monitoring and controlling.
ATM Security system
Aquariums applications
www.researchdesignlab.com 4
FT245 USB RELAY
5. BLOCK DIAGRAM
www.researchdesignlab.com 5
FT245 USB RELAY
www.researchdesignlab.com 6
FT245 USB RELAY
Supply Voltage:5v/12v/24v
RDL/4RB/14/001/V4.0-5V Relay Voltage : 5v/12v/24v
RDL/4RB/14/001/V4.0-12V Relay Amp :7A
RDL/4RB/14/001/V4.0-24V Type: Board level
Supply Voltage:5v/12v/24v
Relay Voltage : 5v/12v/24v
Relay Amp :7A
RDL/4RB/14/001/V4.0-A5V Type: Din rail
RDL/4RB/14/001/V4.0-A12V
RDL/4RB/14/001/V4.0-A24V
Supply Voltage:5v/12v/24v
Relay Voltage : 5v/12v/24v
SSR Amp :4A
RDL/4RB/14/001/V4.0-B5V Type: Board level with SSR
RDL/4RB/14/001/V4.0-B12V
RDL/4RB/14/001/V4.0-B24V
www.researchdesignlab.com 7
FT245 USB RELAY
http://www.ftdichip.com/Drivers/VCP.htm
https://ftdichip.com/software-examples/
c) Manuals
http://www.dlpdesign.com/mprog35-ug.pdf
http://www.ftdichip.com/Support/Documents/AppNotes/AN_130_FT2232H_Used_In_
FT245%20Synchronous%20FIFO%20Mode.pdf
www.researchdesignlab.com 8
FT245 USB RELAY
Features
On and off button provided to test onboard relays with status indication.
Windows application.
COM port will be automatically selected
https://researchdesignlab.com/projects/ft245rl32.rar
www.researchdesignlab.com 9
FT245 USB RELAY
Features
Under instruction, one can add /clear relay states. For example, 01010000 means relay 2
and relay 4 will be turned ON and corresponding graphical view will be displayed.
Setting the timer, time (ms) = resolution x value, this is the counter value set so that when
a program is started, relays will be turned on/off for specified timer value.
Programs can be stopped/resumed as well.
One can save/open/play the program file(xxxx.rdl)
https://docs.google.com/file/d/0BzrGD4zr88GnTjBPWTI4Mk9ZRFE/edit
https://researchdesignlab.com/projects/Programmable%20Relay%20Board.rar
www.researchdesignlab.com 10
FT245 USB RELAY
Instructions to install the libraries and test DR Control utility to control USB Relay
board in Raspberry Pi board
https://pylibftdi.readthedocs.io/en/0.15.0/quickstart.html
Relay ON commands:
R1: 0x01
R2: 0x02
R3: 0x04
R4: 0x08
R1: 0xFE
R2: 0XFD
R3: 0xFB
R4: 0XF7
https://researchdesignlab.com/projects/Python-script.zip
www.researchdesignlab.com 11
FT245 USB RELAY
Steps to be followed to control FT245RL USB Relay through python script in windows.
http://embedded-funk.net/running-libftdi-under-windows/
Use Zadig.exe to override the FT245RL Driver. Refer below link to do that.
https://zadig.akeo.ie/
https://sourceforge.net/projects/picusb/files/libftdi1-1.1_devkit_x86_x64_21Feb2014.zip/download
https://docs.anaconda.com/anaconda/install/windows/
(While installing don’t forget to enable override current python installation environment
variable --By enabling this option it will be directly set as environment variable. In order to
avoid python version conflict you can uninstall the previously installed python versions or
run it under virtual environment or you can use Anaconda prompt)
www.researchdesignlab.com 12
FT245 USB RELAY
python -m pylibftdi.examples.list_devices
Now you can use the relay_control_pi.py python script to control relays by Using
relay_on(rel_num,bitbangDeviceObject) and relay_off(rel_num,bitbangDeviceObject) functions
Note: The relay on off commands are byte values based on bit masking.
Ex: relay_on_cmds=[0x01,0x02,0x04,0x08]
relay_off_cmds=[0xFE,0xFD,0xFB,0xF7]
Please click the link below for C# SDK file for USB 8/4 Channel Relay-FT245RL
https://drive.google.com/drive/u/0/folders/1-dXmpsdFiXycxrcYSd1rPDy_Io97FY8L
www.researchdesignlab.com 13
FT245 USB RELAY
www.researchdesignlab.com 14
FT245 USB RELAY
Wi-Fi - 8 Channel Relay Board ESP8266 DIN Rail Opto Isolated Relay
www.researchdesignlab.com 15