SlideShare a Scribd company logo
www.researchdesignlab.com Page 1
USB RELAY BOARDREV1.0
USB 4/8 RELAY CHANNEL BOARD
(FTDI:FT245R)
www.researchdesignlab.com Page 2
USB RELAY BOARDREV1.0
Contents
OVERVIEW ................................................................................................................................... 4
USB 8/4 Channel Relay Board ................................................................................................... 4
Features........................................................................................................................................... 4
Documents and Support.................................................................................................................. 4
Driver for FT245RL................................................................................................................ 4
Software examples- ftdi chip .................................................................................................. 4
Manuals................................................................................................................................... 4
BLOCK DIAGRAM....................................................................................................................... 5
USB 4 Channel Relay Board to PC ............................................................................................ 5
USB 8 Channel Relay Board to PC ............................................................................................ 5
USB 8 Channel Relay Board with Raspberry Pi ........................................................................ 6
USB 4 Channel Relay Board with Raspberry Pi ........................................................................ 6
FT245RL utility software ............................................................................................................... 7
Features....................................................................................................................................... 7
Programmable Relay Board Software ............................................................................................ 8
Features....................................................................................................................................... 8
Raspberry Pi setup .......................................................................................................................... 9
INTODUCTION......................................................................................................................... 9
INSTALLING LIBRARIES....................................................................................................... 9
TESTING LIBRARIES .............................................................................................................. 9
REMOVING ERRORS ............................................................................................................ 10
ADDING ACCESS RIGHTS TO ALL USERS....................................................................... 11
DRCONTROL INSTALL ........................................................................................................ 11
TO LIST ALL THE DEVICES ................................................................................................ 11
CREATING SCRIPT FILE ...................................................................................................... 12
usb_relay.sh .............................................................................................................................. 12
TO RUN A SCRIPT FILE........................................................................................................ 12
www.researchdesignlab.com Page 3
USB RELAY BOARDREV1.0
www.researchdesignlab.com Page 4
USB RELAY BOARDREV1.0
OVERVIEW
This document explains about, how to use USB relay board with raspberry pi and
windows applications(FT245RL utility and Programmable Relay Board Software).
USB 8/4 Channel Relay Board
This is Eight/four Channel relay board controlled by computer USB port. The usb relay
board is with 8/4 SPDT relays rated up to 7A each. You may control devices 230V / 120V (up to
8/4) directly with one such relay unit. Suitable for home automation applications, hobby projects,
industrial automation.
Features
 8/4 SPDT Relay channels (7A 250V,12A 120V,10A 125VAC, 10A 28VDC).
 Power supply:12VDC 1AMP
 Current consumption: 400 mA.
 LED indication for relay & power supply.
 Design based on highly proven IC ULN2003 as driver.
 Raspberry Pi and Beaglebone Compatible.
Documents and Support
Driver for FT245RL
http://www.ftdichip.com/Drivers/VCP.htm
Software examples- ftdi chip
http://www.ftdichip.com/Support/SoftwareExamples/CodeExamples/VB.htm
Manuals
http://www.dlpdesign.com/mprog35-ug.pdf
http://www.ftdichip.com/Support/Documents/AppNotes/AN_130_FT2232H_Used_In_FT245%2
0Synchronous%20FIFO%20Mode.pdf
www.researchdesignlab.com Page 5
USB RELAY BOARDREV1.0
BLOCK DIAGRAM
USB 4 Channel Relay Board to PC
USB 8 Channel Relay Board to PC
www.researchdesignlab.com Page 6
USB RELAY BOARDREV1.0
USB 8 Channel Relay Board with Raspberry Pi
USB 4 Channel Relay Board with Raspberry Pi
www.researchdesignlab.com Page 7
USB RELAY BOARDREV1.0
FT245RL utility software
Features
 On and off button provided to test onboard relays with status indication.
 Windows application.
 COM port will be automatically selected.
