SlideShare a Scribd company logo
1 of 3
Download to read offline
http://ceyhunkirimli.blogspot.ca/2013/12/how­to­control­super4­usb­relay­module.html 1/4
not only some scientific stuff...
Ceyhun Kirimli online
We have also arranged things so that almost no one understands science and technology. This is a prescription for disaster. We might get away with it for a while, but so
ignorance and power is going to blow up in our faces.
Carl Sagan
http://www.linkedin.com/in/ceyhunkirimli
http://ceyhunkirimli.com
Home About Ceyhun Kirimli Links Ceyhun Kirimli Employment Info Ceyhun Kirimli Education Info
As to our daily life.. ceyhun'un siparisleri travel Cars Science books To do list :) documentary crafts neler oluyor..
THURSDAY, DECEMBER 26, 2013
How to control a SUPER4 USB RELAY Module?
It is a very easy to use USB relay module with 4 relays which can be controlled via a computer (PC, Mac etc.)
Why would anyone need it?
You may have electronic devices which need to be turned on or off using a computer. Use of a computer makes it easily programmable so that you can turn on
and off different devices (simultaneously or asynchronously) with precise timing.
Ingredients:
Super4 USB relay module
USB type B(male) to USB Type A cable
1/14/2015 Ceyhun Kirimli online: How to control a SUPER4 USB RELAY Module?
http://ceyhunkirimli.blogspot.ca/2013/12/how­to­control­super4­usb­relay­module.html 2/4
Matlab
Required drivers and software for Super4 Relay
First of all you need to make sure all the drivers and software in the link above is installed in your PC. You can control it using Matlab. One way of doing this is
calling the relayset.exe which would work in dos environment (you can run dos commands in command prompt).
Download and unzip the Relayset 3.0 Released 29­01­2008 in a folder. Type "cmd" in the search box which appears when you click on the windows start
button (left on the taskbar) and hit enter. This would run the cmd.exe and will open the command prompt. Navigate into the folder you installed the exe by
entering "cd %folder name%" (%folder name% = name of the folder you want to navigate into...) one by one, until you reach the final folder. Type "relayset "
and hit enter to see a list of commands to control the super4 relay as you can see in the picture below;
As you can see it is really easy to control the board. For the setup i used during my PhD. in Drexel University in Drs. Wei­Heng and Wan Shih's lab i only used
the turn on and off commands. 
All you need to do is navigate into the folder which has the relayset.exe in command prompt and turn on any relay or set of relays on a board by entering; ­
u(boardname)(condition of relays in binary turned in to decimal)
so if you want to turn on all relays; 
represent this in binary as : 1111 which equals to 15 in decimal;
so you need to type ­s(boardname),15
or if you want to turn on relays 2 and 4 and turn off relays 1 and 3;
represent this in binary as; 0101 which equals to 5 in decimal.
so you need to type ­s(boardname),5
You can turn off every relay by typing ­u(boardname),15 or by setting all of them in open circuit by typing ­s(boardname),0
In order to change the name of the board you need to install the Relay Mapper . A screenshot of the software is shown below;
HOW TO?
1/14/2015 Ceyhun Kirimli online: How to control a SUPER4 USB RELAY Module?
http://ceyhunkirimli.blogspot.ca/2013/12/how­to­control­super4­usb­relay­module.html 3/4
In this case 4 boards (so totally 4x4=16 relays are controlled) are controlled; which are named "board1", "board2", "board3" and "upumpcontroller" (i am
guessing this was controlling a pump..) . You can change the name of any board in this program by double clicking the board name. And do not forget to turn
on the relays by checking the box on the top right. 
So, luckily Matlab has a built­in function called "system", which calls dos commands from matlab, so you can write your own function to control the relay using
Matlab. An example of a Matlab function can be seen here;
You can call this function in matlab by typing;
relay(relayID, action, relaynumber) where action is simply 1 to turn on and 0 to turn off any relay, relay ID is the name given to the board you want to control
and relaynumber is the decimal form of the binary set of relays you want to control;
For example if you want to turn on the relays 1 and 4 on the board named "board1" in the above picture; you can simply call;
relay(board1,1,9);
and then if you want to turn these relays off you need to call: 
relay(board1,0,9);
That is all you need. Please comment below if you have any questions....

More Related Content

What's hot

Digital Fluency, starting with digital annotation
Digital Fluency, starting with digital annotationDigital Fluency, starting with digital annotation
Digital Fluency, starting with digital annotationAnne-Mart Olsen
 
Steps of the Blog Lesson
Steps of the Blog LessonSteps of the Blog Lesson
Steps of the Blog Lessonguest41127a
 
Technology In Schools What Is Changing
Technology  In  Schools  What  Is  ChangingTechnology  In  Schools  What  Is  Changing
Technology In Schools What Is ChangingYarmouth Schools
 

What's hot (7)

Digital Fluency, starting with digital annotation
Digital Fluency, starting with digital annotationDigital Fluency, starting with digital annotation
Digital Fluency, starting with digital annotation
 
Digital Toolkit
Digital ToolkitDigital Toolkit
Digital Toolkit
 
Doing
DoingDoing
Doing
 
Steps of the Blog Lesson
Steps of the Blog LessonSteps of the Blog Lesson
Steps of the Blog Lesson
 
Technology In Schools What Is Changing
Technology  In  Schools  What  Is  ChangingTechnology  In  Schools  What  Is  Changing
Technology In Schools What Is Changing
 
Edupunk
EdupunkEdupunk
Edupunk
 
Christine Velotta PPP
Christine Velotta PPPChristine Velotta PPP
Christine Velotta PPP
 

Viewers also liked

Zemsta Logopedy Www Prezentacje Org
Zemsta Logopedy Www Prezentacje OrgZemsta Logopedy Www Prezentacje Org
Zemsta Logopedy Www Prezentacje OrgJasiu8
 
Prezentacja floortherm
Prezentacja floorthermPrezentacja floortherm
Prezentacja floorthermKnauf1
 
Presentación definitiva cuarta semana
Presentación definitiva cuarta semanaPresentación definitiva cuarta semana
Presentación definitiva cuarta semanaBarbaragomezgarcia
 
Lego sajndkasdnjas
Lego sajndkasdnjasLego sajndkasdnjas
Lego sajndkasdnjasjayerxD
 
Rajzaim
RajzaimRajzaim
Rajzaimnikipo
 
Izolacja poddasza
Izolacja poddaszaIzolacja poddasza
Izolacja poddaszaKnauf1
 
Guia2 tercer periodo.pdf
Guia2 tercer periodo.pdfGuia2 tercer periodo.pdf
Guia2 tercer periodo.pdfGladis Calderon
 
Ruby Movement in Japan
Ruby Movement in JapanRuby Movement in Japan
Ruby Movement in Japandeeeki
 
Pembuatan sanggul dewi anggur 3
Pembuatan sanggul dewi anggur 3Pembuatan sanggul dewi anggur 3
Pembuatan sanggul dewi anggur 3Nolis Marliati
 
sdfq rfdfsdg
sdfq rfdfsdg sdfq rfdfsdg
sdfq rfdfsdg jayerxD
 
Az 1918 as rizslázadások
Az 1918 as rizslázadásokAz 1918 as rizslázadások
Az 1918 as rizslázadásokgyeszter
 
Wnioski do raportu_sot
Wnioski do raportu_sotWnioski do raportu_sot
Wnioski do raportu_sotNowa Stepnica
 

Viewers also liked (20)

Zemsta Logopedy Www Prezentacje Org
Zemsta Logopedy Www Prezentacje OrgZemsta Logopedy Www Prezentacje Org
Zemsta Logopedy Www Prezentacje Org
 
Prezentacja floortherm
Prezentacja floorthermPrezentacja floortherm
Prezentacja floortherm
 
Iad1
Iad1Iad1
Iad1
 
Promo 2012
Promo 2012Promo 2012
Promo 2012
 
Presentación definitiva cuarta semana
Presentación definitiva cuarta semanaPresentación definitiva cuarta semana
Presentación definitiva cuarta semana
 
Lego sajndkasdnjas
Lego sajndkasdnjasLego sajndkasdnjas
Lego sajndkasdnjas
 
MS SHOES
MS SHOESMS SHOES
MS SHOES
 
Rajzaim
RajzaimRajzaim
Rajzaim
 
Izolacja poddasza
Izolacja poddaszaIzolacja poddasza
Izolacja poddasza
 
Rios
RiosRios
Rios
 
Guia2 tercer periodo.pdf
Guia2 tercer periodo.pdfGuia2 tercer periodo.pdf
Guia2 tercer periodo.pdf
 
Holly baka tribe
Holly baka tribeHolly baka tribe
Holly baka tribe
 
Ruby Movement in Japan
Ruby Movement in JapanRuby Movement in Japan
Ruby Movement in Japan
 
TAREA DE APLICACIONES INFORMATICAS
TAREA DE APLICACIONES INFORMATICASTAREA DE APLICACIONES INFORMATICAS
TAREA DE APLICACIONES INFORMATICAS
 
Ihakas baka tribe
Ihakas baka tribeIhakas baka tribe
Ihakas baka tribe
 
Pembuatan sanggul dewi anggur 3
Pembuatan sanggul dewi anggur 3Pembuatan sanggul dewi anggur 3
Pembuatan sanggul dewi anggur 3
 
sdfq rfdfsdg
sdfq rfdfsdg sdfq rfdfsdg
sdfq rfdfsdg
 