For USB 8/4 Channel Relay
To download FT245RL utility, go to the link given below
https://docs.google.com/file/d/0BzrGD4zr88GnM2ZZMWxRMEFvRnM/edit
www.researchdesignlab.com Page 8
USB RELAY BOARDREV1.0
Programmable Relay Board Software
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)
To download programmable relay board software, go to the link given below.
https://docs.google.com/file/d/0BzrGD4zr88GnTjBPWTI4Mk9ZRFE/edit
www.researchdesignlab.com Page 9
USB RELAY BOARDREV1.0
Raspberry Pi setup
INTODUCTION
Instructions how to install the needed libraries and test DRControl utility to control USB Relay
board in Raspberry Pi board
INSTALLING LIBRARIES
CONNECT WORKING ETHERNET CABLE TO RASPBERRY PI(internet)
OPEN LXTERMINAL
STEP 1 :
Install Python-FTDI library, and Python-pip package is needed to install the pyLibFTDI
# sudo apt-get install python-ftdi python-pip
STEP 2 :
Install the FTDI wrapper PyLibFTDI usinf PIP.
# sudo pip install pylibftdi
TESTING LIBRARIES
If you have the relay board connected, then you can run a quick test by entering following
command. Note, when you run this after installation and under normal user you might get a error
instead of printout.
# python -m pylibftdi.examples.list_devices
Example printout
pi@raspberrypi:~#sudo python -m pylibftdi.examples.list_devices
FTDI:FT245R USB FIFO:A9005RO2
pi@raspberrypi:~#
Note that this command will list all FTDI devices
www.researchdesignlab.com Page 10
USB RELAY BOARDREV1.0
REMOVING ERRORS
Do you only get following printout when you list the devices;
1. pi@raspberrypi /opt/drcontrol $ python -m pylibftdi.examples.list_devices
::
pi@raspberrypi /opt/drcontrol $
2. pi@raspberrypi ~ $ python -m pylibftdi.examples.list_devices
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/lib/python2.7/dist-packages/pylibftdi/examples/list_devices.py", line
42,in <module>
for device in get_ftdi_device_list():
File "/usr/local/lib/python2.7/dist-packages/pylibftdi/examples/list_devices.py", line 33,
in get_ftdi_device_list
for device in Driver().list_devices():
File "/usr/local/lib/python2.7/dist-packages/pylibftdi/driver.py", line 158, in list_devices
raise FtdiError(self.fdll.ftdi_get_error_string(byref(ctx)))
pylibftdi._base.FtdiError: error sending control message: Operation not permitted
pi@raspberrypi ~ $
You can try to run with sudo, and if that works, then you know it is a permission thing.
pi@raspberrypi ~ $ sudo python -m pylibftdi.examples.list_devices
FTDI:FT245R USB FIFO: A9005ro2
www.researchdesignlab.com Page 11
USB RELAY BOARDREV1.0
ADDING ACCESS RIGHTS TO ALL USERS
pi@raspberrypi ~ $ sudo nano /etc/udev/rules.d/99-libftdi.rules
Add following line to the file and save.
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001",
GROUP="dialout", MODE="0666"
Check that the file is OK
pi@raspberrypi ~ $ cat /etc/udev/rules.d/99-libftdi.rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001",
GROUP="dialout", MODE="0666"
pi@raspberrypi ~ $
Do a reboot.
DRCONTROL INSTALL
CONNECT WORKING ETHERNET CABLE TO RASPBERRY PI(internet)
open LX terminal
# mkdir drcontrol
# cd drcontrol
# wget http://drcontrol.googlecode.com/files/drcontrol.0.12c.zip
# unzip drcontrol.0.12c.zip
#wget http://drcontrol.googlecode.com/svn/trunk/drcontrol.py
TO LIST ALL THE DEVICES
pi@raspberrypi ~/drcontrol $ ./drcontrol.py -l
Vendor Product Serial
FTDI FT245R USB FIFO A9005ro2
//USE THE DEVICE SERIAL NAME LISTED INTO FOLLOWING SCRIPT FILE
www.researchdesignlab.com Page 12
USB RELAY BOARDREV1.0
CREATING SCRIPT FILE
pi@raspberrypi ~/drcontrol $sh nano usb_relay.sh
usb_relay.sh
// script file --- 4 relays---
sudo ./drcontrol.py -d A9005ro2 -c off -r all -v
sleep 1
for i in 1 2 3 4
do
sudo ./drcontrol.py -d A9005ro2 -c on -r $i -v
sleep 1
done
sudo ./drcontrol.py -d A9005ro2 -c off -r all -v
//end of file
(for 8 relay ,change the iterations from 4 to 8 in a for loop)
TO RUN A SCRIPT FILE
pi@raspberrypi ~/drcontrol $sh usb_relay.sh
(relays will be turned on and off according to script file)

More Related Content

What's hot

Esp8266 NodeMCU
Esp8266 NodeMCUEsp8266 NodeMCU
Esp8266 NodeMCU
roadster43
 
Arm Development Tools
Arm Development ToolsArm Development Tools
Arm Development Tools
PriyangaKR1
 
VLSI Lab manual PDF
VLSI Lab manual PDFVLSI Lab manual PDF
VLSI Lab manual PDF
UR11EC098
 
WIreless Mobile Battery Charger
WIreless Mobile Battery ChargerWIreless Mobile Battery Charger
WIreless Mobile Battery Charger
ashish negi
 
Elektor 0304-2020
Elektor 0304-2020Elektor 0304-2020
Elektor 0304-2020
khonarphub chikdee
 
Smart led display boards
Smart led display boardsSmart led display boards
Smart led display boards
SarojKumar210
 
Attendance System using ESP8266(Wi-Fi) with MySQL
Attendance System using ESP8266(Wi-Fi) with MySQLAttendance System using ESP8266(Wi-Fi) with MySQL
Attendance System using ESP8266(Wi-Fi) with MySQL
Sanjay Kumar
 
Automatic temperature control
Automatic temperature control Automatic temperature control
Automatic temperature control
RANJAN KUMAR
 
Gopi's mcs lab man
Gopi's mcs lab manGopi's mcs lab man
Gopi's mcs lab man
Gopinath.B.L Naidu
 
ATmega32
ATmega32 ATmega32
ATmega32
Sɐɐp ɐɥɯǝp
 
Esp8266 basics
Esp8266 basicsEsp8266 basics
Esp8266 basics
Eueung Mulyana
 
Pic16f84
Pic16f84Pic16f84
Electro magnetic interference and compatibility(ECM,ECI)
Electro magnetic interference and compatibility(ECM,ECI)Electro magnetic interference and compatibility(ECM,ECI)
Electro magnetic interference and compatibility(ECM,ECI)
Palani murugan
 
PlantPAx Process
PlantPAx ProcessPlantPAx Process
PlantPAx Process
Avanceon-Lahore
 
Arduino Platform with C programming.
Arduino Platform with C programming.Arduino Platform with C programming.
Arduino Platform with C programming.
Govind Jha
 
Simple Surge Arrester (SA) Testing for Switchyard Equipment
Simple Surge Arrester (SA) Testing for Switchyard EquipmentSimple Surge Arrester (SA) Testing for Switchyard Equipment
Simple Surge Arrester (SA) Testing for Switchyard Equipment
SARAVANAN A
 
Basic Electronics Interview Questions.pdf
Basic Electronics Interview Questions.pdfBasic Electronics Interview Questions.pdf
Basic Electronics Interview Questions.pdf
Engineering Funda
 
PX4 Seminar 01
PX4 Seminar 01PX4 Seminar 01
PX4 Seminar 01
Jungtaek Kim
 
Li-Fi Audio Transmission Project Documentation/Report
Li-Fi Audio Transmission Project Documentation/ReportLi-Fi Audio Transmission Project Documentation/Report
Li-Fi Audio Transmission Project Documentation/Report
TSriyaSharma
 
ROBOTIC CAR PPT (2).pptx
ROBOTIC CAR PPT (2).pptxROBOTIC CAR PPT (2).pptx
ROBOTIC CAR PPT (2).pptx
JatinKanojiya2
 

What's hot (20)

Esp8266 NodeMCU
Esp8266 NodeMCUEsp8266 NodeMCU
Esp8266 NodeMCU
 
Arm Development Tools
Arm Development ToolsArm Development Tools
Arm Development Tools
 
VLSI Lab manual PDF
VLSI Lab manual PDFVLSI Lab manual PDF
VLSI Lab manual PDF
 
WIreless Mobile Battery Charger
WIreless Mobile Battery ChargerWIreless Mobile Battery Charger
WIreless Mobile Battery Charger
 
Elektor 0304-2020
Elektor 0304-2020Elektor 0304-2020
Elektor 0304-2020
 
Smart led display boards
Smart led display boardsSmart led display boards
Smart led display boards
 
Attendance System using ESP8266(Wi-Fi) with MySQL
Attendance System using ESP8266(Wi-Fi) with MySQLAttendance System using ESP8266(Wi-Fi) with MySQL
Attendance System using ESP8266(Wi-Fi) with MySQL
 
Automatic temperature control
Automatic temperature control Automatic temperature control
Automatic temperature control
 
Gopi's mcs lab man
Gopi's mcs lab manGopi's mcs lab man
Gopi's mcs lab man
 
ATmega32
ATmega32 ATmega32
ATmega32
 
Esp8266 basics
Esp8266 basicsEsp8266 basics
Esp8266 basics
 
Pic16f84
Pic16f84Pic16f84
Pic16f84
 
Electro magnetic interference and compatibility(ECM,ECI)
Electro magnetic interference and compatibility(ECM,ECI)Electro magnetic interference and compatibility(ECM,ECI)
Electro magnetic interference and compatibility(ECM,ECI)
 