Jobline b2b prezi
Jobline b2b preziJobline b2b prezi
Jobline b2b prezi
 
Az 1918 as rizslázadások
Az 1918 as rizslázadásokAz 1918 as rizslázadások
Az 1918 as rizslázadások
 
Wnioski do raportu_sot
Wnioski do raportu_sotWnioski do raportu_sot
Wnioski do raportu_sot
 

More from CEYHUN KIRIMLI (20)

Calculus I-Lecture 2
Calculus I-Lecture 2Calculus I-Lecture 2
Calculus I-Lecture 2
 
Calculus I Lecture Note 1
Calculus I Lecture Note 1Calculus I Lecture Note 1
Calculus I Lecture Note 1
 
Lecture 27
Lecture 27Lecture 27
Lecture 27
 
Piezoelectric Plate Sensor
Piezoelectric Plate SensorPiezoelectric Plate Sensor
Piezoelectric Plate Sensor
 
Lecture 26b
Lecture 26bLecture 26b
Lecture 26b
 
Lecture 26a
Lecture 26aLecture 26a
Lecture 26a
 
Lecture 25
Lecture 25Lecture 25
Lecture 25
 
Lecture 24
Lecture 24Lecture 24
Lecture 24
 
Lecture 23
Lecture 23Lecture 23
Lecture 23
 
Lecture 22
Lecture 22Lecture 22
Lecture 22
 
Lecture 20
Lecture 20Lecture 20
Lecture 20
 
Lecture 21
Lecture 21Lecture 21
Lecture 21
 
Lecture 19
Lecture 19Lecture 19
Lecture 19
 
Lecture 18
Lecture 18Lecture 18
Lecture 18
 
Lecture 17
Lecture 17Lecture 17
Lecture 17
 
Certificate
CertificateCertificate
Certificate
 
Certificate
CertificateCertificate
Certificate
 
Certificate
CertificateCertificate
Certificate
 
Certificate
CertificateCertificate
Certificate
 
Lecture 15
Lecture 15Lecture 15
Lecture 15
 

Recently uploaded

GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)Areesha Ahmad
 
VIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PVIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PPRINCE C P
 
GFP in rDNA Technology (Biotechnology).pptx
GFP in rDNA Technology (Biotechnology).pptxGFP in rDNA Technology (Biotechnology).pptx
GFP in rDNA Technology (Biotechnology).pptxAleenaTreesaSaji
 
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptxUnlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptxanandsmhk
 
Chemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfChemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfSumit Kumar yadav
 
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...jana861314
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000Sapana Sha
 
Isotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on IoIsotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on IoSérgio Sacani
 
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSpermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSarthak Sekhar Mondal
 
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...ssifa0344
 
Broad bean, Lima Bean, Jack bean, Ullucus.pptx
Broad bean, Lima Bean, Jack bean, Ullucus.pptxBroad bean, Lima Bean, Jack bean, Ullucus.pptx
Broad bean, Lima Bean, Jack bean, Ullucus.pptxjana861314
 
Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfSumit Kumar yadav
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bSérgio Sacani
 
Nanoparticles synthesis and characterization​ ​
Nanoparticles synthesis and characterization​  ​Nanoparticles synthesis and characterization​  ​
Nanoparticles synthesis and characterization​ ​kaibalyasahoo82800
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTSérgio Sacani
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...RohitNehra6
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfSumit Kumar yadav
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPirithiRaju
 

Recently uploaded (20)

GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)
 
VIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PVIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C P
 
GFP in rDNA Technology (Biotechnology).pptx
GFP in rDNA Technology (Biotechnology).pptxGFP in rDNA Technology (Biotechnology).pptx
GFP in rDNA Technology (Biotechnology).pptx
 
Engler and Prantl system of classification in plant taxonomy
Engler and Prantl system of classification in plant taxonomyEngler and Prantl system of classification in plant taxonomy
Engler and Prantl system of classification in plant taxonomy
 
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptxUnlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
 
Chemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfChemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdf
 
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
 
Isotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on IoIsotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on Io
 
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSpermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
 
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
 
Broad bean, Lima Bean, Jack bean, Ullucus.pptx
Broad bean, Lima Bean, Jack bean, Ullucus.pptxBroad bean, Lima Bean, Jack bean, Ullucus.pptx
Broad bean, Lima Bean, Jack bean, Ullucus.pptx
 
Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdf
 
The Philosophy of Science
The Philosophy of ScienceThe Philosophy of Science
The Philosophy of Science
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
 
Nanoparticles synthesis and characterization​ ​
Nanoparticles synthesis and characterization​  ​Nanoparticles synthesis and characterization​  ​
Nanoparticles synthesis and characterization​ ​
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOST
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdf
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
 

Ceyhun kirimli online how to control a super4 usb relay module