PlantPAx Process
PlantPAx ProcessPlantPAx Process
PlantPAx Process
 
Arduino Platform with C programming.
Arduino Platform with C programming.Arduino Platform with C programming.
Arduino Platform with C programming.
 
Simple Surge Arrester (SA) Testing for Switchyard Equipment
Simple Surge Arrester (SA) Testing for Switchyard EquipmentSimple Surge Arrester (SA) Testing for Switchyard Equipment
Simple Surge Arrester (SA) Testing for Switchyard Equipment
 
Basic Electronics Interview Questions.pdf
Basic Electronics Interview Questions.pdfBasic Electronics Interview Questions.pdf
Basic Electronics Interview Questions.pdf
 
PX4 Seminar 01
PX4 Seminar 01PX4 Seminar 01
PX4 Seminar 01
 
Li-Fi Audio Transmission Project Documentation/Report
Li-Fi Audio Transmission Project Documentation/ReportLi-Fi Audio Transmission Project Documentation/Report
Li-Fi Audio Transmission Project Documentation/Report
 
ROBOTIC CAR PPT (2).pptx
ROBOTIC CAR PPT (2).pptxROBOTIC CAR PPT (2).pptx
ROBOTIC CAR PPT (2).pptx
 

Similar to USB 4-8 Channel Relay Board

V4.5.2 vvdi prog user manual
V4.5.2 vvdi prog user manualV4.5.2 vvdi prog user manual
V4.5.2 vvdi prog user manual
Enzo C
 
BURO Arduino Workshop
BURO Arduino WorkshopBURO Arduino Workshop
BURO Arduino Workshop
Omer Kilic
 
[HES2013] Hacking apple accessories to pown iDevices – Wake up Neo! Your phon...
[HES2013] Hacking apple accessories to pown iDevices – Wake up Neo! Your phon...[HES2013] Hacking apple accessories to pown iDevices – Wake up Neo! Your phon...
[HES2013] Hacking apple accessories to pown iDevices – Wake up Neo! Your phon...
Hackito Ergo Sum
 
“Automation Testing for Embedded Systems”
“Automation Testing for Embedded Systems” “Automation Testing for Embedded Systems”
“Automation Testing for Embedded Systems”
GlobalLogic Ukraine
 
v4.4.9 vvdi prog user manual
v4.4.9 vvdi prog user manual v4.4.9 vvdi prog user manual
v4.4.9 vvdi prog user manual
BuyobdtoolShop
 
v4.4.9 vvdi prog user manual
v4.4.9 vvdi prog user manual v4.4.9 vvdi prog user manual
v4.4.9 vvdi prog user manual
Enzo C
 
Linux+sensor+device-tree+shell=IoT !
Linux+sensor+device-tree+shell=IoT !Linux+sensor+device-tree+shell=IoT !
Linux+sensor+device-tree+shell=IoT !
Dobrica Pavlinušić
 
Intro to arduino
Intro to arduinoIntro to arduino
Intro to arduino
José Faria
 
AAeon-Aop-8070.pdf
AAeon-Aop-8070.pdfAAeon-Aop-8070.pdf
AAeon-Aop-8070.pdf
Quang Bui
 
Soyo syd6iba
Soyo syd6ibaSoyo syd6iba
Soyo syd6iba
Roberto Mantovani
 
A6vmx series users_manual
A6vmx series users_manualA6vmx series users_manual
A6vmx series users_manual
luissinato
 
Tac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PITac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PI
Cliff Samuels Jr.
 
Xhorse Vvdi prog user manual 4.9.3
Xhorse Vvdi prog user manual 4.9.3Xhorse Vvdi prog user manual 4.9.3
Xhorse Vvdi prog user manual 4.9.3
OBD365
 
V4.6.0 VVDI Prog Programmer User Manual
V4.6.0 VVDI Prog Programmer User ManualV4.6.0 VVDI Prog Programmer User Manual
V4.6.0 VVDI Prog Programmer User Manual
BuyobdtoolShop
 
Webshield internet of things
Webshield internet of thingsWebshield internet of things
Webshield internet of things
Raghav Shetty
 
Xhorse Vvdi prog user manual v4.8.3 obdii365
Xhorse Vvdi prog user manual v4.8.3  obdii365Xhorse Vvdi prog user manual v4.8.3  obdii365
Xhorse Vvdi prog user manual v4.8.3 obdii365
OBD365
 
Using arduino and raspberry pi for internet of things
Using arduino and raspberry pi for internet of thingsUsing arduino and raspberry pi for internet of things
Using arduino and raspberry pi for internet of things
Sudar Muthu
 
Xhorse Vvdi prog user manual v4.8.6
Xhorse Vvdi prog user manual v4.8.6Xhorse Vvdi prog user manual v4.8.6
Xhorse Vvdi prog user manual v4.8.6
OBD365
 
Flyport WiFi ETHERNET Programmer's guide 2.3 release 1.0
Flyport WiFi ETHERNET Programmer's guide 2.3 release 1.0Flyport WiFi ETHERNET Programmer's guide 2.3 release 1.0
Flyport WiFi ETHERNET Programmer's guide 2.3 release 1.0
Claudio Carnevali
 
Connected hardware for Software Engineers 101
Connected hardware for Software Engineers 101Connected hardware for Software Engineers 101
Connected hardware for Software Engineers 101
Pance Cavkovski
 

Similar to USB 4-8 Channel Relay Board (20)

V4.5.2 vvdi prog user manual
V4.5.2 vvdi prog user manualV4.5.2 vvdi prog user manual
V4.5.2 vvdi prog user manual
 
BURO Arduino Workshop
BURO Arduino WorkshopBURO Arduino Workshop
BURO Arduino Workshop
 
[HES2013] Hacking apple accessories to pown iDevices – Wake up Neo! Your phon...
[HES2013] Hacking apple accessories to pown iDevices – Wake up Neo! Your phon...[HES2013] Hacking apple accessories to pown iDevices – Wake up Neo! Your phon...
[HES2013] Hacking apple accessories to pown iDevices – Wake up Neo! Your phon...
 
“Automation Testing for Embedded Systems”
“Automation Testing for Embedded Systems” “Automation Testing for Embedded Systems”
“Automation Testing for Embedded Systems”
 
v4.4.9 vvdi prog user manual
v4.4.9 vvdi prog user manual v4.4.9 vvdi prog user manual
v4.4.9 vvdi prog user manual
 
v4.4.9 vvdi prog user manual
v4.4.9 vvdi prog user manual v4.4.9 vvdi prog user manual
v4.4.9 vvdi prog user manual
 
Linux+sensor+device-tree+shell=IoT !
Linux+sensor+device-tree+shell=IoT !Linux+sensor+device-tree+shell=IoT !
Linux+sensor+device-tree+shell=IoT !
 
Intro to arduino
Intro to arduinoIntro to arduino
Intro to arduino
 
AAeon-Aop-8070.pdf
AAeon-Aop-8070.pdfAAeon-Aop-8070.pdf
AAeon-Aop-8070.pdf
 
Soyo syd6iba
Soyo syd6ibaSoyo syd6iba
Soyo syd6iba
 
A6vmx series users_manual
A6vmx series users_manualA6vmx series users_manual
A6vmx series users_manual
 
Tac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PITac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PI
 
Xhorse Vvdi prog user manual 4.9.3
Xhorse Vvdi prog user manual 4.9.3Xhorse Vvdi prog user manual 4.9.3
Xhorse Vvdi prog user manual 4.9.3
 
V4.6.0 VVDI Prog Programmer User Manual
V4.6.0 VVDI Prog Programmer User ManualV4.6.0 VVDI Prog Programmer User Manual
V4.6.0 VVDI Prog Programmer User Manual
 
Webshield internet of things
Webshield internet of thingsWebshield internet of things
Webshield internet of things
 
Xhorse Vvdi prog user manual v4.8.3 obdii365
Xhorse Vvdi prog user manual v4.8.3  obdii365Xhorse Vvdi prog user manual v4.8.3  obdii365
Xhorse Vvdi prog user manual v4.8.3 obdii365
 
Using arduino and raspberry pi for internet of things
Using arduino and raspberry pi for internet of thingsUsing arduino and raspberry pi for internet of things
Using arduino and raspberry pi for internet of things
 
Xhorse Vvdi prog user manual v4.8.6
Xhorse Vvdi prog user manual v4.8.6Xhorse Vvdi prog user manual v4.8.6
Xhorse Vvdi prog user manual v4.8.6
 
Flyport WiFi ETHERNET Programmer's guide 2.3 release 1.0
Flyport WiFi ETHERNET Programmer's guide 2.3 release 1.0Flyport WiFi ETHERNET Programmer's guide 2.3 release 1.0
Flyport WiFi ETHERNET Programmer's guide 2.3 release 1.0
 
Connected hardware for Software Engineers 101
Connected hardware for Software Engineers 101Connected hardware for Software Engineers 101
Connected hardware for Software Engineers 101
 

More from Raghav Shetty

8 Channel Relay Board-Bluetooth
8 Channel Relay Board-Bluetooth8 Channel Relay Board-Bluetooth
8 Channel Relay Board-Bluetooth
Raghav Shetty
 
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
Raghav Shetty
 
4 Channel Relay Board 12V-Compatible for Arduino
4 Channel Relay Board 12V-Compatible for Arduino4 Channel Relay Board 12V-Compatible for Arduino
4 Channel Relay Board 12V-Compatible for Arduino
Raghav Shetty
 
8 Channel Relay Board-Rs485
8 Channel Relay Board-Rs485 8 Channel Relay Board-Rs485
8 Channel Relay Board-Rs485
Raghav Shetty
 
Xbee X-CTU Software
Xbee X-CTU SoftwareXbee X-CTU Software
Xbee X-CTU Software
Raghav Shetty
 
Digitla Vibration Sensor
Digitla Vibration SensorDigitla Vibration Sensor
Digitla Vibration Sensor
Raghav Shetty
 
Thermal Printer
Thermal PrinterThermal Printer
Thermal Printer
Raghav Shetty
 
Digital Soil Moisture Sensor
Digital Soil Moisture SensorDigital Soil Moisture Sensor
Digital Soil Moisture Sensor
Raghav Shetty
 
Micro SD Memory Card Interface for 5V MCU
Micro SD Memory Card Interface for 5V MCUMicro SD Memory Card Interface for 5V MCU
Micro SD Memory Card Interface for 5V MCU
Raghav Shetty
 
Micro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCUMicro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCU
Raghav Shetty
 
Regulated Power Supply
Regulated Power Supply Regulated Power Supply
Regulated Power Supply
Raghav Shetty
 
PIC Project Board
PIC Project BoardPIC Project Board
PIC Project Board
Raghav Shetty
 
8 Channel Bi Directional Logic Level Converter
8 Channel Bi Directional Logic Level Converter8 Channel Bi Directional Logic Level Converter
8 Channel Bi Directional Logic Level Converter
Raghav Shetty
 
LCD Keypad Shield
LCD Keypad ShieldLCD Keypad Shield
LCD Keypad Shield
Raghav Shetty
 
L298 Motor Driver
L298 Motor DriverL298 Motor Driver
L298 Motor Driver
Raghav Shetty
 
Joystick Shield
Joystick ShieldJoystick Shield
Joystick Shield
Raghav Shetty
 
Force Sensor
Force SensorForce Sensor
Force Sensor
Raghav Shetty
 
Plastic REED Float Switch
Plastic REED Float SwitchPlastic REED Float Switch
Plastic REED Float Switch
Raghav Shetty
 
Flex Sensor
Flex SensorFlex Sensor
Flex Sensor
Raghav Shetty
 
Serial EEPROM
Serial EEPROMSerial EEPROM
Serial EEPROM
Raghav Shetty
 

More from Raghav Shetty (20)

8 Channel Relay Board-Bluetooth
8 Channel Relay Board-Bluetooth8 Channel Relay Board-Bluetooth
8 Channel Relay Board-Bluetooth
 
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
 
4 Channel Relay Board 12V-Compatible for Arduino
4 Channel Relay Board 12V-Compatible for Arduino4 Channel Relay Board 12V-Compatible for Arduino
4 Channel Relay Board 12V-Compatible for Arduino
 
8 Channel Relay Board-Rs485
8 Channel Relay Board-Rs485 8 Channel Relay Board-Rs485
8 Channel Relay Board-Rs485
 
Xbee X-CTU Software
Xbee X-CTU SoftwareXbee X-CTU Software
Xbee X-CTU Software
 
Digitla Vibration Sensor
Digitla Vibration SensorDigitla Vibration Sensor
Digitla Vibration Sensor
 
Thermal Printer
Thermal PrinterThermal Printer
Thermal Printer
 
Digital Soil Moisture Sensor
Digital Soil Moisture SensorDigital Soil Moisture Sensor
Digital Soil Moisture Sensor
 
Micro SD Memory Card Interface for 5V MCU
Micro SD Memory Card Interface for 5V MCUMicro SD Memory Card Interface for 5V MCU
Micro SD Memory Card Interface for 5V MCU
 
Micro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCUMicro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCU
 
Regulated Power Supply
Regulated Power Supply Regulated Power Supply
Regulated Power Supply
 
PIC Project Board
PIC Project BoardPIC Project Board
PIC Project Board
 
8 Channel Bi Directional Logic Level Converter
8 Channel Bi Directional Logic Level Converter8 Channel Bi Directional Logic Level Converter
8 Channel Bi Directional Logic Level Converter
 
LCD Keypad Shield
LCD Keypad ShieldLCD Keypad Shield
LCD Keypad Shield
 
L298 Motor Driver
L298 Motor DriverL298 Motor Driver
L298 Motor Driver
 
Joystick Shield
Joystick ShieldJoystick Shield
Joystick Shield
 
Force Sensor
Force SensorForce Sensor
Force Sensor
 
Plastic REED Float Switch
Plastic REED Float SwitchPlastic REED Float Switch
Plastic REED Float Switch
 
Flex Sensor
Flex SensorFlex Sensor
Flex Sensor
 
Serial EEPROM
Serial EEPROMSerial EEPROM
Serial EEPROM
 

Recently uploaded

Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Zilliz
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Zilliz
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 

Recently uploaded (20)

Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 

USB 4-8 Channel Relay Board

  • 1. www.researchdesignlab.com Page 1 USB RELAY BOARDREV1.0 USB 4/8 RELAY CHANNEL BOARD (FTDI:FT245R)
  • 2. www.researchdesignlab.com Page 2 USB RELAY BOARDREV1.0 Contents OVERVIEW ................................................................................................................................... 4 USB 8/4 Channel Relay Board ................................................................................................... 4 Features........................................................................................................................................... 4 Documents and Support.................................................................................................................. 4 Driver for FT245RL................................................................................................................ 4 Software examples- ftdi chip .................................................................................................. 4 Manuals................................................................................................................................... 4 BLOCK DIAGRAM....................................................................................................................... 5 USB 4 Channel Relay Board to PC ............................................................................................ 5 USB 8 Channel Relay Board to PC ............................................................................................ 5 USB 8 Channel Relay Board with Raspberry Pi ........................................................................ 6 USB 4 Channel Relay Board with Raspberry Pi ........................................................................ 6 FT245RL utility software ............................................................................................................... 7 Features....................................................................................................................................... 7 Programmable Relay Board Software ............................................................................................ 8 Features....................................................................................................................................... 8 Raspberry Pi setup .......................................................................................................................... 9 INTODUCTION......................................................................................................................... 9 INSTALLING LIBRARIES....................................................................................................... 9 TESTING LIBRARIES .............................................................................................................. 9 REMOVING ERRORS ............................................................................................................ 10 ADDING ACCESS RIGHTS TO ALL USERS....................................................................... 11 DRCONTROL INSTALL ........................................................................................................ 11 TO LIST ALL THE DEVICES ................................................................................................ 11 CREATING SCRIPT FILE ...................................................................................................... 12 usb_relay.sh .............................................................................................................................. 12 TO RUN A SCRIPT FILE........................................................................................................ 12
  • 4. www.researchdesignlab.com Page 4 USB RELAY BOARDREV1.0 OVERVIEW This document explains about, how to use USB relay board with raspberry pi and windows applications(FT245RL utility and Programmable Relay Board Software). USB 8/4 Channel Relay Board This is Eight/four Channel relay board controlled by computer USB port. The usb relay board is with 8/4 SPDT relays rated up to 7A each. You may control devices 230V / 120V (up to 8/4) directly with one such relay unit. Suitable for home automation applications, hobby projects, industrial automation. Features  8/4 SPDT Relay channels (7A 250V,12A 120V,10A 125VAC, 10A 28VDC).  Power supply:12VDC 1AMP  Current consumption: 400 mA.  LED indication for relay & power supply.  Design based on highly proven IC ULN2003 as driver.  Raspberry Pi and Beaglebone Compatible. Documents and Support Driver for FT245RL http://www.ftdichip.com/Drivers/VCP.htm Software examples- ftdi chip http://www.ftdichip.com/Support/SoftwareExamples/CodeExamples/VB.htm Manuals http://www.dlpdesign.com/mprog35-ug.pdf http://www.ftdichip.com/Support/Documents/AppNotes/AN_130_FT2232H_Used_In_FT245%2 0Synchronous%20FIFO%20Mode.pdf
  • 5. www.researchdesignlab.com Page 5 USB RELAY BOARDREV1.0 BLOCK DIAGRAM USB 4 Channel Relay Board to PC USB 8 Channel Relay Board to PC
  • 6. www.researchdesignlab.com Page 6 USB RELAY BOARDREV1.0 USB 8 Channel Relay Board with Raspberry Pi USB 4 Channel Relay Board with Raspberry Pi
  • 7. www.researchdesignlab.com Page 7 USB RELAY BOARDREV1.0 FT245RL utility software Features  On and off button provided to test onboard relays with status indication.  Windows application.  COM port will be automatically selected. For USB 8/4 Channel Relay To download FT245RL utility, go to the link given below https://docs.google.com/file/d/0BzrGD4zr88GnM2ZZMWxRMEFvRnM/edit
  • 8. www.researchdesignlab.com Page 8 USB RELAY BOARDREV1.0 Programmable Relay Board Software 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) To download programmable relay board software, go to the link given below. https://docs.google.com/file/d/0BzrGD4zr88GnTjBPWTI4Mk9ZRFE/edit
  • 9. www.researchdesignlab.com Page 9 USB RELAY BOARDREV1.0 Raspberry Pi setup INTODUCTION Instructions how to install the needed libraries and test DRControl utility to control USB Relay board in Raspberry Pi board INSTALLING LIBRARIES CONNECT WORKING ETHERNET CABLE TO RASPBERRY PI(internet) OPEN LXTERMINAL STEP 1 : Install Python-FTDI library, and Python-pip package is needed to install the pyLibFTDI # sudo apt-get install python-ftdi python-pip STEP 2 : Install the FTDI wrapper PyLibFTDI usinf PIP. # sudo pip install pylibftdi TESTING LIBRARIES If you have the relay board connected, then you can run a quick test by entering following command. Note, when you run this after installation and under normal user you might get a error instead of printout. # python -m pylibftdi.examples.list_devices Example printout pi@raspberrypi:~#sudo python -m pylibftdi.examples.list_devices FTDI:FT245R USB FIFO:A9005RO2 pi@raspberrypi:~# Note that this command will list all FTDI devices
  • 10. www.researchdesignlab.com Page 10 USB RELAY BOARDREV1.0 REMOVING ERRORS Do you only get following printout when you list the devices; 1. pi@raspberrypi /opt/drcontrol $ python -m pylibftdi.examples.list_devices :: pi@raspberrypi /opt/drcontrol $ 2. pi@raspberrypi ~ $ python -m pylibftdi.examples.list_devices Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/usr/local/lib/python2.7/dist-packages/pylibftdi/examples/list_devices.py", line 42,in <module> for device in get_ftdi_device_list(): File "/usr/local/lib/python2.7/dist-packages/pylibftdi/examples/list_devices.py", line 33, in get_ftdi_device_list for device in Driver().list_devices(): File "/usr/local/lib/python2.7/dist-packages/pylibftdi/driver.py", line 158, in list_devices raise FtdiError(self.fdll.ftdi_get_error_string(byref(ctx))) pylibftdi._base.FtdiError: error sending control message: Operation not permitted pi@raspberrypi ~ $ You can try to run with sudo, and if that works, then you know it is a permission thing. pi@raspberrypi ~ $ sudo python -m pylibftdi.examples.list_devices FTDI:FT245R USB FIFO: A9005ro2
  • 11. www.researchdesignlab.com Page 11 USB RELAY BOARDREV1.0 ADDING ACCESS RIGHTS TO ALL USERS pi@raspberrypi ~ $ sudo nano /etc/udev/rules.d/99-libftdi.rules Add following line to the file and save. SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", GROUP="dialout", MODE="0666" Check that the file is OK pi@raspberrypi ~ $ cat /etc/udev/rules.d/99-libftdi.rules SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", GROUP="dialout", MODE="0666" pi@raspberrypi ~ $ Do a reboot. DRCONTROL INSTALL CONNECT WORKING ETHERNET CABLE TO RASPBERRY PI(internet) open LX terminal # mkdir drcontrol # cd drcontrol # wget http://drcontrol.googlecode.com/files/drcontrol.0.12c.zip # unzip drcontrol.0.12c.zip #wget http://drcontrol.googlecode.com/svn/trunk/drcontrol.py TO LIST ALL THE DEVICES pi@raspberrypi ~/drcontrol $ ./drcontrol.py -l Vendor Product Serial FTDI FT245R USB FIFO A9005ro2 //USE THE DEVICE SERIAL NAME LISTED INTO FOLLOWING SCRIPT FILE
  • 12. www.researchdesignlab.com Page 12 USB RELAY BOARDREV1.0 CREATING SCRIPT FILE pi@raspberrypi ~/drcontrol $sh nano usb_relay.sh usb_relay.sh // script file --- 4 relays--- sudo ./drcontrol.py -d A9005ro2 -c off -r all -v sleep 1 for i in 1 2 3 4 do sudo ./drcontrol.py -d A9005ro2 -c on -r $i -v sleep 1 done sudo ./drcontrol.py -d A9005ro2 -c off -r all -v //end of file (for 8 relay ,change the iterations from 4 to 8 in a for loop) TO RUN A SCRIPT FILE pi@raspberrypi ~/drcontrol $sh usb_relay.sh (relays will be turned on and off according to script file)